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

提示错误 #106

Closed
nurexmet opened this issue Sep 17, 2015 · 3 comments
Closed

提示错误 #106

nurexmet opened this issue Sep 17, 2015 · 3 comments

Comments

@nurexmet
Copy link

微信支付系统返回的错误和借口提示的错误怎么会不一样(比如说:系统返回的错误是:编码格式错误。 但是,借口提示的是:系统繁忙,此时请开发者稍候再试)。

@jaring
Copy link

jaring commented Sep 17, 2015

Exception 中 $code 为:
'-1' => '系统繁忙,此时请开发者稍候再试',
在构造方法中public function __construct($message, $code = -1) $code有默认值
而各类中抛出异常并为指定$code ,导致不论什么异常都会显示为“系统繁忙,此时请开发者稍候再试“
注释掉上面的 -1那一行就解决了。。

@jaring
Copy link

jaring commented Sep 17, 2015

建议安大神修改。。Exception类

@overtrue
Copy link
Collaborator

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

3 participants