diff --git a/app/common/tools/StoreValueTools.php b/app/common/tools/StoreValueTools.php new file mode 100644 index 0000000..6560b72 --- /dev/null +++ b/app/common/tools/StoreValueTools.php @@ -0,0 +1,9 @@ +app = $app; + $this->app = $app; $this->request = $this->app->request; // 控制器初始化 @@ -55,13 +55,12 @@ abstract class BaseControllerBase // 初始化 protected function initialize() { - Log::debug('request url :' . $this->request->url()); + StoreValueTools::set('request_uid', uniqid()); } /** - * 验证数据 - * @access protected + * 验证数据. * @param array $data 数据 * @param string|array $validate 验证器名或者验证规则数组 * @param array $message 提示信息 @@ -74,7 +73,7 @@ abstract class BaseControllerBase if (is_array($validate)) { $v = new Validate(); $v->rule($validate); - } else if ($validate instanceof Validate) { + } elseif ($validate instanceof Validate) { $v = $validate; } else { if (strpos($validate, '.')) { @@ -82,7 +81,7 @@ abstract class BaseControllerBase list($validate, $scene) = explode('.', $validate); } $class = false !== strpos($validate, '\\') ? $validate : $this->app->parseClass('validate', $validate); - $v = new $class(); + $v = new $class(); if (!empty($scene)) { $v->scene($scene); } diff --git a/extend/base/admin/view/index/welcome.html b/extend/base/admin/view/index/welcome.html index 325992e..8e7bd5b 100644 --- a/extend/base/admin/view/index/welcome.html +++ b/extend/base/admin/view/index/welcome.html @@ -125,7 +125,8 @@
本模板基于layui{:\\app\\common\\command\\admin\\Version::LAYUI_VERSION}以及font-awesome-4.7.0进行实现。layui开发文档地址:layui文档
-技术交流QQ群:
(加群请备注来源:如gitee、github、官网等)
本模板基于layui{:\\app\\common\\command\\admin\\Version::LAYUI_VERSION}以及font-awesome-4.7.0进行实现。layui开发文档地址:layui文档
+技术交流QQ群:
(加群请备注来源:如gitee、github、官网等)
喜欢此后台模板的可以给我的GitHub和Gitee加个Star支持一下
备注:此后台框架永久开源,但请勿进行出售或者上传到任何素材网站,否则将追究相应的责任。