From adff361c11f867aa3345c8717ff1343d81a6e7f5 Mon Sep 17 00:00:00 2001 From: isummer Date: Mon, 28 Nov 2022 11:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=9E=E8=8B=B9=E6=9E=9C?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=AF=BC=E8=87=B4=E4=BD=99=E9=A2=9D=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/xsign/utils/supersignutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fir_ser/xsign/utils/supersignutils.py b/fir_ser/xsign/utils/supersignutils.py index 01402e3..b80f389 100644 --- a/fir_ser/xsign/utils/supersignutils.py +++ b/fir_ser/xsign/utils/supersignutils.py @@ -273,7 +273,8 @@ def get_new_developer_by_app_obj(app_obj, obj_base_filter, apple_to_app=False): developer_obj_lists = developer_obj_lists.all().distinct().order_by("created_time") for developer_obj in developer_obj_lists: # 通过开发者数限制进行过滤 - if get_developer_udided(developer_obj)[2] < developer_obj.usable_number: + i_use_num = UDIDsyncDeveloper.objects.filter(developerid=developer_obj, device_class=DeviceClass.IPHONE).count() + if i_use_num < developer_obj.usable_number: if apple_to_app: apple_to_app_obj = AppleDeveloperToAppUse.objects.filter(app_id=app_obj, developerid=developer_obj).first()