forked from mirror/MrDoc
修复版本检测更新地址GitHub请求URL
This commit is contained in:
parent
1af152ac0c
commit
6a2f454846
@ -940,7 +940,7 @@ def check_update(request):
|
||||
if gitee_resp.status_code == 200:
|
||||
return JsonResponse({'status':True,'data':gitee_resp.json()[-1]})
|
||||
else:
|
||||
github_resp = requests.get(github_url[1],timeout=5)
|
||||
github_resp = requests.get(github_url,timeout=5)
|
||||
if github_resp.status_code == 200:
|
||||
return JsonResponse({'status':True,'data':github_resp.json()[0]})
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user