瀏覽代碼

修改push_type判断条件2

locky 2 年之前
父節點
當前提交
46de4cf7fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

@@ -100,7 +100,7 @@ class DetectControllerViewV2(View):
         print('push_type:', push_type)
         print('push_type:', push_type)
 
 
         try:
         try:
-            if push_type != '0' or push_type != '1' or push_type != '2':
+            if push_type != '0' and push_type != '1' and push_type != '2':
                 return response.json(173)
                 return response.json(173)
 
 
             # 判断用户是否拥有设备
             # 判断用户是否拥有设备