mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 06:12:48 +08:00
注释规范
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
namespace think\controller;
|
||||
|
||||
use think\App;
|
||||
use think\Loader;
|
||||
/**
|
||||
* ThinkPHP RPC控制器类
|
||||
*/
|
||||
@@ -33,14 +34,14 @@ abstract class Rpc
|
||||
}
|
||||
|
||||
//导入类库
|
||||
\think\Loader::import('vendor.phprpc.phprpc_server');
|
||||
Loader::import('vendor.phprpc.phprpc_server');
|
||||
//实例化phprpc
|
||||
$server = new \PHPRPC_Server();
|
||||
if ($this->allowMethodList) {
|
||||
$methods = $this->allowMethodList;
|
||||
} else {
|
||||
$methods = get_class_methods($this);
|
||||
$methods = array_diff($methods, array('__construct', '__call', '_initialize'));
|
||||
$methods = array_diff($methods, ['__construct', '__call', '_initialize']);
|
||||
}
|
||||
$server->add($methods, $this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user