支付回调bug

This commit is contained in:
mactj 2021-01-19 15:06:27 +08:00
parent fecca933bb
commit d59efdfd6b
3 changed files with 3 additions and 2 deletions

View File

@ -222,7 +222,7 @@ public class AppOrderController extends BaseController {
}
@Log(title = "回调", businessType = BusinessType.OTHER)
@PostMapping("/payNotify")
@PostMapping("/pay/payNotify")
String payNotify(@RequestBody String xmlData) throws WxPayException {
WxPayOrderNotifyResult notifyResult = wxPayService.parseOrderNotifyResult(xmlData);
// TODO 根据自己业务场景需要构造返回对象

View File

@ -197,7 +197,7 @@ wxmini:
appId: wx76ec015fc31a1946 #微信公众号或者小程序等的appid 必填
mchId: 1486984962
mchKey: 82aZ9Tb6eu5W2HdXKQWZU2SztU8w8nJ8
notifyUrl: http://41.liyiren.me:8696/winery/order/payNotify
notifyUrl: http://41.liyiren.me:8696/winery/order/pay/payNotify
subAppId: #服务商模式下的子商户公众账号ID
subMchId: #服务商模式下的子商户号
tradeType: JSAPI #交易类型

View File

@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/*/api-docs").anonymous()
.antMatchers("/druid/**").anonymous()
.antMatchers("/winery/mini/user/**").permitAll()
.antMatchers("/winery/order/pay/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()
.and()