优化设备错误展示

dependabot/npm_and_yarn/fir_admin/async-2.6.4
nineven 3 years ago
parent 4184f2ad1c
commit 3ff322849a
  1. 10
      fir_ser/xsign/views/supersign.py

@ -129,7 +129,10 @@ class DeveloperView(APIView):
if act == "checkauth": if act == "checkauth":
status, result = IosUtils.active_developer(developer_obj, False) status, result = IosUtils.active_developer(developer_obj, False)
if status: 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) return Response(res.dict)
else: else:
res.code = 1008 res.code = 1008
@ -140,7 +143,10 @@ class DeveloperView(APIView):
if not developer_obj.certid: if not developer_obj.certid:
status, result = IosUtils.create_developer_cert(developer_obj, request.user) status, result = IosUtils.create_developer_cert(developer_obj, request.user)
if status: 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: else:
res.code = 1008 res.code = 1008
res.msg = result.get("return_info") res.msg = result.get("return_info")

Loading…
Cancel
Save