소스 검색

修改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)
 
         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)
 
             # 判断用户是否拥有设备