thinkphp
thinkphp copied to clipboard
使用 phrose bug
新建一个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); } }