|
@@ -636,8 +636,9 @@ class CloudStorageView(View):
|
|
|
channel = request_dict.get('channel', None)
|
|
|
if not uid or not status or not channel:
|
|
|
return response.json(444, 'uid,status,channel')
|
|
|
- dvqs = Device_Info.objects.filter(UID=uid, userID_id=userID, isShare=False)
|
|
|
- if not dvqs.exists():
|
|
|
+ dv_qs = Device_Info.objects.filter(userID_id=userID, UID=uid, isShare=False, isExist=1) \
|
|
|
+ .values('vodPrimaryUserID')
|
|
|
+ if not dv_qs.exists() or dv_qs[0]['vodPrimaryUserID'] != userID:
|
|
|
return response.json(12)
|
|
|
ubqs = UID_Bucket.objects.filter(channel=channel, uid=uid).order_by('addTime')
|
|
|
if not ubqs.exists():
|