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

typo README.md / update NoGatewayAvailableException.php #349

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

Tomorrowxxy
Copy link
Contributor

1、修正readme中创蓝网关类名示例
2、增加获取所有网关异常 message

/**
* @return array
*/
public function getAllResults()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个方法的作用是啥?如果仅仅是列出每个网关的报错,那么只有 message 恐怕不太具有多大意义,我的建议是这块交由应用自身去处理,想要记日志也好,报错信息也好,由应用自身决定展示成什么样。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

作用是在当前配置的所有网关都失败的情况下,获取所有网关失败的原因。
getResults 方法也可以获取所有的网关错误,但是不同的网关错误信息字段名是不一致的,交由应用自身去处理的话逻辑重复太多了。

不过我觉的你说的也有道理...

@overtrue overtrue merged commit c61a6dc into overtrue:master Jan 23, 2024
1 of 6 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants