From 9e19f93ffb5ae63c660477d1a168555f2ba8d636 Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 31 Jan 2021 16:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/views/supersign.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fir_ser/api/views/supersign.py b/fir_ser/api/views/supersign.py index b49ed4c..44e2c60 100644 --- a/fir_ser/api/views/supersign.py +++ b/fir_ser/api/views/supersign.py @@ -121,7 +121,10 @@ class DeveloperView(APIView): res.msg = result.get("err_info") return Response(res.dict) elif act == "checkauth": - developer_auth_code("del", request.user, developer_obj.email) + if developer_obj.email: + developer_auth_code("del", request.user, developer_obj.email) + elif developer_obj.issuer_id: + developer_auth_code("del", request.user, developer_obj.issuer_id) status, result = IosUtils.active_developer(developer_obj, request.user) if status: return self.get(request)