Skip to content

Commit

Permalink
fix: 修改返回结构 --story=121334648
Browse files Browse the repository at this point in the history
  • Loading branch information
guohelu committed Dec 24, 2024
1 parent bcc9520 commit 846e401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcloud/contrib/template_market/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ def _handle_response(self, response_data, error_message):
"result": False,
"message": "market template {}, error message: {}".format(error_message, response_data.get("message")),
"code": err_code.OPERATION_FAIL.code,
"data": response_data.get("data"),
}
logger.error(response_structure["message"])

if response_data.get("code") == 9007:
response_structure["data"] = response_data.get("data")
response_structure["code"] = 200

return Response(response_structure)
return None
Expand Down

0 comments on commit 846e401

Please sign in to comment.