From 846e401a82d61578248f3ae037ab179bc8a8576a Mon Sep 17 00:00:00 2001 From: guohelu <19503896967@163.com> Date: Tue, 24 Dec 2024 09:50:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=BB=93=E6=9E=84=20--story=3D121334648?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/contrib/template_market/viewsets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcloud/contrib/template_market/viewsets.py b/gcloud/contrib/template_market/viewsets.py index b7e24f27b..7a4c0d1be 100644 --- a/gcloud/contrib/template_market/viewsets.py +++ b/gcloud/contrib/template_market/viewsets.py @@ -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