From 1262bff6718d8def2a7bdcacd807477a3e575164 Mon Sep 17 00:00:00 2001 From: isummer Date: Sat, 12 Nov 2022 22:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/xsign/utils/supersignutils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fir_ser/xsign/utils/supersignutils.py b/fir_ser/xsign/utils/supersignutils.py index 38181fd..75c638b 100644 --- a/fir_ser/xsign/utils/supersignutils.py +++ b/fir_ser/xsign/utils/supersignutils.py @@ -626,9 +626,11 @@ class IosUtils(object): sign_status=SignStatus.SIGNATURE_PACKAGE_COMPLETE) base_app_udid = AppUDID.objects.filter(app_id=app_obj, udid__developerid_id=developer_obj_id) if base_app_udid.filter(sign_status__lt=SignStatus.SIGNATURE_PACKAGE_COMPLETE).count(): - c_time = base_app_udid.order_by('-created_time').first() - u_time = base_app_udid.order_by('-updated_time').first() - if u_time.updated_time > c_time.created_time: + c_time = base_app_udid.filter(sign_status__lt=SignStatus.SIGNATURE_PACKAGE_COMPLETE).order_by( + '-created_time').first() + u_time = base_app_udid.filter(sign_status=SignStatus.SIGNATURE_PACKAGE_COMPLETE).order_by( + '-updated_time').first() + if c_time and u_time and u_time.updated_time > c_time.created_time: base_app_udid.update(sign_status=SignStatus.SIGNATURE_PACKAGE_COMPLETE) del_cache_response_by_short(app_obj.app_id)