GithubHelp home page GithubHelp logo

Comments (2)

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

迁移指引是应该提供的,我们来准备下。

如果一定要“兼容”,肯定是新的 wechatpay-java 兼容 wechatpay-apache-httpclient。但是使用 wechatpay-apache-httpclient 的代码,是调用方组包再用 apache-httpclient 发送请求,而 wechatpay-java 包装了组包和底层请求。

@cuznjaclove 你有什么更具体的建议吗?或者用示例(伪)代码演示一下你设想的兼容是怎么样的?还是希望初始化的部分兼容,以便于迁移。

from wechatpay-java.

Cubeatz avatar Cubeatz commented on May 30, 2024

迁移指引是应该提供的,我们来准备下。

如果一定要“兼容”,肯定是新的 wechatpay-java 兼容 wechatpay-apache-httpclient。但是使用 wechatpay-apache-httpclient 的代码,是调用方组包再用 apache-httpclient 发送请求,而 wechatpay-java 包装了组包和底层请求。

@cuznjaclove 你有什么更具体的建议吗?或者用示例(伪)代码演示一下你设想的兼容是怎么样的?还是希望初始化的部分兼容,以便于迁移。

我想法也是 按这里说初始化的部分兼容(后面也打算去这么做,但是因时间问题暂时放弃)。给个建议可以再添加一个模块去写兼容逻辑,就和log4j与slf4j结合使用类似,使用方只需要引入slf4j-log4j12即可满足,基本上可以做到0代码迁移。如果不需要迁移,不引入兼容jar包就行

from wechatpay-java.

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.