修复超级签名,老包未及时清理问题

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent b815950f7d
commit 13a67be0ff
  1. 3
      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)

Loading…
Cancel
Save