优化代码,修改共享撤回问题

xsign
MMXX 3 years ago
parent 77d97fd1d2
commit 7ceb9c83c1
  1. 2
      fir_ser/api/utils/auth/util.py
  2. 2
      fir_ser/config.py
  3. 4
      fir_ser/xsign/views/supersign.py

@ -28,7 +28,7 @@ class AuthInfo(object):
self.geetest = geetest self.geetest = geetest
def make_rules_info(self): def make_rules_info(self):
data = {} data = {'captcha': {"captcha_image": '', "captcha_key": '', "length": 8}, 'geetest': False}
if self.captcha: if self.captcha:
data['captcha'] = CaptchaAuth().generate() data['captcha'] = CaptchaAuth().generate()
if self.geetest: if self.geetest:

@ -78,7 +78,7 @@ class THIRDLOGINCONF(object):
'token': 'f0ae1b879b8', 'token': 'f0ae1b879b8',
'encoding_aes_key': '7b9URovp83gG', 'encoding_aes_key': '7b9URovp83gG',
}, },
'active': True 'active': False
} }

@ -655,8 +655,6 @@ class DeviceTransferBillView(APIView):
number=abs(int(number))).first() number=abs(int(number))).first()
if bill_obj: if bill_obj:
target_user_obj = UserInfo.objects.filter(uid=uid).first() target_user_obj = UserInfo.objects.filter(uid=uid).first()
bill_obj.status = 1
bill_obj.save(update_fields=['status'])
if target_user_obj: if target_user_obj:
for app_obj in Apps.objects.filter(user_id=target_user_obj, type=1): for app_obj in Apps.objects.filter(user_id=target_user_obj, type=1):
app_obj.issupersign = False app_obj.issupersign = False
@ -665,6 +663,8 @@ class DeviceTransferBillView(APIView):
if app_obj.issupersign or count > 0: if app_obj.issupersign or count > 0:
logger.info(f"app_id:{app_obj} is super_sign ,clean IOS developer") logger.info(f"app_id:{app_obj} is super_sign ,clean IOS developer")
IosUtils.clean_app_by_user_obj(app_obj) IosUtils.clean_app_by_user_obj(app_obj)
bill_obj.status = 1
bill_obj.save(update_fields=['status'])
else: else:
res.code = 1003 res.code = 1003
res.msg = '转移记录不存在' res.msg = '转移记录不存在'

Loading…
Cancel
Save