From ae58a71ee441ced6a5efe77dd847edbf95cf1c78 Mon Sep 17 00:00:00 2001 From: MMXX Date: Wed, 12 Jan 2022 11:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AD=BE=E5=90=8D=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=AF=BC=E8=87=B4=E6=AD=BB=E9=94=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/app/supersignutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fir_ser/api/utils/app/supersignutils.py b/fir_ser/api/utils/app/supersignutils.py index 3994674..430ec89 100644 --- a/fir_ser/api/utils/app/supersignutils.py +++ b/fir_ser/api/utils/app/supersignutils.py @@ -375,7 +375,7 @@ def get_developer_obj_by_others(user_obj, udid, app_obj, read_only): return result -def check_sign_is_exists(user_obj, app_obj, udid, developer_obj): +def check_sign_is_exists(user_obj, app_obj, udid, developer_obj, sign=True): d_result = {'code': 0, 'msg': 'success'} app_udid_obj = AppUDID.objects.filter(app_id=app_obj, udid__udid=udid, udid__developerid=developer_obj).first() if app_udid_obj and app_udid_obj.is_download: @@ -388,7 +388,7 @@ def check_sign_is_exists(user_obj, app_obj, udid, developer_obj): sign_flag = True else: sign_flag = True - if sign_flag: + if sign_flag and sign: locker = { 'locker_key': f"run_sign_{app_obj.app_id}_{developer_obj.issuer_id}", "timeout": 60 * 5 @@ -810,7 +810,7 @@ class IosUtils(object): else: new_did_list = [] for did_udid in udid_list: - if not check_sign_is_exists(user_obj, app_obj, did_udid, developer_obj): + if not check_sign_is_exists(user_obj, app_obj, did_udid, developer_obj, False): new_did_list.append(did_udid) if not new_did_list: return True, True