|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
import json
|
|
|
|
|
|
-from src.core.callcenter.enumeration import CallStage
|
|
|
+from src.core.callcenter.enumeration import CallStage, CallType
|
|
|
|
|
|
saasId = "mdj"
|
|
|
|
|
@@ -121,8 +121,10 @@ def format_time_millis(time_millis, pattern='%Y%m%d'):
|
|
|
# return BASE_RECORD_PATH + call.call_type + '/' + call.saas_id + '/' + call.caller + '/' + format_time_millis(call.call_time)
|
|
|
|
|
|
def get_record_prefix(call):
|
|
|
- # 确保所有的值都是字符串类型
|
|
|
- return BASE_RECORD_PATH + str(call.call_type) + '/' + str(call.saas_id) + '/' + str(call.caller) + '/' + format_time_millis(call.call_time)
|
|
|
+ if CallType.BOT_CALL.code == call.call_type:
|
|
|
+ return BASE_RECORD_PATH + str(call.call_type) + '/' + str(call.saas_id) + '/' + str(call.called) + '/' + format_time_millis(call.call_time)
|
|
|
+ else:
|
|
|
+ return BASE_RECORD_PATH + str(call.call_type) + '/' + str(call.saas_id) + '/' + str(call.caller) + '/' + format_time_millis(call.call_time)
|
|
|
|
|
|
def get_record_file_name(call_id, stage: CallStage):
|
|
|
if stage.ROBOT == stage:
|