优化代码

qrnn
youngS 3 years ago
parent 29328d293b
commit fce8a09d5e
  1. 2
      fir_client/vue.config.js
  2. 7
      fir_ser/api/views/download.py

@ -82,7 +82,7 @@ if (page) {
} }
} }
const version='1.3.1'; const version='1.3.2';
const pro_base_env = { const pro_base_env = {
baseUrl: 'https://flyapps.cn', baseUrl: 'https://flyapps.cn',

@ -72,10 +72,11 @@ class DownloadView(APIView):
else: else:
release_obj = AppReleaseInfo.objects.filter(release_id=release_id).first() release_obj = AppReleaseInfo.objects.filter(release_id=release_id).first()
if release_obj: if release_obj:
storage = Storage(release_obj.app_id.user_id) app_obj = release_obj.app_id
bundle_id = release_obj.app_id.bundle_id storage = Storage(app_obj.user_id)
bundle_id = app_obj.bundle_id
app_version = release_obj.app_version app_version = release_obj.app_version
name = release_obj.app_id.name name = app_obj.name
ios_plist_bytes = make_resigned(storage.get_download_url(filename.split('.')[0] + ".ipa"), ios_plist_bytes = make_resigned(storage.get_download_url(filename.split('.')[0] + ".ipa"),
storage.get_download_url(release_obj.icon_url), bundle_id, storage.get_download_url(release_obj.icon_url), bundle_id,
app_version, name) app_version, name)

Loading…
Cancel
Save