fix: 将微信 OAuth 公开配置改为 /wechat/oauth/config
All checks were successful
Build and Deploy / deploy (push) Successful in 1m42s
All checks were successful
Build and Deploy / deploy (push) Successful in 1m42s
避免被 /wechat/mp/{appId} 吞掉导致方法/参数校验异常。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
937f0bb78b
commit
7c1be3a723
@ -32,7 +32,7 @@ public class WeChatRouteIntegrationTests
|
||||
host.RoutePatterns.Should().Contain("apiwechat/verification");
|
||||
host.RoutePatterns.Should().Contain("wechat/mp/{appId}");
|
||||
host.RoutePatterns.Should().Contain("wechat/mp/login-qrcode");
|
||||
host.RoutePatterns.Should().Contain("wechat/mp/oauth-config");
|
||||
host.RoutePatterns.Should().Contain("wechat/oauth/config");
|
||||
host.RoutePatterns.Should().Contain("wechat/mp/follow-qrcode");
|
||||
host.RoutePatterns.Should().Contain("wechat/oauth/user-info");
|
||||
host.RoutePatterns.Should().Contain("wechat/customer/register");
|
||||
|
||||
@ -161,9 +161,10 @@ public partial class AuthService
|
||||
|
||||
/// <summary>
|
||||
/// H5 网页授权公开配置:AppId + OAuth 回调根(来自其他配置 wechat_mp)。
|
||||
/// 注意:勿挂在 /wechat/mp/{appId} 下,避免被公众号回调路由吞掉。
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("/wechat/mp/oauth-config")]
|
||||
[HttpGet("/wechat/oauth/config")]
|
||||
[ApiExplorerSettings(GroupName = "WeChat")]
|
||||
public async Task<WxOAuthConfigOutput> GetWeChatOAuthConfigAsync(
|
||||
CancellationToken cancellationToken = default)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user