shanghui 2 months ago
parent
commit
74c854e988
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/callcenter/data_handler.py

+ 1 - 1
src/core/callcenter/data_handler.py

@@ -47,7 +47,7 @@ class DataHandleServer:
         user_name = kwargs.get('user_name')
         if time_end and call_record.type==1:
             bot_record = BotRecords.query.filter(BotRecords.session == session_id).first()
-            call_record.bussiness_type = bot_record.intent if bot_record else ''
+            call_record.bussiness_type = bot_record.intent if bot_record else '未知'
         # 如果记录是转人工并且有客服接通把客服更新到转接字段
         self.app.logger.debug(f"Received kwargs: {kwargs} user_id:{user_id},user_name:{user_name}, call_record:{call_record}")
         #如果记录已经有user_id不再更新 删除参数里面的user_id