From 13a67be0ff426a0d8ee13821f9f8527255c4ae2b Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 16 Sep 2021 12:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B6=85=E7=BA=A7=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E8=80=81=E5=8C=85=E6=9C=AA=E5=8F=8A=E6=97=B6?= =?UTF-8?q?=E6=B8=85=E7=90=86=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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fir_ser/api/utils/app/supersignutils.py b/fir_ser/api/utils/app/supersignutils.py index fe8ee66..be3a0ed 100644 --- a/fir_ser/api/utils/app/supersignutils.py +++ b/fir_ser/api/utils/app/supersignutils.py @@ -417,8 +417,11 @@ class IosUtils(object): delete_local_files(apptodev_obj.binary_file + ".ipa") storage_obj.delete_file(apptodev_obj.binary_file + ".ipa") apptodev_obj.binary_file = random_file_name + old_release_file = apptodev_obj.release_file apptodev_obj.release_file = release_obj.release_id apptodev_obj.save(update_fields=['binary_file', 'release_file']) + if storage_obj.get_storage_type() in [1, 2]: + delete_local_files(old_release_file + ".ipa") else: APPToDeveloper.objects.create(developerid=developer_obj, app_id=app_obj, binary_file=random_file_name, release_file=release_obj.release_id)