|
@@ -90,6 +90,8 @@ public class PushDomainService : IPushDomainService, IScopeDependency
|
|
|
int WaitSendId = GenerateWaitSendId();
|
|
|
message.WaitSendId = WaitSendId;
|
|
|
|
|
|
+ _logger.LogInformation($"取到WaitSendId值:{WaitSendId}");
|
|
|
+
|
|
|
//调用短信发送业务
|
|
|
var strResult = await SmsSend(messageDto, WaitSendId);
|
|
|
|
|
@@ -266,6 +268,7 @@ public class PushDomainService : IPushDomainService, IScopeDependency
|
|
|
/// <returns></returns>
|
|
|
private async Task<string> SmsSend(MessageDto messageDto, int WaitSendId)
|
|
|
{
|
|
|
+ _logger.LogInformation("准备短信推送");
|
|
|
string strResult;
|
|
|
try
|
|
|
{
|
|
@@ -368,6 +371,7 @@ public class PushDomainService : IPushDomainService, IScopeDependency
|
|
|
/// <returns></returns>
|
|
|
private async Task<string> PostHelper(string url, HttpContent content)
|
|
|
{
|
|
|
+ _logger.LogInformation($"准备推送短信, {nameof(PostHelper)}");
|
|
|
var result = string.Empty;
|
|
|
try
|
|
|
{
|
|
@@ -388,7 +392,7 @@ public class PushDomainService : IPushDomainService, IScopeDependency
|
|
|
_logger.LogError(ex.InnerException?.Message);
|
|
|
result = ex.Message;
|
|
|
}
|
|
|
-
|
|
|
+ _logger.LogInformation($"推送响应:{result}");
|
|
|
return result;
|
|
|
}
|
|
|
|