add message

This commit is contained in:
baoliang 2020-10-27 21:34:46 +08:00
parent fbd443fa41
commit 5f328fcb35
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):
version = request.GET.get('version', '1')
last = AppVersion.objects.first()
return JsonResponse({'status': 'success', 'message': last != version})
return JsonResponse({'status': 'success', 'message': str(last.version) != version})