Browse Source

优化代码

zhangdongming 2 năm trước cách đây
mục cha
commit
d67d148168
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)