You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
782B

  1. def message_feedback(requestId, status, type, error_code="", error_msg="", progress="", original_url="", sign_url="",
  2. model_type_code="", model_detection_code="", analyse_time=""):
  3. taskfb = {}
  4. results = []
  5. result_msg = {}
  6. taskfb["request_id"] = requestId
  7. taskfb["status"] = status
  8. taskfb["type"] = type
  9. taskfb["error_code"] = error_code
  10. taskfb["error_msg"] = error_msg
  11. taskfb["progress"] = progress
  12. result_msg["original_url"] = original_url
  13. result_msg["sign_url"] = sign_url
  14. result_msg["model_type_code"] = model_type_code
  15. result_msg["model_detection_code"] = model_detection_code
  16. result_msg["analyse_time"] = analyse_time
  17. results.append(result_msg)
  18. taskfb["results"] = results
  19. return taskfb