From ab9b84ee42c872cd2277d2e3a863718355bcc6aa Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 15 十二月 2025 16:20:27 +0800
Subject: [PATCH] feat:开发
---
ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs b/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
index 3329d1d..49e85f3 100644
--- a/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
+++ b/ApiTools.Application/SmsUtils/Commands/SmsAliyunNotifyCommandHandler.cs
@@ -1,10 +1,12 @@
锘縰sing ApiTools.Core;
+using Baidu.Aip.BodyAnalysis;
using Furion;
using Furion.DatabaseAccessor;
using Furion.HttpRemote;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
+using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -38,18 +40,21 @@
/// <returns></returns>
public async Task<SmsAliyunNotifyCommandResult> Handle(SmsAliyunNotifyCommand request, CancellationToken cancellationToken)
{
- if (App.GetConfig<string>("Environment") == "Product")
+ var env = App.GetConfig<string>("Environment");
+ if (env == "Product")
{
try
{
+ var json = request.ToJson();
await httpRemoteService.PostAsStringAsync("http://118.178.252.28:8780/api/common/sms/smsAliyunNotify",
- builder => builder.SetJsonContent(request));
+ builder => builder.SetJsonContent(json));
}
catch
{
}
}
+
var templateCodes = await EnumUtils.GetModel<EnumSmsTemplateCode>();
var msgIds = request.DistinctSelect(it => it.BizId.ToString());
var entities = await repSmsLog.AsQueryable()
--
Gitblit v1.9.1