Giter Site home page Giter Site logo

Comments (8)

Javen205 avatar Javen205 commented on May 18, 2024

读取不到证书信息应该是你配置的路径有问题,请检查。

如你有更优的方案,请说明你的实现思路或者直接贡献代码。

from ijpay.

lengp avatar lengp commented on May 18, 2024

底层都是用这种方式读的文件: new File(getAbsolutePath(path)); 这样后有一个问题,就是打包后读取不到;

new ClassPathResource(KeyPath()); 这种方式读取会不会更好。

也有可能是我打的包有问题

from ijpay.

MrChen-Fly avatar MrChen-Fly commented on May 18, 2024

我们有需求将证书存储在数据库中,能否提供一个InputStream的的方法

from ijpay.

Javen205 avatar Javen205 commented on May 18, 2024

你说的是v2版本的接口还是v3版本的接口? v2 版本的接口已支持

from ijpay.

evanyangg avatar evanyangg commented on May 18, 2024

我这里也遇到了 classpath:/cert 这样读证书 无法读取 支付宝接口 @Javen205

from ijpay.

Javen205 avatar Javen205 commented on May 18, 2024

@evanyangg 获取到证书的绝对路径,再传入至接口的参数中

from ijpay.

aaa7636602 avatar aaa7636602 commented on May 18, 2024

支持@lengp 的建议, 微信退款证书 有巨大bug,请扩展流的方式读取证书,而不是单一的要求别人传绝对路径,传路径方式,用docker打包部署到服务器,访问不到证书文件:Caused by: java.io.FileNotFoundException: /mydata/apiclient_cert.p12 (No such file or directory)

from ijpay.

Javen205 avatar Javen205 commented on May 18, 2024

感谢各位反馈以及贡献代码,目前已都支持

com.ijpay.core.kit.PayKit#getAbsolutePath
com.ijpay.core.kit.PayKit#getFileToStream
com.ijpay.core.kit.PayKit#getCertFileInputStream

from ijpay.

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.