Skip to content

Releases: cuter44/wxpay-sdk

* bugfix:wxcp:CorpSnsapiBase invoking obsoleted getAppid()

26 May 03:25
Compare
Choose a tag to compare
  • bugfix:wxcp:CorpSnsapiBase invoking obsoleted getAppid();

Yes, you do want to acquired this patch if you are on wxcp.
Do read https://github.com/cuter44/wxpay-sdk/releases/tag/0.10.0 if you are migrating from under 0.10.0


  • bugfix:wxcp:修正 CorpSnsapiBase 调用 getAppid()(已废弃) 导致的不可用问题;

务必参阅 https://github.com/cuter44/wxpay-sdk/releases/tag/0.10.0 如果你是迁移从 0.10.0 之前. (假装自己是机翻

Thanks for reliance to Nyaguruware ฅ( ◐‿◑)ฅ

Release 0.11.1

18 Apr 05:36
Compare
Choose a tag to compare
Release 0.11.1 Pre-release
Pre-release

Nothing much, we are just pushing on the Token Redistributing plan.

  • New wxcp factory that be like the new wxmp factory, also the credential mechanism.
  • Wxmsg: fixed a bug that MsgParser(mistakenly written as WxmsgParser in commit msg) do not correctly recognize the event type.
  • Migrated all demo jsps to new factory.
  • Clear legacy code.

贯彻落实凭证分发机能

  • 功能类似 WxmpFactoryBase 的 WxcpFactoryBase. (不过就目前在企业号 API 所作的努力我觉得不会有人用...
  • Wxmsg: 修正: 写错了一个常量导致事件类型无法解析.
  • 将全部 demos 迁移到新工厂方法上.
  • 删除已废弃的代码.

Thanks for your reliance on Nyaguruware. ( _ _)zZᶻ

Featured AT/JT Redistribute

28 Mar 08:41
Compare
Choose a tag to compare
Pre-release
  • Various improvements to aid multi-account developing.
    • Recrafted wxmp/wxpay factory, previously used Wxmp/WxpayFactory are obsoleted and tweaked by Wxmp/WxpayFactorySingl. They also have a superclass Wxmp/WxpayFactoryBase for purposed development.
    • New class and specification of ATMag, tweaking legacy TokenKeeper.
    • All wxmp servlet such as snsapi are all reworked, to concert these changes.
  • AT/JT redistributing is finally supported.
  • Other minor improvements.

Introduction of new TokenProvider mechanism

An interface named TokenProvider added, which denotes APIs of previous TokenKeeper. There comes also two built-in implemention: ATCore fetches access_token and JSSDK ticket directly from weixin's server like TokenKeeper do; ATSatellite fetches those from server featuring a AT/JTDistribute servlet (included in release)(a.k.a. relaying tokens). What's more you can even develop your own protocol and easily intergrate it.
As of ATMag, if provide a appid-TokenProvider stroage to help create/recall your instances. This is selective, you can choose use or not to use it. (But I advice it as it helps a lot.)

New factories

Just one note you must read: If you decide to migrate to 0.10.0+ you MUST, COMPLETELY abandon all WxmpFactory and use WxmpFactorySingl. Mixing WxmpFactory and WxmpFactorySingl will activated the legacy TokenKeeper, They are interfering mutually so you will end in fails on issuing wxmp requests.
Also remember to clear direct TokenKeeper reference if you so did.

Wxmp servlets migration

To withdraw from the legacy WxmpFactory, and to subject to somevhat naming convention, their design are changed a bit. Your extended servlet may have to change coordinately. I have mark all legacy method as final so compiler will force you to do that. Make sure to read the javadoc, and do a full re-compile.


  • 为支持多公众号所作的改进.
    • 重构 wxmp/wxpay 的工厂方法. 使用 Wxmp/WxpayFactorySingl 替换旧有的(废弃)工厂. 并提供一个基类以更好支持二次开发.
    • 新的 tokens 管理机制, 替换旧有(废弃) TokenKeeper.
    • Wxmp servlet 已全部重写以配合上述更改.
  • 终于支持转传 access_token/JSSDK ticket 了.
  • 其他改进.

新的 tokens 管理机制

增加了一个新接口 TokenProvider 描述旧有的 TokenKeeper 提供的 tokens 维护服务.
提供了两个内建的实现 ATCore 用以替换旧有的 TokenKeeper; ATSatellite 提供中继功能(配合搭载ATDistribute/JTDistribute 的服务器端). 甚至自行开发自己的实现.
ATMag 提供了一个可选的 appid-TokenProvider 管理服务. 它可以在避免二次开发的场合提供开箱即用的实现.

新的工厂方法

分离原有代码以提供一个更干净的基类. 原有的工厂类独立为单例实现.
如需从以往版本迁移, 必需删除所有旧 WxmpFactory 的引用. 因为这会激活旧有的 TokenKeeper, 从而导致 access_token 干扰.

迁移 wxmp servlets

为了删除 WxmpFactory 引用, 以及为了让它们读起来更押韵(误), 很多方法签名已被调整. 二次开发中衍生的扩展类可能要跟着调整(怪我咯). 已经废弃的方法名已被标记为 final 以便编译器强制你检查这些问题. 请务必仔细阅读文档并进行全量编译.

Thanks for your reliance on Nyaguruware. ฅ(⌯͒• ɪ •⌯͒ ฅ)

Mavenified!

20 Mar 04:40
Compare
Choose a tag to compare
Mavenified! Pre-release
Pre-release
  • Adapted to served Maven! But not in Maven Central. You have to still install it manually.
  • Finalize get/setProperty() in reqs/resps to avoid overiding.
    ! , can be incompatible.
  • Append new uncovered wxpay error codes.

Lunch time!


  • 已经支持 Maven! 但是没有扔上 Maven Central.
  • get/setProperty() 改成 final 的 防止你们作大死.
    ! , 但可能已经太迟了.
  • 追加了新的微信支付错误码.

我好饿我要吃午饭.

Thanks for your reliance on Nyaguruware. ((( =﹏)

Aggregated Bugfixes

17 Oct 04:27
Compare
Choose a tag to compare
Aggregated Bugfixes Pre-release
Pre-release
  • Improved snsapis, now better handling errors.
  • Semi-smsapis featured, can redirect with code instead of openid. It is just a temporary solution. Exposing code to client may be in security risk. (like MITM attack)
  • Featured CloseOrder(wxpay).
  • Deprecating an ambiguous constructor in Refund, also fixing the corresponding bug in demo.
  • Fixed various docs, internal constants, etc.

Likely to be the final release in 0.8.x. It is recommended to migrate from 0.7.x, please be aware of compatibility, and notice your compiler output.

Next pace we will improve multi account support and access_token redistributing.


  • 改进了 snsapi 们, 对程序员友好化改进.
  • 追加了 半成 snsapi, 可以直接传递 code, 由第三方换取 openid 及详细信息. 向客户端暴露 code 存在安全风险, 比如受到中间人攻击, 请勿将此功能应用于关键业务.
  • 追加了 CloseOrder, 微信支付关闭订单功能.
  • 修正了 Refund 的构造器歧义, 我们在注释中指明了这个问题. 同时修正了错误使用 API 的 demo.
  • 其余更新, 比如代码整理, 修改错误的文档等.

如无意外这是 0.8.x 的最终版本, 建议更新, 从 0.7.x 迁移到此版本不会有太大麻烦, 编译器会提示您应修改的地方.

Thanks for your reliance on Nyaguruware. ó╮(´●ω●`)

Fixed corrupted servlet init() method, and 1 more.

19 Apr 06:24
Compare
Choose a tag to compare
  • bugfix: fixed corrupted servlet init() method, sorry it is my wok.
  • bugfix: fixed a misspelling.

This will fix getServletContext() throwing a NullPointerException.
Not very ergent to migrate to this version, in situation that you never encountered such an exception.


  • bugfix: 修正了 所有 servlet 的init() 方法, 以保证 getServletContext() 不会抛出 NullPointerException. (我的锅)
  • bugfix: 异常信息的拼写错误.

Thanks for your reliance on Nyaguruware ( ˘•ω•˘ )

Version 0.7.0.0-dev released.

29 Sep 11:07
Compare
Choose a tag to compare
Pre-release

Hello, all. Long time no see wwww.

After weeks of digging, we are now bringing up the version 0.7.0.0, a major version update.

Changelog:

[wxmsg]

  • Rewrite most part of main component of wxmsg, more clarified interfaces.
    • WxmsgDispatcher: add event handling channels.
    • MsgParser: add event parsing feature, and deprecate .getMsgClass(String type)
    • WxmsgGatewayServlet: some slight adjustment.
  • Support events.
  • Support more types of reply, and make SUCCESS a independent reply type.
  • WxmsgReplyBase; adjust .buildXMLBody() to make it ease to construct nested structure.

[wxmp]

  • Featured: Parameterized QRCode

[known issues]

  • Encrypted text message is not yet supported, may be featured next release.
  • Reply type 'news' is not yet supported, as it is a bit complex. We may look in that before next release.
  • As occasion restricted, not all the msg/event/reply type is fully tested, please report issue if you are in trouble with them.

Finally I have spare time for wiki in this National Day vacation.

现在支持事件响应了!

Changelog:

[wxmsg]

  • 重写了wxmsg的主要部件, 以提供更清晰的接口
    • WxmsgDispatcher: 接受对于事件的 handler
    • MsgParser: 追加事件类型的解析, 废弃了 .getMsgClass(String type) 方法
    • WxmsgGatewayServlet: 轻微调整以适配下述的变更.
  • 支持对事件类型的解析和响应.
  • 实现更多回复类型, 无动作的 SUCCESS 响应现在作为独立的响应类型使用.
  • WxmsgReplyBase; 修正了 .buildXMLBody(), 以便能构建嵌套结构的回复.

[wxmp]

  • 已覆盖: 带参数二维码

[已知的问题]

  • 加密消息尚未被支持.
  • 图文响应尚未被支持, 因为略复杂.
  • 因为手头的公众号集体傲娇, 所以没有认真地对全部消息类型做单元测试. 你们用着觉得不妥就给我发卡吧...

国庆节快乐! (然而

Thanks for your cheers on Nyaguruware. (´・ω・`)

Version 0.6.5.0 release

20 Aug 09:45
Compare
Choose a tag to compare
Pre-release

Changelog since 0.6.3.0:

  • WxpayFactory provides new instantiate() method which accept a conf
  • All Snsapi servlets now provides a onError() callback method.
  • bugfix: a mistake that cause wxmp/SnsapiBase and wxmp/SnsapiUserinfo redirect to an invalid URI
  • demo-pay.jsp had been reworked, to better illustrated how pay works.
  • demos that acquires self's openid need no more twice-click.

自 0.6.3.0 以来的更新

  • WxpayFactory: 新构造函数 instantiate() 可以顺便注入 conf 参数 (然并卵
  • Snsapi 们 可以实现错误时逻辑了, 通过重写 onError() 方法.
  • bugfix: wxmp/SnsapiBasewxmp/SnsapiUserinfo 不再平地摔了 (怪我咯
  • 重写了 demo-pay.jsp, 因为有人报告了签名错误的 issue (#10)
  • 现在拿自己的 openid 不用点两次了.

Thanks for your cheers on Nyaguruware. (=^ ・ω・^=)

Version 0.6.3.0 release

16 Aug 22:35
Compare
Choose a tag to compare
Pre-release
  • wxcp module have been added.
  • snsapi have been seperated from servelt, now works as standalone request

Now the business is a bit too big... we need a hand to feature the remaining work.
I remember I promised the docs years ago, but it is still nothing there. Sorry.

Thanks for your cheers on Nyaguruware. ┌( ˙ω˙)┘

Reworked Wxmsg

10 Aug 23:54
Compare
Choose a tag to compare
Reworked Wxmsg Pre-release
Pre-release

Hi,
We have reworked the wxmsg module. It can now:

  • accept connecting test(ECHO) and msgs
  • distinguish msg type and invoking handlers
  • sending a text reply

...except this is a DEV release.
Other feature like event, more reply types, text cryptography is still on work. We will bring you up as soon as possible.
Other two modules acquires no changes since 0.6.0.4, though it is marked as pre-release


新的 wxmsg, 但是是 DEV 版本的:

  • 可以接收接入信息和客户端的信息了
  • 辨认出信息的类型并且调起相应的handler
  • 可以发送文字回复

其他特性...请再等等
其他两个模块没有更新, 正在使用 0.6.0.4 但不使用 wxmsg 的无需更新.


Bug report and Requirement goes here: https://github.com/cuter44/wxpay-sdk/issues
Thanks for your relying on Nyaguruware. ( ノ・ω・)ノ"