| | |
| | | private readonly IOptions<WxmpOptions> options = options; |
| | | private readonly IMediator mediator = mediator; |
| | | |
| | | [HttpGet("subscribMessageNotify")] |
| | | [HttpGet("subscribMessageNotify/{code}")] |
| | | [AllowAnonymous] |
| | | [NonUnify] |
| | | public IActionResult SubscribMessageNotify([FromQuery] WxmpSubscribMessageNotifyRequestQuery query) |
| | | public IActionResult SubscribMessageNotify([FromRoute] string code, [FromQuery] WxmpSubscribMessageNotifyRequestQuery query) |
| | | { |
| | | var @params = new[] |
| | | { |
| | |
| | | command.Code = code; |
| | | command.OpenId = query.openid; |
| | | await mediator.Send(command); |
| | | return Content(query.echostr); |
| | | return Content("success"); |
| | | } |
| | | } |
| | | } |