|
|
@@ -1,5 +1,6 @@
|
|
|
package com.fs.company.controller.company;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fs.aicall.domain.BaseDomain;
|
|
|
import com.fs.aicall.domain.TaskInfo;
|
|
|
import com.fs.aicall.domain.apiresult.PushIIntentionResult;
|
|
|
@@ -28,6 +29,7 @@ import com.fs.company.vo.CdrDetailVo;
|
|
|
import com.fs.company.vo.WorkflowExecRecordVo;
|
|
|
import com.fs.framework.security.LoginUser;
|
|
|
import com.fs.framework.service.TokenService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -45,6 +47,7 @@ import java.util.stream.Collectors;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/company/companyVoiceRobotic")
|
|
|
+@Slf4j
|
|
|
public class CompanyVoiceRoboticController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
@@ -225,8 +228,10 @@ public class CompanyVoiceRoboticController extends BaseController
|
|
|
}
|
|
|
|
|
|
@PostMapping("/callerResult4EasyCall")
|
|
|
- public R callerResult4EasyCall(CdrDetailVo cdr) {
|
|
|
- companyVoiceRoboticService.callerResult4EasyCall(cdr);
|
|
|
+ public R callerResult4EasyCall(@RequestBody String cdrStr) {
|
|
|
+ log.info(cdrStr);
|
|
|
+ CdrDetailVo cdrDetailVo = JSONObject.parseObject(cdrStr, CdrDetailVo.class);
|
|
|
+ companyVoiceRoboticService.callerResult4EasyCall(cdrDetailVo);
|
|
|
return R.ok();
|
|
|
}
|
|
|
/**
|