Browse Source

Merge remote-tracking branch 'origin/bin' into bin

locky 4 years ago
parent
commit
1371cdf53b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Controller/CloudStorage.py

+ 3 - 2
Controller/CloudStorage.py

@@ -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():