浏览代码

设备转移 不是主用户无法转移2

chenshibin 4 年之前
父节点
当前提交
e989aafb5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/CloudTest.py

+ 1 - 1
Controller/CloudTest.py

@@ -78,7 +78,7 @@ class cloudTestView(View):
             main_exist = Device_Info.objects.filter(UID=uid, vodPrimaryUserID='', vodPrimaryMaster='')
             vodPrimaryUserID = ''
             vodPrimaryMaster = ''
-            if not main_exist.exists():
+            if main_exist.exists():
                 vodPrimaryUserID = newUserID
                 vodPrimaryMaster = newUserName
             else: