|
@@ -87,32 +87,42 @@ class CronDelDataView(View):
|
|
|
'72V201353AA',
|
|
|
'72V201354AA',
|
|
|
'72V201355AA',
|
|
|
- '72V201254AA']
|
|
|
+ '72V201254AA',
|
|
|
+ 'V82301850AA',
|
|
|
+ 'V82301850XA']
|
|
|
UidSetModel.objects.filter(ucode__in=ucode_list, is_human=0).update(is_human=1)
|
|
|
+
|
|
|
UidSetModel.objects.filter(ucode='72V201254AA', mobile_4g=0).update(mobile_4g=1)
|
|
|
# 根据设备规格码定时更新默认算法类型类型
|
|
|
ucode_list = ['823C01552AA', '823C01550AA', '823C01550XA', 'C18201550KA',
|
|
|
'823C01550TA', '823C01550VA', '823C01850XA', 'C18201850KA',
|
|
|
- '823C01850TA', '823C01850VA']
|
|
|
+ '823C01850TA', '823C01850VA', 'C22501850VA']
|
|
|
UidSetModel.objects.filter(ucode__in=ucode_list, ai_type=0).update(ai_type=47)
|
|
|
+
|
|
|
ucode_list = ['730201350AA', '730201450AA', '730201450MA', '730201450NA']
|
|
|
UidSetModel.objects.filter(ucode__in=ucode_list, ai_type=0).update(ai_type=7)
|
|
|
|
|
|
+ ucode_list = ['V82301850AA', 'V82301850XA']
|
|
|
+ UidSetModel.objects.filter(ucode__in=ucode_list, ai_type=0).update(ai_type=2031)
|
|
|
+
|
|
|
# 根据设备规格码更新默认个性化语音值
|
|
|
ucode_list = ['823C01552AA', '823C01550XA', 'C18201550KA', '823C01550TA',
|
|
|
'823C01550VA', '823C01850XA', 'C18201850KA', '823C01850TA', '823C01850VA',
|
|
|
'730201450AA', '730201450MA', '730201450NA', '72V201252AA', '72V201253AA',
|
|
|
- '72V201353AA', '72V201354AA', '72V201355AA', '72V201254AA']
|
|
|
+ '72V201353AA', '72V201354AA', '72V201355AA', '72V201254AA', 'C22501850VA',
|
|
|
+ 'V82301850AA', 'V82301850XA']
|
|
|
UidSetModel.objects.filter(ucode__in=ucode_list, is_custom_voice=0).update(is_custom_voice=1)
|
|
|
|
|
|
# 根据设备规格码更新is_ai
|
|
|
ucode_list = ['823C01552AA', '823C01550XA', 'C18201550KA', '823C01550TA',
|
|
|
'823C01550VA', '823C01850XA', 'C18201850KA', '823C01850TA', '823C01850VA',
|
|
|
'730201450AA', '730201450MA', '730201450NA', '72V201252AA', '72V201253AA',
|
|
|
- '72V201353AA', '72V201354AA', '72V201355AA', '72V201254AA']
|
|
|
+ '72V201353AA', '72V201354AA', '72V201355AA', '72V201254AA', 'C22501850VA',
|
|
|
+ 'V82301850AA', 'V82301850XA']
|
|
|
UidSetModel.objects.filter(ucode__in=ucode_list, is_ai=2).update(is_ai=1)
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
+ LOGGER.info('UpdateConfiguration异常详情,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
@staticmethod
|