更新内容
This commit is contained in:
@@ -16,6 +16,7 @@ use app\BaseController;
|
||||
class Admin extends BaseController {
|
||||
|
||||
protected $middleware = [
|
||||
'\app\middleware\Validate',
|
||||
'\app\middleware\AdminAuth' => ['except' => ['login']],
|
||||
'\app\middleware\Admin'
|
||||
];
|
||||
|
||||
@@ -7,11 +7,51 @@ class Index extends BaseController {
|
||||
|
||||
protected $middleware = ['\app\middleware\Front'];
|
||||
|
||||
/**
|
||||
* @title 网站首页
|
||||
*/
|
||||
public function index() {
|
||||
return '<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:) </h1><p> ThinkPHP V6<br/><span style="font-size:30px">13载初心不改 - 你值得信赖的PHP框架</span></p></div><script type="text/javascript" src="https://tajs.qq.com/stats?sId=64890268" charset="UTF-8"></script><script type="text/javascript" src="https://e.topthink.com/Public/static/client.js"></script><think id="eab4b9f840753f8e7"></think>';
|
||||
|
||||
}
|
||||
|
||||
public function miss($name = 'ThinkPHP6') {
|
||||
return 'hello,' . $name;
|
||||
/**
|
||||
* @title 搜索页
|
||||
*/
|
||||
public function search() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 专题页
|
||||
*/
|
||||
public function topic() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 模型数据列表
|
||||
*/
|
||||
public function lists() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 栏目数据列表
|
||||
*/
|
||||
public function category() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 模型数据详情
|
||||
*/
|
||||
public function detail() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 未知页面调整到此方法
|
||||
*/
|
||||
public function miss() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,15 @@ class Index extends Admin{
|
||||
public function index(){
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 更新缓存
|
||||
*/
|
||||
public function clear(){
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 后台登录
|
||||
*/
|
||||
public function login(){
|
||||
if ($this->request->isAjax()) {
|
||||
Session::set('user', ['uid'=>1,'username'=>'admin']);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace app\controller\admin;
|
||||
|
||||
use app\controller\Admin;
|
||||
|
||||
class Member extends Admin{
|
||||
class User extends Admin{
|
||||
|
||||
/**
|
||||
* @title 系统首页
|
||||
8
app/controller/api/Index.php
Normal file
8
app/controller/api/Index.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
namespace app\controller\api;
|
||||
|
||||
use app\BaseController;
|
||||
|
||||
class Index extends BaseController {
|
||||
|
||||
}
|
||||
8
app/controller/user/Index.php
Normal file
8
app/controller/user/Index.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
namespace app\controller\user;
|
||||
|
||||
use app\BaseController;
|
||||
|
||||
class Index extends BaseController {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user