Explorar o código

分享时UID问题

zhangdongming %!s(int64=2) %!d(string=hai) anos
pai
achega
5515f9f511
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/UserDevice/UserDeviceShareController.py

+ 1 - 1
Controller/UserDevice/UserDeviceShareController.py

@@ -145,7 +145,7 @@ class UserDeviceShareView(View):
         try:
             if not all([user_id, uid]):
                 return False
-            channel_qs = UidChannelSetModel.objects.filter(uid).values('channel')
+            channel_qs = UidChannelSetModel.objects.filter(uid=uid).values('channel')
             if not channel_qs.exists():
                 return False
             channel_list = list(channel_qs)