diff --git a/app/admin/model/Admin.php b/app/admin/model/Admin.php index ca4f18c0..2d89a907 100644 --- a/app/admin/model/Admin.php +++ b/app/admin/model/Admin.php @@ -84,11 +84,11 @@ class Admin extends Base } - // // 最后登录时间取器 - // public function getLasttimeAttr($value) - // { - // return date('Y年m月d日 H:i:s',$value); - // } + // 最后登录时间取器 + public function getLasttimeAttr($value) + { + return date('Y年m月d日 H:i:s',$value); + } // 本次登录时间取器 public function getThistimeAttr($value) diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 9c34c48d..df721299 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -158,5 +158,4 @@ class Index extends BaseController return $view->fetch('welcome'); } - } diff --git a/app/index/route/index.php b/app/index/route/index.php index c120a52e..a39ace6f 100644 --- a/app/index/route/index.php +++ b/app/index/route/index.php @@ -15,3 +15,4 @@ use think\facade\Route; Route::rule('/','index/index','get'); //主页 Route::rule('welcome','index/welcome','get'); //欢迎页 + diff --git a/app/index/view/index/myerror.html b/app/index/view/index/myerror.html new file mode 100644 index 00000000..9f327daf --- /dev/null +++ b/app/index/view/index/myerror.html @@ -0,0 +1,26 @@ + + +
+ +页面或者数据被 纸飞机 运到火星了,啥都看不到了…
+