From 46acd9c391d3b5a9e7394db9960a43ff2ea29f40 Mon Sep 17 00:00:00 2001 From: nineven Date: Mon, 1 Feb 2021 17:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/app/supersignutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fir_ser/api/utils/app/supersignutils.py b/fir_ser/api/utils/app/supersignutils.py index 1407ad6..3b68084 100644 --- a/fir_ser/api/utils/app/supersignutils.py +++ b/fir_ser/api/utils/app/supersignutils.py @@ -380,6 +380,7 @@ class IosUtils(object): if udid_lists.count((udid_obj.udid,)) == 1: app_api_obj = get_api_obj(auth) app_api_obj.set_device_status("disable", udid_obj.udid) + UDIDsyncDeveloper.objects.filter(udid=udid_obj.udid, developerid=developer_obj).delete() if developer_obj.use_number > 0: developer_obj.use_number = developer_obj.use_number - 1 @@ -401,7 +402,6 @@ class IosUtils(object): app_udid_obj = UDIDsyncDeveloper.objects.filter(developerid=developer_obj, udid=udid_obj.udid).first() DeveloperDevicesID.objects.filter(udid=app_udid_obj, developerid=developer_obj, app_id_id=app_id).delete() - UDIDsyncDeveloper.objects.filter(udid=udid_obj.udid, developerid=developer_obj).delete() @staticmethod def clean_udid_by_app_obj(app_obj, developer_obj): @@ -417,6 +417,7 @@ class IosUtils(object): if udid_lists.count((udid_obj.udid,)) == 1: app_api_obj = get_api_obj(auth) app_api_obj.set_device_status("disable", udid_obj.udid) + UDIDsyncDeveloper.objects.filter(udid=udid_obj.udid, developerid=developer_obj).delete() if developer_obj.use_number > 0: developer_obj.use_number = developer_obj.use_number - 1