Jelajahi Sumber

优化代码

zhangdongming 2 tahun lalu
induk
melakukan
d67d148168
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -797,7 +797,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)