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指向也是有設置的:


