Browse Source

根据callid获取录音文件

liyuanyuan 2 years ago
parent
commit
6943308dc7

+ 8 - 3
zxkf-api/src/main/java/api/controller/order/WorkOrderVisitLogController.java

@@ -118,9 +118,14 @@ public class WorkOrderVisitLogController extends BaseController {
118 118
         if(!StringHelper.isEmpty( log.getCallid()) && !log.getCallid().equals("0"))
119 119
         {
120 120
             //根据callid获取录音文件
121
-            String captchaEnabled = configService.selectCaptchaEnabled("FileUrl");
122
-            CallLog record=calllogService.getEntity(log.getCallid());
123
-            ov.setLyurl(captchaEnabled + record.getRecordPath());
121
+
122
+            LambdaQueryWrapper<CallLog> qw=new LambdaQueryWrapper<>();
123
+            qw.eq(CallLog::getUuid,log.getCallid());
124
+            CallLog callLog=calllogService.getEntity(qw);
125
+            String[] FileUrls = configService.selectCaptchaEnabled("FileUrl").split("\\|");
126
+            if (!StringHelper.isEmpty(callLog.getRecordPath())) {
127
+                ov.setLyurl(FileUrls[0] + callLog.getRecordPath().replace(FileUrls[1],""));
128
+            }
124 129
         }
125 130
 
126 131
         if(log.getMyd()!=null)