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.

21 lines
854B

  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="", analyse_results=""):
  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["analyse_results"] = analyse_results
  15. result_msg["model_type_code"] = model_type_code
  16. result_msg["model_detection_code"] = model_detection_code
  17. result_msg["analyse_time"] = analyse_time
  18. results.append(result_msg)
  19. taskfb["results"] = results
  20. return taskfb