文档工具更改为私有地址
This commit is contained in:
parent
8477c76407
commit
dd5656e363
|
@ -15,5 +15,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
},
|
||||||
|
"api-doc-php": {
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "git@git.int.haowumc.com:composer/php-rpc-doc.git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,24 +84,24 @@ class JsonRpcServer extends JsonRpcBase
|
||||||
* @param string $method 参数名称
|
* @param string $method 参数名称
|
||||||
* @return array 返回结果
|
* @return array 返回结果
|
||||||
*/
|
*/
|
||||||
protected function parseMethod($method)
|
// protected function parseMethod($method)
|
||||||
{
|
// {
|
||||||
$method = explode('.', $method);
|
// $method = explode('.', $method);
|
||||||
|
//
|
||||||
if (count($method) < 2) {
|
// if (count($method) < 2) {
|
||||||
return ['', ''];
|
// return ['', ''];
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
$function = array_pop($method);
|
// $function = array_pop($method);
|
||||||
$class = 'Rpc' . ucwords(array_pop($method));
|
// $class = 'Rpc' . ucwords(array_pop($method));
|
||||||
|
//
|
||||||
foreach ($method as $one) {
|
// foreach ($method as $one) {
|
||||||
$class = ucwords($one) . '\\' . $class;
|
// $class = ucwords($one) . '\\' . $class;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
$class = "App\Rpc\\$class";
|
// $class = "App\Rpc\\$class";
|
||||||
return [$class, $function];
|
// return [$class, $function];
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
protected function isEnoughParameter($class, $method, $parameters)
|
protected function isEnoughParameter($class, $method, $parameters)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user