|
|
@@ -380,7 +380,7 @@ def flyimg_upload_api(request):
|
380
|
380
|
|
381
|
381
|
photo = request.FILES.get('photo', '')
|
382
|
382
|
|
383
|
|
- next_id = int(request.POST.get('next_id', 0))
|
|
383
|
+ current_id = int(request.POST.get('current_id', -1))
|
384
|
384
|
|
385
|
385
|
try:
|
386
|
386
|
user = UserInfo.objects.get(user_id=user_id)
|
|
|
@@ -423,7 +423,7 @@ def flyimg_upload_api(request):
|
423
|
423
|
|
424
|
424
|
group_photos = GroupPhotoInfo.objects.filter(
|
425
|
425
|
group_id=group_id,
|
426
|
|
- pk__gte=next_id,
|
|
426
|
+ pk__gt=current_id,
|
427
|
427
|
)
|
428
|
428
|
latest_photo = group_photos.last()
|
429
|
429
|
|
|
|
@@ -431,7 +431,7 @@ def flyimg_upload_api(request):
|
431
|
431
|
'status': 200,
|
432
|
432
|
'message': u'飞图上传成功',
|
433
|
433
|
'data': {
|
434
|
|
- 'next_id': latest_photo and latest_photo.pk or next_id,
|
|
434
|
+ 'current_id': latest_photo and latest_photo.pk or current_id,
|
435
|
435
|
'photos': [photo.photo_info for photo in group_photos],
|
436
|
436
|
}
|
437
|
437
|
})
|