|
@@ -1780,6 +1780,7 @@ class DeviceManagement(View):
|
|
|
return response.json(444)
|
|
|
try:
|
|
|
device_type_list = device_types.split(',')
|
|
|
+ device_type_list = list(map(int, device_type_list))
|
|
|
classification = int(classification)
|
|
|
auth = oss2.Auth(OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET)
|
|
|
bucket = oss2.Bucket(auth, 'oss-cn-shenzhen.aliyuncs.com', 'ansjer-static-resources')
|
|
@@ -1843,6 +1844,7 @@ class DeviceManagement(View):
|
|
|
voice_prompt.language = language
|
|
|
if device_types:
|
|
|
device_type_list = device_types.split(',')
|
|
|
+ device_type_list = list(map(int, device_type_list))
|
|
|
voice_prompt.device_types = device_type_list
|
|
|
voice_prompt.save()
|
|
|
return response.json(0)
|