-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用微信支付createOrderV3接口,出现:数据查询结果为空 报错 #3408
Comments
发现了问题,只要序列化wxPayService,就会发生这个问题: |
为什么要序列化service对象? |
@around(value = "@annotation(auditLog)") |
调用微信支付v3下单接口,支付单生成了,但是出现调用https://api.mch.weixin.qq.com/v3/merchant-service/complaint-notifications接口记录,并提示:数据查询结果为空
WxJava 模块名: weixin-java-pay
WxJava 版本号:4.5.3.B
代码:
private R createWxOrder(UnionBaseRequest request, PayConfig payConfig) throws WxPayException {
WxPayService wxPayService = new WxPayServiceImpl();
WxPayConfig wxPayConfig = new WxPayConfig();
wxPayConfig.setAppId(request.getSubAppId());
wxPayConfig.setMchId(payConfig.getMchId());
wxPayConfig.setApiV3Key(payConfig.getApiV3Key());
if (StringUtils.isNotBlank(payConfig.getPrivateCertContent())) {
wxPayConfig.setPrivateCertContent(payConfig.getPrivateCertContent().getBytes());
}
if (StringUtils.isNotBlank(payConfig.getPrivateKeyContent())) {
wxPayConfig.setPrivateKeyContent(payConfig.getPrivateKeyContent().getBytes());
}
wxPayConfig.setPrivateKeyPath(payConfig.getPrivateKeyPath());
wxPayConfig.setPrivateCertPath(payConfig.getPrivateCertPath());
wxPayService.setConfig(wxPayConfig);
@auditlog(obsType = "现金(微信)", stage = "付款(拉起)")
public WxPayUnifiedOrderV3Result.JsapiResult createOrderV3(WxPayUnifiedOrderV3Request v3Request, WxPayService wxPayService) throws WxPayException {
return wxPayService.createOrderV3(TradeTypeEnum.JSAPI, v3Request);
}
日志:
The text was updated successfully, but these errors were encountered: