Merge remote-tracking branch 'origin/master'

This commit is contained in:
Bob 2020-10-27 21:38:40 +08:00
commit c4ba6bc4d7
4 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
media/pom-1.apk Normal file

Binary file not shown.

View File

@ -26,4 +26,4 @@ def download(request):
def has_update(request): def has_update(request):
version = request.GET.get('version', '1') version = request.GET.get('version', '1')
last = AppVersion.objects.first() last = AppVersion.objects.first()
return JsonResponse({'status': 'success', 'message': last != version}) return JsonResponse({'status': 'success', 'message': str(last.version) != version})