2025-11-10 12:05:05.140 [http-nio-8091-exec-14] WARN c.g.b.wxpay.v3.auth.AutoUpdateCertificatesVerifier - Auto update cert failed, statusCode = 404,body = {"code":"RESOURCE_NOT_EXISTS","message":"无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/doc/v3/merchant/4012153196"}
2025-11-10 12:05:05.142 [http-nio-8091-exec-14] ERROR com.zbkj.service.service.impl.WechatPayServiceImpl - 微信V3公众号预下单失败!
2025-11-10 12:05:05.142 [http-nio-8091-exec-14] ERROR com.zbkj.service.service.impl.WechatPayServiceImpl - 无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/doc/v3/merchant/4012153196
com.github.binarywang.wxpay.exception.WxPayException: 无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/doc/v3/merchant/4012153196
at com.github.binarywang.wxpay.config.VerifierBuilder.build(VerifierBuilder.java:88)
at com.github.binarywang.wxpay.config.WxPayConfig.initApiV3HttpClient(WxPayConfig.java:363)
at com.github.binarywang.wxpay.config.WxPayConfig.getVerifier(WxPayConfig.java:257)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.getWechatPaySerial(WxPayServiceApacheHttpImpl.java:363)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.configureRequest(WxPayServiceApacheHttpImpl.java:264)
at com.github.binarywang.wxpay.service.impl.WxPayServiceApacheHttpImpl.postV3WithWechatpaySerial(WxPayServiceApacheHttpImpl.java:144)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.unifiedOrderV3(BaseWxPayServiceImpl.java:789)
at com.github.binarywang.wxpay.service.impl.BaseWxPayServiceImpl.createOrderV3(BaseWxPayServiceImpl.java:737)
at com.zbkj.service.service.impl.WechatPayServiceImpl.createV3Order(WechatPayServiceImpl.java:526)
at com.zbkj.service.service.impl.PayServiceImpl.wechatPayment(PayServiceImpl.java:2648)
at com.zbkj.service.service.impl.PayServiceImpl.payment(PayServiceImpl.java:338)
at com.zbkj.front.controller.PayController.payment(PayController.java:48)
at com.zbkj.front.controller.PayController$$FastClassBySpringCGLIB$$18bec1f1.invoke(<gen
证书我有放到/www/wwwroot/crmeb20h/cert目录下,包括apiclient_cert.pem和apiclient_key.pem文件。
yml指向也是有设置的:


