sunpengfei
2025-12-01 2b0556ae5319a3deddd0938aa1f5db8067480ce7
feat:开发
3个文件已修改
10 ■■■■ 已修改文件
ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ApiTools.Web.Entry/Controllers/WxmpController.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ApiTools.Web.Entry/appsettings.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs
@@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace ApiTools.Core
@@ -12,22 +13,18 @@
        /// <summary>
        /// 签名
        /// </summary>
        [JsonProperty("signature")]
        public string Signature { get; set; }
        /// <summary>
        /// 时间戳
        /// </summary>
        [JsonProperty("timestamp")]
        public string Timestamp { get; set; }
        /// <summary>
        /// 随机数
        /// </summary>
        [JsonProperty("nonce")]
        public string Nonce { get; set; }
        /// <summary>
        /// 随机字符串
        /// </summary>
        [JsonProperty("echostr")]
        public string Echostr { get; set; }
    }
}
ApiTools.Web.Entry/Controllers/WxmpController.cs
@@ -1,5 +1,7 @@
using ApiTools.Core;
using Furion.DataEncryption;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
@@ -15,6 +17,7 @@
        private readonly IOptions<WxmpOptions> options = options;
        [HttpGet("subscribMessageNotify")]
        [AllowAnonymous]
        public IActionResult SubscribMessageNotify([FromQuery] WxmpSubscribMessageNotifyRequestQuery request)
        {
            var @params = new[]
ApiTools.Web.Entry/appsettings.json
@@ -60,7 +60,7 @@
      }
    ],
    "SubscribMessage": {
      "Url": "https://sms.81812333.com/api/common/wxmp/wxmpSubscribMessageNotify",
      "Url": "http://118.178.252.28:8780/api/common/wxmp/subscribMessageNotify",
      "Token": "8Uu6CZ9KM2CAr3Q3O0YdWUYPfcXFhgMK",
      "EncodingAESKey": "tbBkUB7nCgZlfton3aKMlfzHSm7QdWgnpKFibl6sjn7"
    },