修复非苹果设备导致余额不足问题

dependabot/npm_and_yarn/fir_admin/decode-uri-component-0.2.2
isummer 2 years ago
parent 419e39eaaa
commit adff361c11
  1. 3
      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") developer_obj_lists = developer_obj_lists.all().distinct().order_by("created_time")
for developer_obj in developer_obj_lists: 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: if apple_to_app:
apple_to_app_obj = AppleDeveloperToAppUse.objects.filter(app_id=app_obj, apple_to_app_obj = AppleDeveloperToAppUse.objects.filter(app_id=app_obj,
developerid=developer_obj).first() developerid=developer_obj).first()

Loading…
Cancel
Save