From 7ceb9c83c15087a8eb9528cb56ab30e12d7cad1d Mon Sep 17 00:00:00 2001 From: MMXX Date: Thu, 3 Mar 2022 17:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B1=E4=BA=AB=E6=92=A4=E5=9B=9E=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/auth/util.py | 2 +- fir_ser/config.py | 2 +- fir_ser/xsign/views/supersign.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fir_ser/api/utils/auth/util.py b/fir_ser/api/utils/auth/util.py index 5bd4681..b87f35f 100644 --- a/fir_ser/api/utils/auth/util.py +++ b/fir_ser/api/utils/auth/util.py @@ -28,7 +28,7 @@ class AuthInfo(object): self.geetest = geetest def make_rules_info(self): - data = {} + data = {'captcha': {"captcha_image": '', "captcha_key": '', "length": 8}, 'geetest': False} if self.captcha: data['captcha'] = CaptchaAuth().generate() if self.geetest: diff --git a/fir_ser/config.py b/fir_ser/config.py index b944ae8..885e570 100644 --- a/fir_ser/config.py +++ b/fir_ser/config.py @@ -78,7 +78,7 @@ class THIRDLOGINCONF(object): 'token': 'f0ae1b879b8', 'encoding_aes_key': '7b9URovp83gG', }, - 'active': True + 'active': False } diff --git a/fir_ser/xsign/views/supersign.py b/fir_ser/xsign/views/supersign.py index 7d178da..d7f6235 100644 --- a/fir_ser/xsign/views/supersign.py +++ b/fir_ser/xsign/views/supersign.py @@ -655,8 +655,6 @@ class DeviceTransferBillView(APIView): number=abs(int(number))).first() if bill_obj: target_user_obj = UserInfo.objects.filter(uid=uid).first() - bill_obj.status = 1 - bill_obj.save(update_fields=['status']) if target_user_obj: for app_obj in Apps.objects.filter(user_id=target_user_obj, type=1): app_obj.issupersign = False @@ -665,6 +663,8 @@ class DeviceTransferBillView(APIView): if app_obj.issupersign or count > 0: logger.info(f"app_id:{app_obj} is super_sign ,clean IOS developer") IosUtils.clean_app_by_user_obj(app_obj) + bill_obj.status = 1 + bill_obj.save(update_fields=['status']) else: res.code = 1003 res.msg = '转移记录不存在'