【优化】优化接口端新增加的几个controller的,增加httppost或者httpget的属性,防止swagger生成文档检测失败的情况。

This commit is contained in:
大灰灰
2023-01-01 22:37:51 +08:00
parent 614b05d8b1
commit a110ce1ccb
3 changed files with 9 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ namespace CoreCms.Net.Web.Controllers.WeChat
/// <summary>
/// 微信公众号消息推送对接
/// </summary>
public class WeChatOffiaccountNotifyController : Controller
public class WeChatOffiaccountNotifyController : ControllerBase
{
private readonly IWeChatApiHttpClientFactory _weChatApiHttpClientFactory;
private readonly WeChatOptions _weChatOptions;

View File

@@ -21,7 +21,7 @@ namespace CoreCms.Net.Web.Controllers.WeChat
/// <summary>
/// 微信公众号用户授权事件
/// </summary>
public class WeChatOffiaccountOAuth2Controller : Controller
public class WeChatOffiaccountOAuth2Controller : ControllerBase
{
//private readonly string _weChatAppId = AppSettingsConstVars.WeiXinAppId;
//private readonly string _weChatSecret = AppSettingsConstVars.WeiXinAppSecret;
@@ -48,6 +48,7 @@ namespace CoreCms.Net.Web.Controllers.WeChat
/// <param name="state"></param>
/// <param name="bkUrl"></param>
/// <returns></returns>
[HttpGet]
public async Task<ActionResult> UserInfoCallback(string code, string state, string bkUrl)
{
if (string.IsNullOrEmpty(code))