|
-
- def message_feedback(requestId, status, type, error_code="", error_msg="", progress="", original_url="", sign_url="",
- model_type_code="", model_detection_code="", analyse_time=""):
- taskfb = {}
- results = []
- result_msg = {}
- taskfb["request_id"] = requestId
- taskfb["status"] = status
- taskfb["type"] = type
- taskfb["error_code"] = error_code
- taskfb["error_msg"] = error_msg
- taskfb["progress"] = progress
- result_msg["original_url"] = original_url
- result_msg["sign_url"] = sign_url
- result_msg["model_type_code"] = model_type_code
- result_msg["model_detection_code"] = model_detection_code
- result_msg["analyse_time"] = analyse_time
- results.append(result_msg)
- taskfb["results"] = results
- return taskfb
|