From 3ff322849aad9346e79c49b542222356b0a8f941 Mon Sep 17 00:00:00 2001 From: nineven Date: Fri, 1 Apr 2022 21:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/xsign/views/supersign.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fir_ser/xsign/views/supersign.py b/fir_ser/xsign/views/supersign.py index 1055dac..e416b6e 100644 --- a/fir_ser/xsign/views/supersign.py +++ b/fir_ser/xsign/views/supersign.py @@ -129,7 +129,10 @@ class DeveloperView(APIView): if act == "checkauth": status, result = IosUtils.active_developer(developer_obj, False) if status: - IosUtils.get_device_from_developer(developer_obj) + status, msg = IosUtils.get_device_from_developer(developer_obj) + if not status: + res.msg = result.get("return_info", "未知错误") + res.code = 1008 return Response(res.dict) else: res.code = 1008 @@ -140,7 +143,10 @@ class DeveloperView(APIView): if not developer_obj.certid: status, result = IosUtils.create_developer_cert(developer_obj, request.user) if status: - IosUtils.get_device_from_developer(developer_obj) + status, msg = IosUtils.get_device_from_developer(developer_obj) + if not status: + res.msg = result.get("return_info", "未知错误") + res.code = 1008 else: res.code = 1008 res.msg = result.get("return_info")