From 0dc9577913a89a4c53991b220f6e2a74ab691ceb Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 20 Jul 2020 09:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E4=B8=AArelease=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=98=AF=E8=B6=85=E7=BA=A7=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E4=B8=8D=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/views/apps.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fir_ser/api/views/apps.py b/fir_ser/api/views/apps.py index 170bc47..861fb35 100644 --- a/fir_ser/api/views/apps.py +++ b/fir_ser/api/views/apps.py @@ -256,6 +256,12 @@ class AppReleaseinfoView(APIView): appreleaseobj.delete() elif appreleaseobj.is_master and apprelease_count < 2: logger.info("delete app master release %s and clean app %s " % (appreleaseobj, apps_obj)) + + if apps_obj: + if apps_obj.issupersign: + logger.info("app_id:%s is supersign ,delete this app need clean IOS developer" % (app_id)) + IosUtils.clean_app_by_user_obj(apps_obj, request.user) + storage.delete_file(appreleaseobj.release_id, appreleaseobj.release_type) storage.delete_file(appreleaseobj.icon_url)