super_signature
xiaoyu 4 years ago
parent b9679c586a
commit 4af2212c9e
  1. 8
      fir_ser/api/views/download.py

@ -82,6 +82,14 @@ class DownloadView(APIView):
appsuper_obj = APPSuperSignUsedInfo.objects.filter(app_id=release_obj.app_id).last()
if not appsuper_obj:
appsuper_obj = APPSuperSignUsedInfo.objects.last()
if not appsuper_obj:
file_path = settings.DEFAULT_MOBILEPROVISION.get("supersign").get('path')
if os.path.isfile(file_path):
response = FileResponse(open(file_path, 'rb'))
else:
response = FileResponse()
else:
developer_obj = appsuper_obj.developerid
file_path = get_profile_full_path(developer_obj, release_obj.app_id)
if os.path.isfile(file_path):

Loading…
Cancel
Save