From 2b0556ae5319a3deddd0938aa1f5db8067480ce7 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 01 十二月 2025 13:31:31 +0800
Subject: [PATCH] feat:开发
---
ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs | 5 +----
ApiTools.Web.Entry/appsettings.json | 2 +-
ApiTools.Web.Entry/Controllers/WxmpController.cs | 3 +++
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs b/ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs
index 8f8bed4..0441bf0 100644
--- a/ApiTools.Core/Models/WxmpUtils/Models/WxmpSubscribMessageNotifyRequestQuery.cs
+++ b/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; }
}
}
diff --git a/ApiTools.Web.Entry/Controllers/WxmpController.cs b/ApiTools.Web.Entry/Controllers/WxmpController.cs
index 102d943..88a0b4d 100644
--- a/ApiTools.Web.Entry/Controllers/WxmpController.cs
+++ b/ApiTools.Web.Entry/Controllers/WxmpController.cs
@@ -1,5 +1,7 @@
锘縰sing 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[]
diff --git a/ApiTools.Web.Entry/appsettings.json b/ApiTools.Web.Entry/appsettings.json
index 812a8cd..206c6de 100644
--- a/ApiTools.Web.Entry/appsettings.json
+++ b/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"
},
--
Gitblit v1.9.1