From a209b2ed87bc2a564ef58de4eccc879df5bf337b Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 09 十月 2025 16:46:32 +0800
Subject: [PATCH] feat:开发
---
ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs b/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
index ffa3af0..49e85f3 100644
--- a/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
+++ b/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
@@ -43,9 +43,16 @@
var env = App.GetConfig<string>("Environment");
if (env == "Product")
{
- var json = request.ToJson();
- await httpRemoteService.PostAsStringAsync("http://118.178.252.28:8780/api/common/sms/smsAliyunNotify",
- builder => builder.SetJsonContent(json));
+ try
+ {
+ var json = request.ToJson();
+ await httpRemoteService.PostAsStringAsync("http://118.178.252.28:8780/api/common/sms/smsAliyunNotify",
+ builder => builder.SetJsonContent(json));
+ }
+ catch
+ {
+
+ }
}
var templateCodes = await EnumUtils.GetModel<EnumSmsTemplateCode>();
--
Gitblit v1.9.1