Skip to content
New issue

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

支付统一下单接口签名错误 #402

Closed
icedeng opened this issue Apr 22, 2016 · 1 comment
Closed

支付统一下单接口签名错误 #402

icedeng opened this issue Apr 22, 2016 · 1 comment

Comments

@icedeng
Copy link

icedeng commented Apr 22, 2016

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:最新版

解决方法:EasyWeChat\Payment\API类方法request,385行,增加如下过滤:

foreach($params as $k=>$v) {
            if(empty($v)) {
                unset($params[$k]);
            }
        }
@overtrue
Copy link
Collaborator

@icedeng 试试:$params = array_filter($params);

overtrue added a commit that referenced this issue Apr 22, 2016
overtrue added a commit that referenced this issue Apr 22, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402
overtrue added a commit that referenced this issue May 4, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402

* Add User Tag service.

* Applied fixes from StyleCI (#409)

* Typo.
overtrue added a commit that referenced this issue May 17, 2016
* Bugfix close #389

* Fix tests.

* Fix url. close #393

* Payment::configForPayment() bugfix. EasyWeChat/docs#27

* Fix tests.

* Add methods for JSSDK payment.

* Fix tests.

* Applied fixes from StyleCI (#400)

* Scrutinizer Auto-Fixes (#399)

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Filter the empty params. #402

* Add User Tag service.

* Applied fixes from StyleCI (#409)

* Typo.

* CS.

* Support guzzle basic options. #415

* En comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants