Open ChangeChe opened 4 years ago
Describe the bug Swoft\Rpc\Server\Request::getParamsMap方法获取的值都是同一个,都是index=0的值
php code
/** * @return array * @throws ReflectionException */ public function getParamsMap(): array { $rc = BeanFactory::getReflection($this->interface); $rxParams = $rc['methods'][$this->method]['params']; $index = 0; $paramsMap = []; foreach ($rxParams as $methodParams) { if (!isset($this->params[$index])) { break; } [$name] = $methodParams; $paramsMap[$name] = $this->params[$index]; } return $paramsMap; }
从以上代码可以看出, $index一直都是0
@stelin
Describe the bug Swoft\Rpc\Server\Request::getParamsMap方法获取的值都是同一个,都是index=0的值
php code
从以上代码可以看出, $index一直都是0