|
@@ -138,8 +138,8 @@ def upload_plot(
|
|
|
'Authorization': 'Bearer ' + LINE_TOKEN
|
|
|
}
|
|
|
data = {
|
|
|
- 'message':f'cloud.choozmo.com \
|
|
|
- Video \
|
|
|
+ 'message':f'cloud-choozmo-com\n \
|
|
|
+ Video\n \
|
|
|
user: {current_user.id}\n \
|
|
|
video: {video_data["id"]}\n \
|
|
|
state: queuing'
|
|
@@ -170,8 +170,8 @@ async def wait_finish(video_data:dict):
|
|
|
'Authorization': 'Bearer ' + LINE_TOKEN
|
|
|
}
|
|
|
data = {
|
|
|
- 'message':f'cloud.choozmo.com \
|
|
|
- Video \
|
|
|
+ 'message':f'cloud-choozmo-com\n \
|
|
|
+ Video\n \
|
|
|
user: {video_data["owner_id"]}\n \
|
|
|
membership: {video_data["membership_status"]}\n \
|
|
|
video: {video_data["id"]}\n \
|
|
@@ -198,8 +198,8 @@ async def wait_finish(video_data:dict):
|
|
|
'Authorization': 'Bearer ' + LINE_TOKEN
|
|
|
}
|
|
|
data = {
|
|
|
- 'message':f'cloud.choozmo.com \
|
|
|
- Video \
|
|
|
+ 'message':f'cloud-choozmo-com\n \
|
|
|
+ Video\n \
|
|
|
user: {video_data["owner_id"]}\n \
|
|
|
membership: {video_data["membership_status"]}\n \
|
|
|
video: {video_data["id"]}\n \
|
|
@@ -216,15 +216,15 @@ async def wait_finish(video_data:dict):
|
|
|
msg_data = f"{video_data['stored_filename']}:FAILURE"
|
|
|
|
|
|
headers = {
|
|
|
- 'Authorization': 'Bearer ' + LINE_TOKEN # 設定權杖
|
|
|
+ 'Authorization': 'Bearer ' + LINE_TOKEN
|
|
|
}
|
|
|
data = {
|
|
|
- 'message':f'cloud.choozmo.com \
|
|
|
- Video \
|
|
|
+ 'message':f'cloud-choozmo-com\n \
|
|
|
+ Video\n \
|
|
|
user: {video_data["owner_id"]}\n \
|
|
|
membership: {video_data["membership_status"]}\n \
|
|
|
video: {video_data["id"]}\n \
|
|
|
- state: failure' # 設定要發送的訊息
|
|
|
+ state: failure'
|
|
|
}
|
|
|
data = requests.post(LINE_URL, headers=headers, data=data)
|
|
|
|