Explorar o código

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

chenshibin %!s(int64=4) %!d(string=hai) anos
pai
achega
e989aafb5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: