1550076451 %!s(int64=3) %!d(string=hace) años
padre
commit
dff39c9da2
Se han modificado 1 ficheros con 17 adiciones y 10 borrados
  1. 17 10
      RMYY_CallCenter_Api/Controllers/InternalMessagesController.cs

+ 17 - 10
RMYY_CallCenter_Api/Controllers/InternalMessagesController.cs

313
                 int n = bll.Add(model);
313
                 int n = bll.Add(model);
314
                 if (n > 0)
314
                 if (n > 0)
315
                 {
315
                 {
316
-                    PushMessageController.PushApp(title, content, receiveUserCode);
317
-                   
318
-                    if (!string .IsNullOrEmpty (usermoblie.F_Telephone) )
316
+                    try
319
                     {
317
                     {
320
-                        var userid = DingTalkHelper.GetUserIdByMobile(usermoblie.F_Telephone);
321
-                        if (!string .IsNullOrEmpty (userid))
318
+                        PushMessageController.PushApp(title, content, receiveUserCode);
319
+
320
+                        if (!string.IsNullOrEmpty(usermoblie.F_Telephone))
322
                         {
321
                         {
323
-                          string task_id=  DingTalkHelper.SendMessageText(userid, "", content);
324
-                            if (!string .IsNullOrEmpty (task_id))
322
+                            var userid = DingTalkHelper.GetUserIdByMobile(usermoblie.F_Telephone);
323
+                            if (!string.IsNullOrEmpty(userid))
325
                             {
324
                             {
326
-                                model.SMS_Id = n;
327
-                                model.F_Task_id = task_id;
328
-                                bll.Update (model);
325
+                                string task_id = DingTalkHelper.SendMessageText(userid, "", content);
326
+                                if (!string.IsNullOrEmpty(task_id))
327
+                                {
328
+                                    model.SMS_Id = n;
329
+                                    model.F_Task_id = task_id;
330
+                                    bll.Update(model);
331
+                                }
329
                             }
332
                             }
330
                         }
333
                         }
331
                     }
334
                     }
335
+                   catch
336
+                    {
337
+
338
+                    }
332
                     return true;
339
                     return true;
333
                 }
340
                 }
334
                 else
341
                 else