소스 검색

优化AI按钮判断

zhangdongming 2 년 전
부모
커밋
2ea6d0d23c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -796,7 +796,7 @@ class EquipmentManagerV3(View):
                 p['uid_version'] = ''
                 p['ucode'] = ''
             p['View_Password'] = self.encrypt_pwd(p['View_Password'])
-            if p['is_ai'] and p['is_ai'] != 2:
+            if p['is_ai'] != 2:
                 timestamp = int(time.time())  # 时间戳值
                 timezone_offset = "+08:00"  # 时区偏移量(例如:+08:00)
                 now_time = LocalDateTimeUtil.get_date_time(timestamp, timezone_offset)