zhoufan лет назад: 4
Родитель
Сommit
0771993bf4

+ 6 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

@@ -89,6 +89,12 @@
89 89
   <!--首页报表刷新间隔,格式例如30000*60,务必将格式填写一致-->
90 90
   <add key="indextime" value="30000*60" />
91 91
   <add key="messageTime" value="60000" />
92
+  <!-- ================== 13:短信配置 ================== -->
93
+  <add key="Smsurl" value="http://rcsapi.wo.cn:8000/umcinterface/sendtempletmsg" />
94
+  <add key="Smsurl1" value="http://220.250.65.184:9014/union-gjdx-sms-api/sms/submit" />
95
+  <add key="Smscpcode" value="AABJYC" />
96
+  <add key="Smskey" value="724ee6be83d8d6f4d64ef5a537a9985d" />
97
+  <!-- ================== 14:其他配置 ================== -->
92 98
   <add key="AuthDate" value="2021-10-12" />
93 99
   <add key="OutSignCode" value="$AY12345#" />
94 100
 </appSettings>

+ 17 - 6
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSController.cs

@@ -22,14 +22,25 @@ namespace CallCenterApi.Interface.Controllers
22 22
 {
23 23
     public class SMSController : BaseController
24 24
     {
25
-      
26
-        private static string Smsurl = "http://rcsapi.wo.cn:8000/umcinterface/sendtempletmsg";
27
-        private static string Smsurl1 = "http://220.250.65.184:9014/union-gjdx-sms-api/sms/submit";
28
-        static string cpcode = "AABJYC";
29
-        static string key = "724ee6be83d8d6f4d64ef5a537a9985d";
30 25
 
26
+        //private static string Smsurl = "http://rcsapi.wo.cn:8000/umcinterface/sendtempletmsg";
27
+        //private static string Smsurl1 = "http://220.250.65.184:9014/union-gjdx-sms-api/sms/submit";
28
+        //static string cpcode = "AABJYC";
29
+        //static string key = "724ee6be83d8d6f4d64ef5a537a9985d";
30
+
31
+        private static string Smsurl = "";
32
+        private static string Smsurl1 = "";
33
+        static string cpcode = "";
34
+        static string key = "";
35
+
36
+        public SMSController()
37
+        {
38
+            Smsurl = Configs.GetValue("Smsurl");
39
+            Smsurl1 = Configs.GetValue("Smsurl1");
40
+            cpcode = Configs.GetValue("Smscpcode");
41
+            key = Configs.GetValue("Smskey");
42
+        }
31 43
 
32
-      
33 44
 
34 45
 
35 46
         /// <summary>