修复超级签同一个udid下载,次数不增加问题

super_signature
nineven 5 years ago
parent 19ea47a65c
commit 9679d1d7fc
  1. 2
      fir_ser/api/views/download.py

@ -155,7 +155,7 @@ class InstallView(APIView):
download_url = get_download_url_by_cache(app_obj,release_id + apptype,600,isdownload,udid=udid) download_url = get_download_url_by_cache(app_obj,release_id + apptype,600,isdownload,udid=udid)
res.data={"download_url":download_url} res.data={"download_url":download_url}
if download_url != "" and (udid is None or udid == ""): if download_url != "" and not download_url.endswith("mobileconifg"):
set_app_download_by_cache(app_id) set_app_download_by_cache(app_id)
return Response(res.dict) return Response(res.dict)
else: else:

Loading…
Cancel
Save