|
@@ -878,6 +878,8 @@ class AiView(View):
|
|
return response.json(0, {'update_count': is_update})
|
|
return response.json(0, {'update_count': is_update})
|
|
else:
|
|
else:
|
|
id_list = request_dict.get('id_list', None)
|
|
id_list = request_dict.get('id_list', None)
|
|
|
|
+ if not id_list:
|
|
|
|
+ request_dict.get('id_list[]', None) # 获取IOS数组传参
|
|
logger = logging.getLogger('info')
|
|
logger = logging.getLogger('info')
|
|
logger.info('已读ai消息id_list:{}'.format(id_list))
|
|
logger.info('已读ai消息id_list:{}'.format(id_list))
|
|
if not id_list:
|
|
if not id_list:
|
|
@@ -901,6 +903,8 @@ class AiView(View):
|
|
|
|
|
|
def deleteInfo(self, userID, request_dict, response):
|
|
def deleteInfo(self, userID, request_dict, response):
|
|
id_list = request_dict.get('id_list', None)
|
|
id_list = request_dict.get('id_list', None)
|
|
|
|
+ if not id_list:
|
|
|
|
+ request_dict.get('id_list[]', None) # 获取IOS数组传参
|
|
logger = logging.getLogger('info')
|
|
logger = logging.getLogger('info')
|
|
logger.info('删除ai消息id_list:{}'.format(id_list))
|
|
logger.info('删除ai消息id_list:{}'.format(id_list))
|
|
if not id_list:
|
|
if not id_list:
|