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

服务有多个返回值时 #47

Closed
aaa3096 opened this issue Jun 23, 2017 · 1 comment
Closed

服务有多个返回值时 #47

aaa3096 opened this issue Jun 23, 2017 · 1 comment

Comments

@aaa3096
Copy link

aaa3096 commented Jun 23, 2017

当服务有多个返回值时,同步调用时,php怎么接收多个返回值?

@andot
Copy link
Member

andot commented Jun 25, 2017

php 得到的是一个数组。数组的第一个元素是第一个返回值,第二个元素是第二个返回值。如果你的多值返回(go语言的)中最后一个参数是error类型,这个结果不会已返回结果数组中的元素表示,而是当error为null时,它被完全忽略,当error不为空时,客户端得到异常。

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