From 2a75aa6b6e23a2f86046a2da21eb9e97ec58bdc3 Mon Sep 17 00:00:00 2001
From: lijin <17408817@qq.com>
Date: 星期四, 20 十一月 2025 08:48:49 +0800
Subject: [PATCH] 发送订阅消息
---
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 a023765..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://localhost:5010/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