Explorar o código

修改push_type判断条件

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
40a0553d08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

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