Commit 7b974690 by baiquan

feat(upload): 为上传回调数据添加 call_back_key 字段

- 在回调数据中增加 call_back_key 字段,用于标识回调来源
- 该字段的值从任务对象中获取,如果不存在则默认为空字符串
parent f5499d74
...@@ -260,7 +260,8 @@ async def uploadImageAndVideo(task: dict = None): ...@@ -260,7 +260,8 @@ async def uploadImageAndVideo(task: dict = None):
"images": image_dict, "images": image_dict,
"description": description_dict, "description": description_dict,
"video_list": video_dict, "video_list": video_dict,
"error_msg": error_msg "error_msg": error_msg,
"call_back_key": task.get('call_back_key', ""),
# "type": 2 # "type": 2
} }
callback_str = json.dumps(callback_data) callback_str = json.dumps(callback_data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment