Code Monkey home page Code Monkey logo

Comments (6)

NotFound403 avatar NotFound403 commented on June 2, 2024

需要更详细的调试信息,尽量不要在issues中使用截图

from payment-spring-boot.

sunt89 avatar sunt89 commented on June 2, 2024

需要更详细的调试信息,尽量不要在issues中使用截图

public X509WechatCertificateInfo getCertificate() { for (String serial : CERTIFICATE_MAP.keySet()) { X509Certificate x509Cert = (X509Certificate) CERTIFICATE_MAP.get(serial); try { x509Cert.checkValidity(); X509WechatCertificateInfo x509WechatCertificateInfo = new X509WechatCertificateInfo(); x509WechatCertificateInfo.setWechatPaySerial(serial); x509WechatCertificateInfo.setX509Certificate(x509Cert); return x509WechatCertificateInfo; } catch (Exception e) { log.warn("the wechat certificate is invalid , {}", e.getMessage()); // Async? wechatMetaContainer.getTenantIds().forEach(this::refreshCertificate); } } throw new PayException("failed to obtain wechat pay x509Certificate "); }

问题原因可能出在这个地方,刷新平台证书的时候是每个tenantId 都进行刷新,但是存的时候是 存的 serial , certificate 的map,实际在取 平台证书的时候,没有根据tenantId进行获取。

from payment-spring-boot.

NotFound403 avatar NotFound403 commented on June 2, 2024

证书序列号一般认为是唯一的,目前根据租户特征增加了一个检索项,参考 1.0.12快照分支(将来是正式1.0.12分支)中的SignatureProvider重构部分

from payment-spring-boot.

sunt89 avatar sunt89 commented on June 2, 2024

证书序列号一般认为是唯一的,目前根据租户特征增加了一个检索项,参考 1.0.12快照分支(将来是正式1.0.12分支)中的SignatureProvider重构部分

好的 谢谢,我这边打包测试了下1.0.12的代码。还是会存在问题
在refreshCertificate中少了两行代码,没有设置serialNo和tenantId
x509WechatCertificateInfo.setWechatPaySerial(responseSerialNo);
x509WechatCertificateInfo.setTenantId(tenantId);

from payment-spring-boot.

NotFound403 avatar NotFound403 commented on June 2, 2024

证书序列号一般认为是唯一的,目前根据租户特征增加了一个检索项,参考 1.0.12快照分支(将来是正式1.0.12分支)中的SignatureProvider重构部分

好的 谢谢,我这边打包测试了下1.0.12的代码。还是会存在问题
在refreshCertificate中少了两行代码,没有设置serialNo和tenantId
x509WechatCertificateInfo.setWechatPaySerial(responseSerialNo);
x509WechatCertificateInfo.setTenantId(tenantId);

已经修正

from payment-spring-boot.

ty1314925 avatar ty1314925 commented on June 2, 2024

1.0.12版本什么时候可以发布,有遇到相同问题

from payment-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.