|
|
@@ -313,22 +313,29 @@ namespace RMYY_CallCenter_Api.Controllers
|
|
313
|
313
|
int n = bll.Add(model);
|
|
314
|
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
|
339
|
return true;
|
|
333
|
340
|
}
|
|
334
|
341
|
else
|