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

\Motan\Client的_call方法BUG #32

Open
byjamesCN opened this issue Jun 6, 2019 · 0 comments
Open

\Motan\Client的_call方法BUG #32

byjamesCN opened this issue Jun 6, 2019 · 0 comments

Comments

@byjamesCN
Copy link

$request_id = $request_args = $request_header = NULL;
isset($arguments[0]) && !empty($arguments[0]) && $request_args = $arguments[0];
$request = new \Motan\Request($this->_url_obj->getService(),
$name, ...[$request_args]);
isset($arguments[1]) && !empty($arguments[1]) && $request->addHeaders($arguments[1]);
isset($arguments[2]) && !empty($arguments[2]) && $request->setRequestId($arguments[2]);
$request->setGroup($this->_url_obj->getGroup());
$http_params = $this->_url_obj->getParams();

这上面的写法决定了通过_call调用某个远程方法时,只能支持一个参数吧?
...[$request_args],这个地方是否还要判断下?

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

1 participant