Просмотр исходного кода

Merge branch 'master' of http://192.168.1.222:3000/jiayi/callcenter-api

liyuanyuan месяцев назад: 8
Родитель
Сommit
c840414efa

+ 1 - 0
hjzx-api/src/main/java/api/controller/call/IvrController.java

@@ -36,6 +36,7 @@ public class IvrController extends BaseController {
36 36
         qw.like(!StringHelper.isEmpty(input.getName()), Ivr::getName, input.getName());
37 37
         qw.like(!StringHelper.isEmpty(input.getVersion()), Ivr::getVersion, input.getVersion());
38 38
         qw.like(!StringHelper.isEmpty(input.getRemark()), Ivr::getRemark, input.getRemark());
39
+        qw.orderByDesc(Ivr::getIvrId);
39 40
         Page<Ivr> page = GetPage(pageInput);
40 41
         if (page != null) {
41 42
             IPage<Ivr> iPage = ivrService.getListPage(page, qw);

+ 1 - 0
hjzx-api/src/main/resources/application-dev.yml

@@ -75,3 +75,4 @@ spring:
75 75
 
76 76
   isNote: 1
77 77
   pushUrl: 192.168.1.15:8320/Home/receiveCall
78
+  curlUrl: http://192.168.1.15:8320/

+ 1 - 0
hjzx-api/src/main/resources/application-production.yml

@@ -41,3 +41,4 @@ spring:
41 41
 
42 42
   isNote: 1
43 43
   pushUrl: 192.168.1.15:8320/Home/receiveCall
44
+  curlUrl: http://192.168.1.15:8320/

+ 4 - 3
hjzx-util/src/main/java/api/util/helper/TtsHelper.java

@@ -52,9 +52,10 @@ public class TtsHelper {
52 52
                 break;
53 53
         }
54 54
     }
55
-
55
+    public  static  final String curlUrl= SpringHelper.getRequiredProperty("spring.curlUrl");;
56 56
     public static String TextToSpeech(String word) {
57
-        return TextToSpeech(word, "");
57
+         String path=curlUrl+TextToSpeech(word, "");
58
+        return path;
58 59
     }
59 60
 
60 61
     public static String TextToSpeech(String word, String filename) {
@@ -71,7 +72,7 @@ public class TtsHelper {
71 72
 
72 73
         transfer(word,filePath);
73 74
 
74
-        return filePath;
75
+        return parentPath+ "/" + filename + ".wav";
75 76
     }
76 77
 
77 78
     public static String TextToSpeechAgent(String word, String filename) {