|
@@ -797,18 +797,7 @@ class EquipmentManagerV3(View):
|
|
|
p['uid_version'] = ''
|
|
|
p['ucode'] = ''
|
|
|
p['View_Password'] = self.encrypt_pwd(p['View_Password'])
|
|
|
- if 'is_ai' not in p:
|
|
|
- LOGGER.info('p 字典中不存在 is_ai 键')
|
|
|
- elif p['is_ai'] != 2:
|
|
|
- timestamp = int(time.time()) # 时间戳值
|
|
|
- timezone_offset = "+08:00" # 时区偏移量(例如:+08:00)
|
|
|
- now_time = LocalDateTimeUtil.get_date_time(timestamp, timezone_offset)
|
|
|
- datetime_bj = 1692979200
|
|
|
- # 转换为日期时间对象
|
|
|
- dt = LocalDateTimeUtil.get_date_time(datetime_bj, timezone_offset)
|
|
|
- if now_time >= dt:
|
|
|
- LOGGER.info('{}不显示AI按钮'.format(p_uid))
|
|
|
- p['is_ai'] = 2
|
|
|
+
|
|
|
# 判断设备是否支持4G
|
|
|
uid_set_qs = UidSetModel.objects.filter(uid=p['UID']).values('mobile_4g')
|
|
|
if uid_set_qs.exists():
|