From 2cb0f1a8f58e2c91a7266376aa0dfa2d382f8b90 Mon Sep 17 00:00:00 2001 From: youngS Date: Sun, 30 May 2021 12:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=BA=A7=E7=AD=BE=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E6=B6=88=E5=8C=96=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/app/supersignutils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fir_ser/api/utils/app/supersignutils.py b/fir_ser/api/utils/app/supersignutils.py index 3a60ed3..a4b27be 100644 --- a/fir_ser/api/utils/app/supersignutils.py +++ b/fir_ser/api/utils/app/supersignutils.py @@ -466,12 +466,6 @@ class IosUtils(object): if res.code != 1000: return False, {'code': res.code, 'msg': res.msg} - if consume_user_download_times_by_app_obj(self.app_obj): - d_result['code'] = 1009 - d_result['msg'] = '可用下载额度不足,请联系开发者' - logger.error(d_result) - return False, d_result - if not self.developer_obj: msg = "udid %s app %s not exists apple developer" % (self.udid_info.get('udid'), self.app_obj) d_result['code'] = 1005 @@ -489,6 +483,12 @@ class IosUtils(object): return True, d_result logger.info("udid %s not exists app_id %s ,need sign" % (self.udid_info.get('udid'), self.app_obj)) + if consume_user_download_times_by_app_obj(self.app_obj): + d_result['code'] = 1009 + d_result['msg'] = '可用下载额度不足,请联系开发者' + logger.error(d_result) + return False, d_result + call_flag = True download_flag = False count = 1