修复删除最后一个release 版本,如果是超级签名,不清理问题

super_signature
xiaoyu 4 years ago
parent 66e8969cc2
commit 0dc9577913
  1. 6
      fir_ser/api/views/apps.py

@ -256,6 +256,12 @@ class AppReleaseinfoView(APIView):
appreleaseobj.delete() appreleaseobj.delete()
elif appreleaseobj.is_master and apprelease_count < 2: elif appreleaseobj.is_master and apprelease_count < 2:
logger.info("delete app master release %s and clean app %s " % (appreleaseobj, apps_obj)) 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.release_id, appreleaseobj.release_type)
storage.delete_file(appreleaseobj.icon_url) storage.delete_file(appreleaseobj.icon_url)

Loading…
Cancel
Save