We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
方法内将URL进行了normalize
wechatpay-php/src/Builder.php
Line 129 in 2478445
会导致一些API失效, 如 查询订单 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_4_2.shtml#menu2
参数 out_trade_no 需要从path传入, 本身out_trade_no支持数字大小写和部分特殊字符 normalize之后会将参数修改导致API返回订单未找到
The text was updated successfully, but these errors were encountered:
本 SDK 把 URL 中的大写视为包含连字号的 segment。请求时, camelCase 会替换为 camel-case。相关 issue 可参考 #56、 #69。
camelCase
camel-case
为了避免大小写错乱,URL 中存在变量时的正确做法是:使用 链式 URI Template 的 Path 变量。比如:
->v3->marketing->favor->users->_openid_->coupons->post(['openid' => 'AbcdEF12345'])
->v3->marketing->favor->users->{'{openid}'}->coupons->post(['openid' => 'AbcdEF12345'])
->chain('{+myurl}'->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])
->{'{+myurl}'}->post(['myurl' => 'v3/marketing/favor/users/AbcdEF12345/coupons'])
Sorry, something went wrong.
thanks
No branches or pull requests
方法内将URL进行了normalize
wechatpay-php/src/Builder.php
Line 129 in 2478445
会导致一些API失效, 如 查询订单
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_4_2.shtml#menu2
参数 out_trade_no 需要从path传入, 本身out_trade_no支持数字大小写和部分特殊字符
normalize之后会将参数修改导致API返回订单未找到
The text was updated successfully, but these errors were encountered: