Bladeren bron

修改发送短信的平台

liyuanyuan 7 maanden geleden
bovenliggende
commit
cb8a9b0c77

+ 1 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/CallCenterApi.Interface.csproj

@@ -250,6 +250,7 @@
250 250
     <Compile Include="Controllers\RoleInfoController.cs" />
251 251
     <Compile Include="Controllers\SeatGroupController.cs" />
252 252
     <Compile Include="Controllers\SMSController.cs" />
253
+    <Compile Include="Controllers\SMSNewController.cs" />
253 254
     <Compile Include="Controllers\SysConfigController.cs" />
254 255
     <Compile Include="Controllers\tel\CallblackController.cs" />
255 256
     <Compile Include="Controllers\tel\CallInScreenController.cs" />

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

@@ -45,7 +45,7 @@
45 45
   <!--应用的access_token-->
46 46
   <add key="WeiBoAccessToken" value="2.00VbCStC01bkzx7bc0709d60OZTfkC" />
47 47
   <!-- ================== 5:Redis配置 ================== -->
48
-  <add key="Redis_Server" value="192.168.4.18"/>
48
+  <add key="Redis_Server" value="192.168.8.20"/>
49 49
   <add key="Redis_Port" value="6379"/>
50 50
   <add key="Redis_Defaultdatabase" value="5"/>
51 51
   <!-- ================== 6:商丘市政务服务网和12345系统对接接口-添加工单 ================== -->
@@ -86,7 +86,7 @@
86 86
   <!--首页报表刷新间隔,格式例如30000*60,务必将格式填写一致-->
87 87
   <add key="indextime" value="30000*60" />
88 88
   <add key="messageTime" value="60000" />
89
-  <add key="AuthDate" value="2024-12-12" />
89
+  <add key="AuthDate" value="2029-12-12" />
90 90
   <add key="AuthDateDays" value="5" />
91 91
   <add key="thirdUrl" value="http://61.52.211.251:8082/oa/" />
92 92
   <add key="fileExtension" value=".png、.jpg、.gif、.doc、.docx、.xls、.xlsx、.pdf、.mp3、.mp4、.wav" />

+ 11 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/HomeController.cs

@@ -19,6 +19,17 @@ namespace CallCenterApi.Interface.Controllers
19 19
 {
20 20
     public class HomeController : BaseController
21 21
     {
22
+
23
+        [AllowAnonymous]
24
+        public ActionResult  TestSms() {
25
+
26
+            //bool v = new SMSNewController().AddSmS( 1963441, userId, count, mag, u.F_Mobile);
27
+            string workorderid = "2025-06-16-1";
28
+            string mag = "[\"" + workorderid + "\"]";
29
+            string v= SMSNewController .AddSmS(1, "测试发送", "15639002755", "1132299838815801344", mag  , workorderid);
30
+            return Success("成功",v);
31
+        }
32
+
22 33
         // GET: Home
23 34
         public ActionResult Index()
24 35
         {

+ 207 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SMSNewController.cs

@@ -0,0 +1,207 @@
1
+using CallCenter.Utility;
2
+using CallCenterApi.Common;
3
+using CallCenterApi.DB;
4
+using CallCenterApi.Interface.Controllers.Base;
5
+using Newtonsoft.Json;
6
+using Newtonsoft.Json.Linq;
7
+using qcloudsms_csharp;
8
+using qcloudsms_csharp.httpclient;
9
+using qcloudsms_csharp.json;
10
+using System;
11
+using System.Collections.Generic;
12
+using System.Collections.Specialized;
13
+using System.Data;
14
+using System.IO;
15
+using System.Linq;
16
+using System.Net;
17
+using System.Net.Http;
18
+using System.Net.Security;
19
+using System.Security.Cryptography;
20
+using System.Security.Cryptography.X509Certificates;
21
+using System.Text;
22
+using System.Web;
23
+using System.Web.Mvc;
24
+using TencentCloud.Common;
25
+using TencentCloud.Common.Profile;
26
+
27
+
28
+
29
+
30
+using TencentCloud.Sms.V20210111;
31
+using TencentCloud.Sms.V20210111.Models;
32
+
33
+namespace CallCenterApi.Interface.Controllers
34
+{
35
+    //经分助手
36
+    public class SMSNewController : BaseController
37
+    {
38
+        public static string apiKey = "d40cf1f4e0748a1e1c199e6712e4ac1d";
39
+        public static string accessKey = "9c0ff687133407cad821f20419ee9a08ad4904082dfa3700e039e763988fe533";
40
+        public static string authHost = "https://opassapi.infocloud.cc/message/send";
41
+
42
+
43
+        public static string AddSmS(int userId, string Content, string mobiles, string templateCode
44
+         , string templateParam = "", string workorderid = "")
45
+        {
46
+            int t = 0;
47
+            try
48
+            {
49
+                var ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
50
+                var currentTime = Convert.ToInt64(ts.TotalMilliseconds).ToString();
51
+                HttpClient client = new HttpClient();
52
+
53
+                var requestHeaders = new Dictionary<string, string>();
54
+                //签名算法。支持HmacSHA256、HmacMD5、HmacSHA224、HmacSHA384、HmacSHA512
55
+                requestHeaders.Add("x-sign-method", "HmacSHA256");
56
+                requestHeaders.Add("x-api-key", $"{apiKey}");
57
+                //随机数。每次请求随机数建议不相同
58
+                requestHeaders.Add("x-nonce", $"{GetRandom()}");
59
+                //时间戳
60
+                requestHeaders.Add("x-timestamp", $"{currentTime}");
61
+
62
+
63
+                // client.DefaultRequestHeaders.Host = "recognition.image.myqcloud.com";
64
+                //设置headers请求参数 
65
+                foreach (var item in requestHeaders)
66
+                {
67
+                    client.DefaultRequestHeaders.Add(item.Key, item.Value);
68
+                }
69
+
70
+                //短信接口请求参数。参见接口规范
71
+                var jsArr = new Dictionary<string, string>();
72
+                jsArr.Add("phones", mobiles);
73
+
74
+                jsArr.Add("templateCode", templateCode);
75
+
76
+                //"[\"变量值1\",\"变量值2\"]"
77
+                if (!string.IsNullOrEmpty(templateParam))
78
+                    jsArr.Add("templateParam", templateParam);
79
+
80
+                //将headers参与与接口报文参数合并、排序,并生成本次请求的签名信息
81
+                var signDic = jsArr.Union(requestHeaders).ToDictionary(k => k.Key, v => v.Value);
82
+
83
+                //     var signDic = requestHeaders.ToDictionary(k => k.Key, v => v.Value);
84
+                var dicStr = GetSignContent(signDic);
85
+                var sign = Hmacsha256Encrypt(dicStr, accessKey);
86
+                //在header中设置本次请求签名信息
87
+                client.DefaultRequestHeaders.Add("x-sign", sign);
88
+                HttpContent str = new StringContent(JsonConvert.SerializeObject(jsArr));
89
+                str.Headers.Remove("Content-Type");
90
+                str.Headers.Add("Content-Type", "application/json");
91
+
92
+                ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
93
+                HttpResponseMessage response = client.PostAsync(authHost, str).Result;
94
+
95
+
96
+
97
+                string result = response.Content.ReadAsStringAsync().Result;
98
+
99
+                JObject jo = (JObject)JsonConvert.DeserializeObject(result);
100
+
101
+                string code = jo["code"].ToString();
102
+                Model.T_SMS_RecvSMS dModel = new Model.T_SMS_RecvSMS();
103
+                dModel.CallerNum = mobiles.Trim();
104
+                dModel.Content = Content.Trim();
105
+                dModel.RecvModemIMEI = templateCode;
106
+                dModel.F_Name = workorderid;
107
+                dModel.State = 0;
108
+                dModel.F_UserID = userId;
109
+                dModel.RecvTime = DateTime.Now;
110
+                int b = new BLL.T_SMS_RecvSMS().Add(dModel);
111
+
112
+                if (code != "200")
113
+                {
114
+                    string desc = jo["message"].ToString();
115
+                    LogFactory.GetLogger("SmsNew/Receive").Debug(code + "(" + desc + ")" + mobiles + Content);
116
+
117
+                    return code + "(" + desc + ")";
118
+                }
119
+                else
120
+                {
121
+                    if (b > 0)
122
+                    {
123
+                        return "";
124
+                    }
125
+                    else
126
+                    {
127
+                        return "发送失败";
128
+                    }
129
+
130
+                }
131
+
132
+
133
+            }
134
+            catch (Exception e)
135
+            {
136
+                LogFactory.GetLogger("SmsNew/Receive").Debug(e.ToString());
137
+                return e.ToString();
138
+            }
139
+
140
+
141
+        }
142
+
143
+
144
+
145
+        private static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
146
+        {
147
+            return true; //总是接受  
148
+        }
149
+        /// <summary>
150
+        /// Get Sign Content
151
+        /// </summary>
152
+        /// <param name="parameters"></param>
153
+        /// <returns></returns>
154
+        private static string GetSignContent(IDictionary<string, string> parameters)
155
+        {
156
+            // 第一步:把字典按Key的字母顺序排序
157
+            IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters);
158
+            IEnumerator<KeyValuePair<string, string>> dem = sortedParams.GetEnumerator();
159
+
160
+            // 第二步:把所有参数名和参数值串在一起
161
+            StringBuilder query = new StringBuilder("");
162
+            while (dem.MoveNext())
163
+            {
164
+                string key = dem.Current.Key;
165
+                string value = dem.Current.Value;
166
+                if (!string.IsNullOrEmpty(key) && !string.IsNullOrEmpty(value))
167
+                {
168
+                    query.Append(key).Append("=").Append(value).Append("&");
169
+                }
170
+            }
171
+            string content = query.ToString().Substring(0, query.Length - 1);
172
+
173
+            return content;
174
+        }
175
+
176
+        /// <summary>
177
+        /// HMACSHA1算法加密
178
+        /// </summary>
179
+        private static string Hmacsha256Encrypt(string encryptText, string encryptKey)
180
+        {
181
+            var encoding = new System.Text.UTF8Encoding();
182
+            StringBuilder builder = new StringBuilder();
183
+
184
+            using (var hmacsha256 = new HMACSHA256(encoding.GetBytes(encryptKey)))
185
+            {
186
+                byte[] hashmessage = hmacsha256.ComputeHash(encoding.GetBytes(encryptText));
187
+                for (int i = 0; i < hashmessage.Length; i++)
188
+                {
189
+                    builder.Append(hashmessage[i].ToString("x2"));
190
+                }
191
+            }
192
+            return builder.ToString();
193
+        }
194
+        /// <summary>
195
+        /// 获取随机数
196
+        /// </summary>
197
+        private static int GetRandom()
198
+        {
199
+            var random = new Random();
200
+            var rand = random.Next(10000, 999999999);
201
+            return rand;
202
+        }
203
+
204
+
205
+
206
+    }
207
+}

+ 211 - 62
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -9495,8 +9495,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
9495 9495
                                     if (!string .IsNullOrEmpty (u.F_Mobile))
9496 9496
                                     {
9497 9497
                                         string count = "你有新的工单,工单号" + oper.F_WorkOrderId + ",请及时查收。";
9498
-                                        string[] mag = { oper.F_WorkOrderId };
9499
-                                        bool n =new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9498
+                                        //string[] mag = { oper.F_WorkOrderId };
9499
+                                        //bool n =new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9500
+
9501
+                                        string n = sendjscs(userId, count, u.F_Mobile, oper.F_WorkOrderId);
9500 9502
                                     }
9501 9503
                                     if (!string.IsNullOrEmpty(u.F_Telephone ))
9502 9504
                                     {
@@ -9504,8 +9506,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
9504 9506
                                         if (userlist !=null )
9505 9507
                                         {
9506 9508
                                             string count = "你有新的工单,工单号" + oper.F_WorkOrderId + ",请及时查收。";
9507
-                                            string[] mag = { oper.F_WorkOrderId };
9508
-                                            bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9509
+                                            //string[] mag = { oper.F_WorkOrderId };
9510
+                                            //bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9511
+                                            string n = sendjscs(userId, count, u.F_Telephone, oper.F_WorkOrderId);
9509 9512
                                         }
9510 9513
                                         
9511 9514
                                     }
@@ -9704,8 +9707,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
9704 9707
                                         if (!string.IsNullOrEmpty(u.F_Mobile))
9705 9708
                                         {
9706 9709
                                             string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
9707
-                                            string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9708
-                                            bool  n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9710
+                                            //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9711
+                                            //bool  n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9712
+                                            //string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
9713
+                                            //string v = SMSNewController.AddSmS(userId, count, u.F_Mobile, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);
9714
+                                            string n = sendjscs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder.F_WorkOrderId);
9715
+
9709 9716
                                         }
9710 9717
                                         if (!string.IsNullOrEmpty(u.F_Telephone))
9711 9718
                                         {
@@ -9713,8 +9720,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
9713 9720
                                             if (userlist != null)
9714 9721
                                             {
9715 9722
                                                 string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
9716
-                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9717
-                                                bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9723
+                                                //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9724
+                                                //bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9725
+                                                string n = sendjscs(userId, count, u.F_Telephone, modelT_Bus_WorkOrder.F_WorkOrderId);
9718 9726
                                             }
9719 9727
 
9720 9728
                                         }
@@ -9820,8 +9828,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
9820 9828
                                             if (!string.IsNullOrEmpty(u.F_Mobile))
9821 9829
                                             {
9822 9830
                                                 string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
9823
-                                                string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
9824
-                                                bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9831
+                                                //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
9832
+                                                //bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
9833
+                                                string n = sendjscs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder1.F_WorkOrderId);
9825 9834
                                             }
9826 9835
                                             if (!string.IsNullOrEmpty(u.F_Telephone))
9827 9836
                                             {
@@ -9829,8 +9838,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
9829 9838
                                                 if (userlist != null)
9830 9839
                                                 {
9831 9840
                                                     string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
9832
-                                                    string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9833
-                                                    bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9841
+                                                    //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
9842
+                                                    //bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
9843
+                                                    string n = sendjscs(userId, count, u.F_Telephone, modelT_Bus_WorkOrder1.F_WorkOrderId);
9834 9844
                                                 }
9835 9845
 
9836 9846
                                             }
@@ -10059,8 +10069,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
10059 10069
                                         if (!string.IsNullOrEmpty(u.F_Mobile))
10060 10070
                                         {
10061 10071
                                             string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
10062
-                                            string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10063
-                                            bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
10072
+                                            //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10073
+                                            //bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
10074
+                                            string n = sendjscs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder1.F_WorkOrderId);
10064 10075
                                         }
10065 10076
                                         if (!string.IsNullOrEmpty(u.F_Telephone))
10066 10077
                                         {
@@ -10068,8 +10079,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
10068 10079
                                             if (userlist != null)
10069 10080
                                             {
10070 10081
                                                 string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
10071
-                                                string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10072
-                                                bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
10082
+                                                //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10083
+                                                //bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
10084
+                                                string n = sendjscs(userId, count, u.F_Telephone, modelT_Bus_WorkOrder1.F_WorkOrderId);
10073 10085
                                             }
10074 10086
 
10075 10087
                                         }
@@ -10158,8 +10170,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
10158 10170
                                             if (!string.IsNullOrEmpty(u.F_Mobile))
10159 10171
                                             {
10160 10172
                                                 string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
10161
-                                                string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10162
-                                                bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
10173
+                                                //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10174
+                                                //bool n = new SMSController().AddSmS(1963450, userId, count, mag, u.F_Mobile);
10175
+                                                string n = sendjscs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder1.F_WorkOrderId);
10163 10176
                                             }
10164 10177
                                             if (!string.IsNullOrEmpty(u.F_Telephone))
10165 10178
                                             {
@@ -10167,8 +10180,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
10167 10180
                                                 if (userlist != null)
10168 10181
                                                 {
10169 10182
                                                     string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
10170
-                                                    string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10171
-                                                    bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
10183
+                                                    //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
10184
+                                                    //bool n = new SMSController().AddSmSGroup(1963450, userId, count, mag, userlist, u.F_Telephone);
10185
+                                                    string n = sendjscs(userId, count, u.F_Telephone, modelT_Bus_WorkOrder1.F_WorkOrderId);
10172 10186
                                                 }
10173 10187
 
10174 10188
                                             }
@@ -10380,8 +10394,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10380 10394
 
10381 10395
                                             //   string count = " 您有工单已超期24小时,请及时处理,工单号" + it.F_WorkOrderId;
10382 10396
                                             string count = "你有工单" + it.F_WorkOrderId + "已超期" + string.Format("{0:f0}", ivn * 24) + "小时,请及时处理";
10383
-                                            string[] mag = { it.F_WorkOrderId, "" + string.Format("{0:f0}", ivn * 24) + "小时" };
10384
-                                            bool n = new SMSController().AddSmS(1963443, 0, count, mag, iv.F_Mobile);
10397
+                                            //string[] mag = { it.F_WorkOrderId, "" + string.Format("{0:f0}", ivn * 24) + "小时" };
10398
+                                            //bool n = new SMSController().AddSmS(1963443, 0, count, mag, iv.F_Mobile);
10399
+
10400
+                                            string n = sendcqtx(0, count, iv.F_Mobile, it.F_WorkOrderId, ivn * 24);
10385 10401
                                             it.F_IsSms = ivn + 2;
10386 10402
                                             bool t = new BLL.T_Bus_WorkOrder().Update(it);
10387 10403
 
@@ -10394,8 +10410,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10394 10410
                                                 foreach (var io in userlist)
10395 10411
                                                 {
10396 10412
                                                     string count = "你有工单" + it.F_WorkOrderId + "已超期" + string.Format("{0:f0}", ivn * 24) + "小时,请及时处理";
10397
-                                                    string[] mag = { it.F_WorkOrderId, "" + string.Format("{0:f0}", ivn * 24) + "小时" };
10398
-                                                    bool n = new SMSController().AddSmS(1963443, 0, count, mag, io);
10413
+                                                    //string[] mag = { it.F_WorkOrderId, "" + string.Format("{0:f0}", ivn * 24) + "小时" };
10414
+                                                    //bool n = new SMSController().AddSmS(1963443, 0, count, mag, io);
10415
+
10416
+                                                    string n = sendcqtx(0, count, io, it.F_WorkOrderId, ivn * 24);
10399 10417
                                                     it.F_IsSms = ivn + 2;
10400 10418
                                                     bool t = new BLL.T_Bus_WorkOrder().Update(it);
10401 10419
                                                 }
@@ -10424,8 +10442,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
10424 10442
                                     if (!string.IsNullOrEmpty(iv.F_Mobile))
10425 10443
                                     {
10426 10444
                                         string count = "你有工单" + it.F_WorkOrderId + ",1小时后超期,请及时处理";
10427
-                                        string[] mag = { it.F_WorkOrderId+ ",1" };
10428
-                                        bool n = new SMSController().AddSmS(1963446, 0, count, mag, iv.F_Mobile);
10445
+                                        //string[] mag = { it.F_WorkOrderId+ ",1" };
10446
+                                        //bool n = new SMSController().AddSmS(1963446, 0, count, mag, iv.F_Mobile);
10447
+                                        //string mag = "[\"" + it.F_WorkOrderId + "\",\"" + 1 + "\"]";
10448
+                                        // string v = SMSNewController.AddSmS(0, count, iv.F_Mobile, "1132299811154366464", mag, it.F_WorkOrderId);
10449
+                                        string v = sendjjcq(0, count, iv.F_Mobile, it.F_WorkOrderId, 1);
10450
+
10451
+
10429 10452
                                         it.F_IsSms = 2;
10430 10453
                                         bool t = new BLL.T_Bus_WorkOrder().Update(it);
10431 10454
                                     }
@@ -10437,8 +10460,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
10437 10460
                                             foreach (var io in userlist)
10438 10461
                                             {
10439 10462
                                                 string count = "你有工单" + it.F_WorkOrderId + ",1小时后超期,请及时处理";
10440
-                                                string[] mag = { it.F_WorkOrderId + ",1" };
10441
-                                                bool n = new SMSController().AddSmS(1963446, 0, count, mag, io );
10463
+                                                //string[] mag = { it.F_WorkOrderId + ",1" };
10464
+                                                //bool n = new SMSController().AddSmS(1963446, 0, count, mag, io );
10465
+                                                //string mag = "[\"" + it.F_WorkOrderId + "\",\"" + 1 + "\"]";
10466
+                                                //string v = SMSNewController.AddSmS(0, count, io, "1132299811154366464", mag, it.F_WorkOrderId);
10467
+                                                string v = sendjjcq(0, count, io, it.F_WorkOrderId, 1);
10442 10468
                                                 it.F_IsSms = 2;
10443 10469
                                                 bool t = new BLL.T_Bus_WorkOrder().Update(it);
10444 10470
                                             }
@@ -10461,8 +10487,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
10461 10487
                                     if (!string.IsNullOrEmpty(iv.F_Mobile))
10462 10488
                                     {
10463 10489
                                         string count = "你有工单" + it.F_WorkOrderId + ",4小时后超期,请及时处理";
10464
-                                        string[] mag = { it.F_WorkOrderId + ",4" };
10465
-                                        bool n = new SMSController().AddSmS(1963446, 0, count, mag, iv.F_Mobile);
10490
+                                        //string[] mag = { it.F_WorkOrderId + ",4" };
10491
+                                        //bool n = new SMSController().AddSmS(1963446, 0, count, mag, iv.F_Mobile);
10492
+                                        //string mag = "[\"" + it.F_WorkOrderId + "\",\"" + 4 + "\"]";
10493
+                                        //string v = SMSNewController.AddSmS(0, count, iv.F_Mobile, "1132299811154366464", mag, it.F_WorkOrderId);
10494
+
10495
+                                        string v = sendjjcq(0, count, iv.F_Mobile, it.F_WorkOrderId, 4);
10496
+
10466 10497
                                         it.F_IsSms = 1;
10467 10498
                                         bool t = new BLL.T_Bus_WorkOrder().Update(it);
10468 10499
                                     }
@@ -10474,8 +10505,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
10474 10505
                                             foreach (var io in userlist)
10475 10506
                                             {
10476 10507
                                                 string count = "你有工单" + it.F_WorkOrderId + ",4小时后超期,请及时处理";
10477
-                                                string[] mag = { it.F_WorkOrderId + ",4" };
10478
-                                                bool n = new SMSController().AddSmS(1963446, 0, count, mag, io );
10508
+                                                //string[] mag = { it.F_WorkOrderId + ",4" };
10509
+                                                //bool n = new SMSController().AddSmS(1963446, 0, count, mag, io );
10510
+                                                //string mag = "[\"" + it.F_WorkOrderId + "\",\"" + 4 + "\"]";
10511
+                                                //string v = SMSNewController.AddSmS(0, count, io, "1132299811154366464", mag, it.F_WorkOrderId);
10512
+
10513
+                                                string v = sendjjcq(0, count, io, it.F_WorkOrderId, 4);
10479 10514
                                                 it.F_IsSms = 1;
10480 10515
                                                 bool t = new BLL.T_Bus_WorkOrder().Update(it);
10481 10516
                                             }
@@ -10523,8 +10558,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10523 10558
                                 if (!string.IsNullOrEmpty(item.F_Mobile))
10524 10559
                                 {
10525 10560
                                     string count = "你有工单" + womodel.F_WorkOrderId + "收到催办,请及时处理";
10526
-                                    string[] mag = { womodel.F_WorkOrderId };
10527
-                                    bool n = new SMSController().AddSmS(1963438, 0, count, mag, item.F_Mobile);
10561
+                                    //string[] mag = { womodel.F_WorkOrderId };
10562
+                                    //bool n = new SMSController().AddSmS(1963438, 0, count, mag, item.F_Mobile);
10563
+
10564
+                                    string n = sendcbtx(0, count, item.F_Mobile, womodel.F_WorkOrderId);
10528 10565
 
10529 10566
                                 }
10530 10567
                                 if (!string.IsNullOrEmpty(item.F_Telephone))
@@ -10535,8 +10572,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10535 10572
                                         foreach (var phon in phonlist)
10536 10573
                                         {
10537 10574
                                             string count = "你有工单" + womodel.F_WorkOrderId + "收到催办,请及时处理";
10538
-                                            string[] mag = { womodel.F_WorkOrderId };
10539
-                                            bool n = new SMSController().AddSmS(1963438, 0, count, mag, phon);
10575
+                                            //string[] mag = { womodel.F_WorkOrderId };
10576
+                                            //bool n = new SMSController().AddSmS(1963438, 0, count, mag, phon);
10577
+
10578
+                                            string n = sendcbtx(0, count, phon, womodel.F_WorkOrderId);
10540 10579
                                         }
10541 10580
                                     }
10542 10581
                                 }
@@ -10568,8 +10607,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10568 10607
                                 if (!string.IsNullOrEmpty(item.F_Mobile))
10569 10608
                                 {
10570 10609
                                     string count = "您有工单" + womodel.F_WorkOrderId + "收到催办,请及时处理";
10571
-                                    string[] mag = { womodel.F_WorkOrderId };
10572
-                                    bool n = new SMSController().AddSmS(1963438, 0, count, mag, item.F_Mobile);
10610
+                                    //string[] mag = { womodel.F_WorkOrderId };
10611
+                                    //bool n = new SMSController().AddSmS(1963438, 0, count, mag, item.F_Mobile);
10612
+
10613
+                                    string n = sendcbtx(0, count, item.F_Mobile, womodel.F_WorkOrderId);
10573 10614
                                 }
10574 10615
                                 if (!string.IsNullOrEmpty(item.F_Telephone))
10575 10616
                                 {
@@ -10579,8 +10620,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
10579 10620
                                         foreach (var phon in phonlist)
10580 10621
                                         {
10581 10622
                                             string count = "您有工单" + womodel.F_WorkOrderId + "收到催办,请及时处理";
10582
-                                            string[] mag = { womodel.F_WorkOrderId };
10583
-                                            bool n = new SMSController().AddSmS(1963438, 0, count, mag, phon);
10623
+                                            //string[] mag = { womodel.F_WorkOrderId };
10624
+                                            //bool n = new SMSController().AddSmS(1963438, 0, count, mag, phon);
10625
+
10626
+                                            string n = sendcbtx(0, count, phon, womodel.F_WorkOrderId);
10584 10627
                                         }
10585 10628
                                     }
10586 10629
                                 }
@@ -12258,8 +12301,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
12258 12301
                                                     if (!string.IsNullOrEmpty(u.F_Mobile))
12259 12302
                                                     {
12260 12303
                                                         string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
12261
-                                                        string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
12262
-                                                        bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
12304
+                                                        //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
12305
+                                                        //bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
12306
+
12307
+                                                        // string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
12308
+                                                        //string v = SMSNewController.AddSmS(1, "测试发送", "15639002755", "1132299838815801344", mag, workorderid);
12309
+                                                        string v = sendCs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder.F_WorkOrderId);
12263 12310
                                                     }
12264 12311
                                                     if (!string.IsNullOrEmpty(u.F_Telephone))
12265 12312
                                                     {
@@ -12269,8 +12316,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
12269 12316
                                                             foreach (var it in userlist)
12270 12317
                                                             {
12271 12318
                                                                 string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
12272
-                                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
12273
-                                                                bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
12319
+                                                                //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
12320
+                                                                //bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
12321
+
12322
+                                                                string v = sendCs(userId, count, it, modelT_Bus_WorkOrder.F_WorkOrderId);
12274 12323
                                                             }
12275 12324
 
12276 12325
                                                         }
@@ -13918,8 +13967,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
13918 13967
                                             if (!string.IsNullOrEmpty(u.F_Mobile))
13919 13968
                                             {
13920 13969
                                                 string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
13921
-                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
13922
-                                                bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
13970
+                                                //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
13971
+                                                //bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
13972
+
13973
+                                                string v = sendCs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder.F_WorkOrderId);
13923 13974
                                             }
13924 13975
                                             if (!string.IsNullOrEmpty(u.F_Telephone))
13925 13976
                                             {
@@ -13929,8 +13980,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
13929 13980
                                                     foreach (var it in userlist)
13930 13981
                                                     {
13931 13982
                                                         string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
13932
-                                                        string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
13933
-                                                        bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
13983
+                                                        //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
13984
+                                                        //bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
13985
+
13986
+                                                        string v = sendCs(userId, count, it, modelT_Bus_WorkOrder.F_WorkOrderId);
13934 13987
                                                     }
13935 13988
 
13936 13989
                                                 }
@@ -14607,9 +14660,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
14607 14660
                                             if (!string.IsNullOrEmpty(u.F_Mobile))
14608 14661
                                             {
14609 14662
                                                 string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
14610
-                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
14611
-                                                bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
14612
-                                            }
14663
+                                                //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
14664
+                                                //bool v = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
14665
+
14666
+                                                  string v = sendCs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder.F_WorkOrderId);
14667
+                                             }
14613 14668
                                             if (!string.IsNullOrEmpty(u.F_Telephone))
14614 14669
                                             {
14615 14670
                                                 var userlist = u.F_Telephone.Split(',');
@@ -14618,9 +14673,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
14618 14673
                                                     foreach (var it in userlist)
14619 14674
                                                     {
14620 14675
                                                         string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
14621
-                                                        string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
14622
-                                                        bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
14623
-                                                    }
14676
+                                                        //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
14677
+                                                        //bool v = new SMSController().AddSmS(1963441, userId, count, mag, it);
14678
+
14679
+                                                string v = sendCs(userId, count, it, modelT_Bus_WorkOrder.F_WorkOrderId);
14680
+                                            }
14624 14681
 
14625 14682
                                                 }
14626 14683
 
@@ -14996,8 +15053,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
14996 15053
                                     if (!string.IsNullOrEmpty(u.F_Mobile))
14997 15054
                                     {
14998 15055
                                         string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
14999
-                                        string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
15000
-                                        bool m = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
15056
+                                        //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
15057
+                                        //bool m = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
15058
+
15059
+                                        string v = sendCs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder.F_WorkOrderId);
15001 15060
                                     }
15002 15061
                                     if (!string.IsNullOrEmpty(u.F_Telephone))
15003 15062
                                     {
@@ -15005,8 +15064,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
15005 15064
                                         if (userlist != null)
15006 15065
                                         {
15007 15066
                                             string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
15008
-                                            string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
15009
-                                            bool m = new SMSController().AddSmSGroup(1963441, userId, count, mag, userlist, u.F_Telephone);
15067
+                                            //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
15068
+                                            //bool m = new SMSController().AddSmSGroup(1963441, userId, count, mag, userlist, u.F_Telephone);
15069
+
15070
+                                            foreach (string item in userlist)
15071
+                                            {
15072
+                                                string v = sendCs(userId, count, item, modelT_Bus_WorkOrder.F_WorkOrderId);
15073
+                                            }
15074
+
15075
+                                           
15010 15076
                                         }
15011 15077
 
15012 15078
                                     }
@@ -15096,8 +15162,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
15096 15162
                                         if (!string.IsNullOrEmpty(u.F_Mobile))
15097 15163
                                         {
15098 15164
                                             string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
15099
-                                            string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
15100
-                                            bool m = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
15165
+                                            //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
15166
+                                            //bool m = new SMSController().AddSmS(1963441, userId, count, mag, u.F_Mobile);
15167
+
15168
+                                            string v = sendCs(userId, count, u.F_Mobile, modelT_Bus_WorkOrder1.F_WorkOrderId);
15101 15169
                                         }
15102 15170
                                         if (!string.IsNullOrEmpty(u.F_Telephone))
15103 15171
                                         {
@@ -15105,8 +15173,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
15105 15173
                                             if (userlist != null)
15106 15174
                                             {
15107 15175
                                                 string count = "你有重办工单,工单号" + modelT_Bus_WorkOrder1.F_WorkOrderId + ",请及时查收。";
15108
-                                                string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
15109
-                                                bool m = new SMSController().AddSmSGroup(1963441, userId, count, mag, userlist, u.F_Telephone);
15176
+                                                //string[] mag = { modelT_Bus_WorkOrder1.F_WorkOrderId };
15177
+                                                //bool m = new SMSController().AddSmSGroup(1963441, userId, count, mag, userlist, u.F_Telephone);
15178
+
15179
+                                                string v = sendCs(userId, count, u.F_Telephone, modelT_Bus_WorkOrder1.F_WorkOrderId);
15110 15180
                                             }
15111 15181
 
15112 15182
                                         }
@@ -17604,5 +17674,84 @@ namespace CallCenterApi.Interface.Controllers.workorder
17604 17674
 
17605 17675
 
17606 17676
         }
17677
+
17678
+        /// <summary>
17679
+        /// 发送重办查收提醒短信《重办工单查收提醒》
17680
+        /// </summary>
17681
+        /// <param name="userid"></param>
17682
+        /// <param name="content"></param>
17683
+        /// <param name="tel"></param>
17684
+        /// <param name="tempid"></param>
17685
+        /// <param name="workorderid"></param>
17686
+        /// <returns></returns>
17687
+        public string sendCs(int userid,string content, string tel, string workorderid) {
17688
+
17689
+            string mag = "[\"" + workorderid + "\"]";
17690
+            string v = SMSNewController.AddSmS(userid, content, tel, "1132299866192023552", mag, workorderid);
17691
+            return v;
17692
+        }
17693
+
17694
+        /// <summary>
17695
+        /// 工单查收提醒
17696
+        /// </summary>
17697
+        /// <param name="userid"></param>
17698
+        /// <param name="content"></param>
17699
+        /// <param name="tel"></param>
17700
+        /// <param name="workorderid"></param>
17701
+        /// <returns></returns>
17702
+        public string sendjscs(int userid, string content, string tel, string workorderid)
17703
+        {
17704
+
17705
+            string mag = "[\"" + workorderid + "\"]";
17706
+            string v = SMSNewController.AddSmS(userid, content, tel, "1132299838815801344", mag, workorderid);
17707
+            return v;
17708
+        }
17709
+        /// <summary>
17710
+        /// 即将超期提醒
17711
+        /// </summary>
17712
+        /// <param name="userid"></param>
17713
+        /// <param name="content"></param>
17714
+        /// <param name="tel"></param>
17715
+        /// <param name="workorderid"></param>
17716
+        /// <returns></returns>
17717
+        public string sendjjcq(int userid, string content, string tel, string workorderid,int hour)
17718
+        {
17719
+            string mag = "[\"" + workorderid + "\",\"" + hour + "\"]";
17720
+            
17721
+            string v = SMSNewController.AddSmS(userid, content, tel, "1132369071726223360", mag, workorderid);
17722
+            return v;
17723
+        }
17724
+        /// <summary>
17725
+        /// 工单催办提醒
17726
+        /// </summary>
17727
+        /// <param name="userid"></param>
17728
+        /// <param name="content"></param>
17729
+        /// <param name="tel"></param>
17730
+        /// <param name="workorderid"></param>
17731
+        /// <returns></returns>
17732
+        public string sendcbtx(int userid, string content, string tel, string workorderid)
17733
+        {
17734
+            string mag = "[\"" + workorderid + "\"]";
17735
+
17736
+            string v = SMSNewController.AddSmS(userid, content, tel, "1132299872114380800", mag, workorderid);
17737
+            return v;
17738
+        }
17739
+  
17740
+        /// <summary>
17741
+        /// 工单超期提醒
17742
+        /// </summary>
17743
+        /// <param name="userid"></param>
17744
+        /// <param name="content"></param>
17745
+        /// <param name="tel"></param>
17746
+        /// <param name="workorderid"></param>
17747
+        /// <param name="hour"></param>
17748
+        /// <returns></returns>
17749
+        public string sendcqtx(int userid, string content, string tel, string workorderid, int hour)
17750
+        {
17751
+            string mag = "[\"" + workorderid + "\",\"" + hour + "\"]";
17752
+
17753
+            string v = SMSNewController.AddSmS(userid, content, tel, "1132299858089172992", mag, workorderid);
17754
+            return v;
17755
+        }
17607 17756
     }
17608 17757
 }

+ 36 - 13
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/thirdController.cs

@@ -427,22 +427,40 @@ namespace CallCenterApi.Interface.Controllers
427 427
                                         if (!string.IsNullOrEmpty(u.F_Mobile))
428 428
                                         {
429 429
                                             string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
430
-                                            string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
431
-                                            bool n = new SMSController().AddSmS(1963450, 133, count, mag, u.F_Mobile);
430
+                                            //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
431
+                                            //bool n = new SMSController().AddSmS(1963450, 133, count, mag, u.F_Mobile);
432
+                                            string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
433
+                                            string v = SMSNewController.AddSmS(133, count, u.F_Mobile, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);
434
+
432 435
                                         }
433 436
                                         if (!string.IsNullOrEmpty(u.F_Telephone))
434 437
                                         {
435 438
                                             var userlist = u.F_Telephone.Split(',');
436 439
                                             if (userlist != null)
437 440
                                             {
438
-                                                string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.
439
-                                                    F_WorkOrderId + ",请及时查收。";
440
-                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
441
-                                                bool n = new SMSController().AddSmSGroup(1963450, 133,
442
-                                                    count, mag, userlist, u.F_Telephone);
441
+
442
+                                                foreach (string item in userlist)
443
+                                                {
444
+                                                    string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.
445
+                                                  F_WorkOrderId + ",请及时查收。";
446
+                                                    //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
447
+                                                    //bool n = new SMSController().AddSmSGroup(1963450, 133,
448
+                                                    //    count, mag, userlist, u.F_Telephone);
449
+                                                    string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
450
+                                                    string v = SMSNewController.AddSmS(133, count, item, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);
451
+                                                }
452
+
453
+                                                //string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.
454
+                                                //    F_WorkOrderId + ",请及时查收。";
455
+                                                ////string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
456
+                                                ////bool n = new SMSController().AddSmSGroup(1963450, 133,
457
+                                                ////    count, mag, userlist, u.F_Telephone);
458
+                                                //string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
459
+                                                //string v = SMSNewController.AddSmS(133, count, u.F_Telephone, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);
460
+
443 461
                                             }
444 462
 
445
-                                        }
463
+}
446 464
                                     }
447 465
                                     #endregion
448 466
                                 }
@@ -694,8 +712,11 @@ namespace CallCenterApi.Interface.Controllers
694 712
                                         if (!string.IsNullOrEmpty(u.F_Mobile))
695 713
                                         {
696 714
                                             string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.F_WorkOrderId + ",请及时查收。";
697
-                                            string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
698
-                                            bool n = new SMSController().AddSmS(1963450, 133, count, mag, u.F_Mobile);
715
+                                            //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
716
+                                            //bool n = new SMSController().AddSmS(1963450, 133, count, mag, u.F_Mobile);
717
+
718
+                                            string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
719
+                                            string v = SMSNewController.AddSmS(133, count, u.F_Mobile, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);
699 720
                                         }
700 721
                                         if (!string.IsNullOrEmpty(u.F_Telephone))
701 722
                                         {
@@ -704,9 +725,11 @@ namespace CallCenterApi.Interface.Controllers
704 725
                                             {
705 726
                                                 string count = "你有新的工单,工单号" + modelT_Bus_WorkOrder.
706 727
                                                     F_WorkOrderId + ",请及时查收。";
707
-                                                string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
708
-                                                bool n = new SMSController().AddSmSGroup(1963450, 133,
709
-                                                    count, mag, userlist, u.F_Telephone);
728
+                                                //string[] mag = { modelT_Bus_WorkOrder.F_WorkOrderId };
729
+                                                //bool n = new SMSController().AddSmSGroup(1963450, 133,
730
+                                                //    count, mag, userlist, u.F_Telephone);
731
+                                                string mag = "[\"" + modelT_Bus_WorkOrder.F_WorkOrderId + "\"]";
732
+                                                string v = SMSNewController.AddSmS(133, count, u.F_Telephone, "1132299838815801344", mag, modelT_Bus_WorkOrder.F_WorkOrderId);  
710 733
                                             }
711 734
 
712 735
                                         }