|
@@ -21,7 +21,6 @@ using Hotline.Share.Dtos.Settings;
|
|
|
using Hotline.Share.Enums.Order;
|
|
|
using Hotline.Share.Enums.Quality;
|
|
|
using Hotline.Share.Enums.Settings;
|
|
|
-using Hotline.Share.Mq;
|
|
|
using Hotline.Share.Requests;
|
|
|
using MapsterMapper;
|
|
|
using MediatR;
|
|
@@ -1870,27 +1869,6 @@ public class OrderController : BaseController
|
|
|
|
|
|
//内容分词
|
|
|
await _orderApplication.OrderParticiple(dto.Content, order.Id, HttpContext.RequestAborted);
|
|
|
-
|
|
|
- //sms
|
|
|
- try
|
|
|
- {
|
|
|
- await _pushDomainService.PushAsync(new MessageDto
|
|
|
- {
|
|
|
- PushBusiness = EPushBusiness.OrderAccept,
|
|
|
- ExternalId = order.Id,
|
|
|
- OrderId = order.Id,
|
|
|
- PushPlatform = EPushPlatform.Sms,
|
|
|
- Content =
|
|
|
- $"宜宾12345温馨提示:您的来电已受理(流水号:{order.No};提取码:{order.Password},可通过网站(http://hotline.12345lm.cn)进行查询,谢谢。【宜宾12345热线平台】)",
|
|
|
- Remark = order.Title,
|
|
|
- Name = order.FromName,
|
|
|
- TelNumber = order.Contact
|
|
|
- }, HttpContext.RequestAborted);
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- _logger.LogError("新增工单发送短信失败,Error:{err}", e.Message);
|
|
|
- }
|
|
|
return order.Id;
|
|
|
}
|
|
|
|
|
@@ -1981,6 +1959,28 @@ public class OrderController : BaseController
|
|
|
await Remove(id);
|
|
|
throw new UserFriendlyException($"工单开启流程失败!, {e.Message}", "工单开启流程失败");
|
|
|
}
|
|
|
+
|
|
|
+ //sms
|
|
|
+ try
|
|
|
+ {
|
|
|
+ var order = await _orderDomainService.GetOrderAsync(id, cancellationToken: HttpContext.RequestAborted);
|
|
|
+ await _pushDomainService.PushAsync(new MessageDto
|
|
|
+ {
|
|
|
+ PushBusiness = EPushBusiness.OrderAccept,
|
|
|
+ ExternalId = order.Id,
|
|
|
+ OrderId = order.Id,
|
|
|
+ PushPlatform = EPushPlatform.Sms,
|
|
|
+ Content =
|
|
|
+ $"宜宾12345温馨提示:您的来电已受理(流水号:{order.No};提取码:{order.Password},可通过网站(http://hotline.12345lm.cn)进行查询,谢谢。【宜宾12345热线平台】)",
|
|
|
+ Remark = order.Title,
|
|
|
+ Name = order.FromName,
|
|
|
+ TelNumber = order.Contact
|
|
|
+ }, HttpContext.RequestAborted);
|
|
|
+ }
|
|
|
+ catch (Exception e)
|
|
|
+ {
|
|
|
+ _logger.LogError("新增工单发送短信失败,Error:{err}", e.Message);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|