Giter Club home page Giter Club logo

Comments (7)

xy-peng avatar xy-peng commented on May 23, 2024

这就是这个库存在的意义。拦截器会帮你计算签名,组装Authorization并设置到请求头中的。

from wechatpay-apache-httpclient.

jingshenbusi6530 avatar jingshenbusi6530 commented on May 23, 2024

@xy-peng 您说的这个拦截器在哪里?不会是SignatureExec.executeWithSignature()这个方法吧??还是需要自己实现?

from wechatpay-apache-httpclient.

xy-peng avatar xy-peng commented on May 23, 2024

准确的说,是通过扩展httpclient的责任链,实现了签名和验签相关的事宜,实现在这里

from wechatpay-apache-httpclient.

jingshenbusi6530 avatar jingshenbusi6530 commented on May 23, 2024

from wechatpay-apache-httpclient.

xy-peng avatar xy-peng commented on May 23, 2024

我们注意到,很多Java开发者接入微信支付是使用的apache httpclient,所以我们想尝试一种方式可以无侵入的实现签名和验签。这样我们的开发者还可以使用已有的生产框架或者代码来接入APIv3。

而httpclient提供的责任链模式,似乎是可以达到这一个目标的(欢迎开发者们反馈是不是真正达到了预期。。。)

from wechatpay-apache-httpclient.

jingshenbusi6530 avatar jingshenbusi6530 commented on May 23, 2024

@xy-peng 不少人在使用这个https://github.com/Wechat-Group/WxJava
开源的SDK来做微信相关的开发,对v2版本的接口支持很不错,有关v3接口的还不完善,是否会考虑协助完善下。

from wechatpay-apache-httpclient.

xy-peng avatar xy-peng commented on May 23, 2024

我们有在关注他们,他们实现的方式跟我们当前的方式很类似。多亏他们能帮我们把业务接口的支持做好 :-)

from wechatpay-apache-httpclient.

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.