mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
注释规范
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
namespace think\controller;
|
||||
|
||||
use think\App;
|
||||
|
||||
use think\Loader;
|
||||
/**
|
||||
* ThinkPHP Hprose控制器类
|
||||
*/
|
||||
@@ -37,14 +37,14 @@ abstract class Hprose
|
||||
}
|
||||
|
||||
//导入类库
|
||||
\think\Loader::import('vendor.Hprose.HproseHttpServer');
|
||||
Loader::import('vendor.Hprose.HproseHttpServer');
|
||||
//实例化HproseHttpServer
|
||||
$server = new \HproseHttpServer();
|
||||
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->addMethods($methods, $this);
|
||||
if (App::$debug || $this->debug) {
|
||||
|
||||
Reference in New Issue
Block a user