thinkphp icon indicating copy to clipboard operation
thinkphp copied to clipboard

使用 phrose bug

Open okeyt opened this issue 8 years ago • 0 comments

新建一个controller if ($this->allowMethodList) { $methods = $this->allowMethodList; } else { $methods = get_class_methods($this); $methods = array_diff($methods, array('__construct', '__call', '_initialize')); } $server->addMethods($methods, $this); //这里的 方法就不连贯了

for ($i = 0; $i < $count; $i++) { $method = $methods[$i]; //这里 和上面 if (is_string($belongto)) { $function = array($belongto, $method); } else { $function = array(&$belongto, $method); } if ($aliases_is_null) { $this->addFunction($function, $method, $resultMode, $simple); } else { $this->addFunction($function, $aliases[$i], $resultMode, $simple); } }

okeyt avatar Jun 30 '17 07:06 okeyt