优化首页/文章/搜索模型,版本控制写入配置等
This commit is contained in:
parent
8ab12d89fa
commit
2e21cf8dd3
@ -180,8 +180,8 @@
|
|||||||
<td>当前版本</td>
|
<td>当前版本</td>
|
||||||
<td>
|
<td>
|
||||||
<script type="text/html" template>
|
<script type="text/html" template>
|
||||||
TaoLer_{$sys.sys_version_num}
|
TaoLer_{:config('taoler.version')}
|
||||||
<a href="/" target="_blank" style="padding-left: 15px;">更新日志</a>
|
<a href="http://www.aieok.com/doc/timeline.html" target="_blank" style="padding-left: 15px;">更新日志</a>
|
||||||
</script>
|
</script>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
<?php
|
|
||||||
declare (strict_types = 1);
|
|
||||||
|
|
||||||
namespace app\common\lib;
|
|
||||||
|
|
||||||
use think\facade\Lang;
|
|
||||||
|
|
||||||
class Msg
|
|
||||||
{
|
|
||||||
static protected $res = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置状态吗
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public static function setCodes()
|
|
||||||
{
|
|
||||||
return $res = [
|
|
||||||
'success' => 0,
|
|
||||||
'error' => 1,
|
|
||||||
'add_success' => Lang::get('add success'),
|
|
||||||
'add_error' => Lang::get('add error'),
|
|
||||||
'edit_success' => Lang::get('edit success'),
|
|
||||||
'edit_error' => Lang::get('edit error'),
|
|
||||||
'delete_success' => Lang::get('delete success'),
|
|
||||||
'delete_error' => Lang::get('delete error'),
|
|
||||||
'upload_success' => Lang::get('upload success'),
|
|
||||||
'upload_error' => Lang::get('upload error'),
|
|
||||||
'upgrade_success' => Lang::get('upgrade success'),
|
|
||||||
'upgrade_error' => Lang::get('upgrade error'),
|
|
||||||
'illegal_request' => Lang::get('illegal request'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取返回码
|
|
||||||
* @param string $strCode
|
|
||||||
* @return mixed string
|
|
||||||
*/
|
|
||||||
public static function getCode(string $strCode){
|
|
||||||
foreach(self::setCodes() as $k => $v){
|
|
||||||
if($k == $strCode){
|
|
||||||
return $v;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取返回信息 如果不存在返回自身
|
|
||||||
* @param string $strMsg
|
|
||||||
* @return mixed string
|
|
||||||
*/
|
|
||||||
public static function getMsg(string $strMsg){
|
|
||||||
foreach(self::setCodes() as $k => $v){
|
|
||||||
if($k == $strMsg){
|
|
||||||
return $v;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 成功提示
|
|
||||||
* @param string $strMsg
|
|
||||||
* @param string|null $url
|
|
||||||
* @param string $data
|
|
||||||
* @return string|\think\response\Json
|
|
||||||
*/
|
|
||||||
public static function success(string $strMsg,string $url = null, $data = ''){
|
|
||||||
if(empty($strMsg)){
|
|
||||||
return '不能返回为空消息';
|
|
||||||
}
|
|
||||||
$result = [
|
|
||||||
'code' => self::getCode('success'),
|
|
||||||
'msg' => self::getMsg($strMsg),
|
|
||||||
'url' => $url,
|
|
||||||
'data' => $data
|
|
||||||
];
|
|
||||||
return json($result);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 失败提示
|
|
||||||
* @param string $strMsg 消息提示码
|
|
||||||
* @param string|null $url 跳转地址
|
|
||||||
* @param string $data 返回数据
|
|
||||||
* @return string|\think\response\Json
|
|
||||||
*/
|
|
||||||
public static function error(string $strMsg,string $url = null, $data = ''){
|
|
||||||
if(empty($strMsg)){
|
|
||||||
return '不能返回为空消息';
|
|
||||||
}
|
|
||||||
$result = [
|
|
||||||
'code' => self::getCode('error'),
|
|
||||||
'msg' => self::getMsg($strMsg),
|
|
||||||
'url' => $url,
|
|
||||||
'data' => $data
|
|
||||||
];
|
|
||||||
|
|
||||||
return json($result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
declare (strict_types = 1);
|
||||||
|
|
||||||
namespace app\common\model;
|
namespace app\common\model;
|
||||||
|
|
||||||
use think\Model;
|
use think\Model;
|
||||||
@ -41,8 +43,12 @@ class Article extends Model
|
|||||||
return $this->belongsTo('User','user_id','id');
|
return $this->belongsTo('User','user_id','id');
|
||||||
}
|
}
|
||||||
|
|
||||||
//文章添加
|
/**
|
||||||
public function add($data)
|
* 添加
|
||||||
|
* @param array $data
|
||||||
|
* @return int|string
|
||||||
|
*/
|
||||||
|
public function add(array $data)
|
||||||
{
|
{
|
||||||
$result = $this->save($data);
|
$result = $this->save($data);
|
||||||
|
|
||||||
@ -53,8 +59,15 @@ class Article extends Model
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//文章编辑
|
/**
|
||||||
public function edit($data)
|
* 编辑
|
||||||
|
* @param array $data
|
||||||
|
* @return int|string
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
*/
|
||||||
|
public function edit(array $data)
|
||||||
{
|
{
|
||||||
$article = $this->find($data['id']);
|
$article = $this->find($data['id']);
|
||||||
$result = $article->save($data);
|
$result = $article->save($data);
|
||||||
@ -65,21 +78,15 @@ class Article extends Model
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//文章
|
|
||||||
public function detail()
|
|
||||||
{
|
|
||||||
$arts = Article::all();
|
|
||||||
return $arts;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取置顶文章
|
* 获取置顶文章
|
||||||
|
* @param int $num 列表数量
|
||||||
* @return mixed|\think\Collection
|
* @return mixed|\think\Collection
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
public function getArtTop($pnum)
|
public function getArtTop(int $num)
|
||||||
{
|
{
|
||||||
$artTop = Cache::get('arttop');
|
$artTop = Cache::get('arttop');
|
||||||
if (!$artTop) {
|
if (!$artTop) {
|
||||||
@ -90,20 +97,21 @@ class Article extends Model
|
|||||||
'user' => function ($query) {
|
'user' => function ($query) {
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
}
|
}
|
||||||
])->withCount(['comments'])->order('create_time', 'desc')->limit($pnum)->select();
|
])->withCount(['comments'])->order('create_time', 'desc')->limit($num)->select();
|
||||||
Cache::tag('tagArtDetail')->set('arttop', $artTop, 60);
|
Cache::tag('tagArtDetail')->set('arttop', $artTop, 60);
|
||||||
}
|
}
|
||||||
return $artTop;
|
return $artTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取首页文章列表,显示20个。
|
* 获取首页文章列表
|
||||||
|
* @param int $num 列表显示数量
|
||||||
* @return mixed|\think\Collection
|
* @return mixed|\think\Collection
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
public function getArtList($pnum)
|
public function getArtList(int $num)
|
||||||
{
|
{
|
||||||
$artList = Cache::get('artlist');
|
$artList = Cache::get('artlist');
|
||||||
if(!$artList){
|
if(!$artList){
|
||||||
@ -115,27 +123,41 @@ class Article extends Model
|
|||||||
'user' => function($query){
|
'user' => function($query){
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
} ])
|
} ])
|
||||||
->withCount(['comments'])->where(['status'=>1,'delete_time'=>0])->order('create_time','desc')->limit($pnum)->select();
|
->withCount(['comments'])->where(['status'=>1,'delete_time'=>0])->order('create_time','desc')->limit($num)->select();
|
||||||
Cache::tag('tagArt')->set('artlist',$artList,60);
|
Cache::tag('tagArt')->set('artlist',$artList,60);
|
||||||
}
|
}
|
||||||
return $artList;
|
return $artList;
|
||||||
}
|
}
|
||||||
|
|
||||||
//热议文章
|
/**
|
||||||
public function getArtHot($pnum)
|
* 热点文章
|
||||||
|
* @param int $num 热点列表数量
|
||||||
|
* @return \think\Collection
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
*/
|
||||||
|
public function getArtHot(int $num)
|
||||||
{
|
{
|
||||||
$artHot = $this::field('id,title')
|
$artHot = $this::field('id,title')
|
||||||
->withCount('comments')
|
->withCount('comments')
|
||||||
->where(['status'=>1,'delete_time'=>0])
|
->where(['status'=>1,'delete_time'=>0])
|
||||||
->whereTime('create_time', 'year')
|
->whereTime('create_time', 'year')
|
||||||
->order('comments_count','desc')
|
->order('comments_count','desc')
|
||||||
->limit($pnum)
|
->limit($num)
|
||||||
->withCache(60)->select();
|
->withCache(60)->select();
|
||||||
return $artHot;
|
return $artHot;
|
||||||
}
|
}
|
||||||
|
|
||||||
//详情
|
/**
|
||||||
public function getArtDetail($id)
|
* 获取详情
|
||||||
|
* @param int $id 文章id
|
||||||
|
* @return array|mixed|Model|null
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
*/
|
||||||
|
public function getArtDetail(int $id)
|
||||||
{
|
{
|
||||||
$article = Cache::get('article_'.$id);
|
$article = Cache::get('article_'.$id);
|
||||||
if(!$article){
|
if(!$article){
|
||||||
@ -152,4 +174,102 @@ class Article extends Model
|
|||||||
}
|
}
|
||||||
return $article;
|
return $article;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取分类列表
|
||||||
|
* @param string $ename 分类英文名
|
||||||
|
* @param string $type all\top\hot\jie 分类类型
|
||||||
|
* @param int $page 页面
|
||||||
|
* @param string $url
|
||||||
|
* @param string $suffix
|
||||||
|
* @return mixed|\think\Paginator
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
*/
|
||||||
|
public function getCateList(string $ename, string $type, int $page, string $url, string $suffix)
|
||||||
|
{
|
||||||
|
$where = [];
|
||||||
|
$cateId = Cate::where('ename',$ename)->value('id');
|
||||||
|
if($cateId){
|
||||||
|
$where = ['cate_id' => $cateId];
|
||||||
|
} else {
|
||||||
|
if($ename != 'all'){
|
||||||
|
// 抛出 HTTP 异常
|
||||||
|
throw new \think\exception\HttpException(404, '异常消息');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$artList = Cache::get('arts'.$ename.$type.$page);
|
||||||
|
if(!$artList){
|
||||||
|
switch ($type) {
|
||||||
|
//查询文章,15个分1页
|
||||||
|
case 'jie':
|
||||||
|
$artList = $this::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
||||||
|
'cate' => function($query){
|
||||||
|
$query->where('delete_time',0)->field('id,catename,ename');
|
||||||
|
},
|
||||||
|
'user' => function($query){
|
||||||
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
|
}
|
||||||
|
])->withCount(['comments'])->where(['status'=>1,'jie'=>1])->where($where)->order(['is_top'=>'desc','create_time'=>'desc'])
|
||||||
|
->paginate([
|
||||||
|
'list_rows' => 15,
|
||||||
|
'page' => $page,
|
||||||
|
'path' =>$url.'[PAGE]'.$suffix
|
||||||
|
]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'hot':
|
||||||
|
$artList = $this::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
||||||
|
'cate' => function($query){
|
||||||
|
$query->where('delete_time',0)->field('id,catename,ename');
|
||||||
|
},
|
||||||
|
'user' => function($query){
|
||||||
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
|
}
|
||||||
|
])->withCount(['comments'])->where('status',1)->where($where)->where('is_hot',1)->order(['is_top'=>'desc','create_time'=>'desc'])
|
||||||
|
->paginate([
|
||||||
|
'list_rows' => 15,
|
||||||
|
'page' => $page,
|
||||||
|
'path' =>$url.'[PAGE]'.$suffix
|
||||||
|
]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'top':
|
||||||
|
$artList = $this::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
||||||
|
'cate' => function($query){
|
||||||
|
$query->where('delete_time',0)->field('id,catename,ename');
|
||||||
|
},
|
||||||
|
'user' => function($query){
|
||||||
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
|
}
|
||||||
|
])->withCount(['comments'])->where('status',1)->where($where)->where('is_top',1)->order(['is_top'=>'desc','create_time'=>'desc'])
|
||||||
|
->paginate([
|
||||||
|
'list_rows' => 15,
|
||||||
|
'page' => $page,
|
||||||
|
'path' =>$url.'[PAGE]'.$suffix
|
||||||
|
]);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
$artList = $this::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
||||||
|
'cate' => function($query){
|
||||||
|
$query->where('delete_time',0)->field('id,catename,ename');
|
||||||
|
},
|
||||||
|
'user' => function($query){
|
||||||
|
$query->field('id,name,nickname,user_img,area_id,vip');
|
||||||
|
}
|
||||||
|
])->withCount(['comments'])->where('status',1)->where($where)->order(['is_top'=>'desc','create_time'=>'desc'])
|
||||||
|
->paginate([
|
||||||
|
'list_rows' => 15,
|
||||||
|
'page' => $page,
|
||||||
|
'path' =>$url.'[PAGE]'.$suffix
|
||||||
|
]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Cache::tag('tagArtDetail')->set('arts'.$ename.$type.$page,$artList,600);
|
||||||
|
}
|
||||||
|
return $artList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -3,6 +3,7 @@ namespace app\common\model;
|
|||||||
|
|
||||||
use think\Model;
|
use think\Model;
|
||||||
use think\model\concern\SoftDelete;
|
use think\model\concern\SoftDelete;
|
||||||
|
use think\facade\Cache;
|
||||||
|
|
||||||
class Comment extends Model
|
class Comment extends Model
|
||||||
{
|
{
|
||||||
@ -34,4 +35,33 @@ class Comment extends Model
|
|||||||
return $comments;
|
return $comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//回帖榜
|
||||||
|
public function reply($num)
|
||||||
|
{
|
||||||
|
$res = Cache::get('reply');
|
||||||
|
if(!$res){
|
||||||
|
$user = User::withCount('comments')->order(['comments_count'=>'desc','last_login_time'=>'desc'])->limit($num)->select();
|
||||||
|
if($user)
|
||||||
|
{
|
||||||
|
$res['status'] = 0;
|
||||||
|
$res['data'] = array();
|
||||||
|
foreach ($user as $key=>$v) {
|
||||||
|
|
||||||
|
$u['uid'] = (string) url('user/home',['id'=>$v['id']]);
|
||||||
|
$u['count(*)'] = $v['comments_count'];
|
||||||
|
if($v['nickname'])
|
||||||
|
{
|
||||||
|
$u['user'] = ['username'=>$v['nickname'],'avatar'=>$v['user_img']];
|
||||||
|
} else {
|
||||||
|
$u['user'] = ['username'=>$v['name'],'avatar'=>$v['user_img']];
|
||||||
|
}
|
||||||
|
$res['data'][] = $u;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Cache::set('reply',$res,3600);
|
||||||
|
}
|
||||||
|
|
||||||
|
return json($res);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -11,7 +11,6 @@ use app\common\model\Comment;
|
|||||||
use app\common\model\Article as ArticleModel;
|
use app\common\model\Article as ArticleModel;
|
||||||
use think\exception\ValidateException;
|
use think\exception\ValidateException;
|
||||||
use taoler\com\Message;
|
use taoler\com\Message;
|
||||||
use think\facade\Lang;
|
|
||||||
use app\common\lib\Msgres;
|
use app\common\lib\Msgres;
|
||||||
|
|
||||||
class Article extends BaseController
|
class Article extends BaseController
|
||||||
@ -23,10 +22,10 @@ class Article extends BaseController
|
|||||||
//文章分类
|
//文章分类
|
||||||
public function cate(){
|
public function cate(){
|
||||||
|
|
||||||
$where =[];
|
|
||||||
//获取分类ID
|
//获取分类ID
|
||||||
$ename = Request::param('ename');
|
$ename = Request::param('ename');
|
||||||
$type = Request::param('type');
|
$type = Request::param('type') ?? 'all';
|
||||||
|
|
||||||
//分页伪静态
|
//分页伪静态
|
||||||
$str = Request::baseUrl(); //不带参数在url
|
$str = Request::baseUrl(); //不带参数在url
|
||||||
$patterns = "/\d+/"; //数字正则
|
$patterns = "/\d+/"; //数字正则
|
||||||
@ -52,91 +51,13 @@ class Article extends BaseController
|
|||||||
$url = $str.'/';
|
$url = $str.'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//分类列表
|
||||||
$cateId = Db::name('cate')->where('ename',$ename)->value('id');
|
$article = new ArticleModel();
|
||||||
if($cateId){
|
$artList = $article->getCateList($ename,$type,$page,$url,$suffix);
|
||||||
$where = ['cate_id' => $cateId];
|
|
||||||
} else {
|
|
||||||
if($ename != 'all'){
|
|
||||||
// 抛出 HTTP 异常
|
|
||||||
throw new \think\exception\HttpException(404, '异常消息');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$artList = Cache::get('arts'.$ename.$type.$page);
|
|
||||||
if(!$artList){
|
|
||||||
switch ($type) {
|
|
||||||
//查询文章,15个分1页
|
|
||||||
case 'jie':
|
|
||||||
$artList = ArticleModel::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
|
||||||
'cate' => function($query){
|
|
||||||
$query->where('delete_time',0)->field('id,catename,ename');
|
|
||||||
},
|
|
||||||
'user' => function($query){
|
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
|
||||||
}
|
|
||||||
])->withCount(['comments'])->where(['status'=>1,'jie'=>1])->where($where)->order(['is_top'=>'desc','create_time'=>'desc'])
|
|
||||||
->paginate([
|
|
||||||
'list_rows' => 15,
|
|
||||||
'page' => $page,
|
|
||||||
'path' =>$url.'[PAGE]'.$suffix
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'hot':
|
|
||||||
$artList = ArticleModel::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
|
||||||
'cate' => function($query){
|
|
||||||
$query->where('delete_time',0)->field('id,catename,ename');
|
|
||||||
},
|
|
||||||
'user' => function($query){
|
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
|
||||||
}
|
|
||||||
])->withCount(['comments'])->where('status',1)->where($where)->where('is_hot',1)->order(['is_top'=>'desc','create_time'=>'desc'])
|
|
||||||
->paginate([
|
|
||||||
'list_rows' => 15,
|
|
||||||
'page' => $page,
|
|
||||||
'path' =>$url.'[PAGE]'.$suffix
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'top':
|
|
||||||
$artList = ArticleModel::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
|
||||||
'cate' => function($query){
|
|
||||||
$query->where('delete_time',0)->field('id,catename,ename');
|
|
||||||
},
|
|
||||||
'user' => function($query){
|
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
|
||||||
}
|
|
||||||
])->withCount(['comments'])->where('status',1)->where($where)->where('is_top',1)->order(['is_top'=>'desc','create_time'=>'desc'])
|
|
||||||
->paginate([
|
|
||||||
'list_rows' => 15,
|
|
||||||
'page' => $page,
|
|
||||||
'path' =>$url.'[PAGE]'.$suffix
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
$artList = ArticleModel::field('id,title,title_color,cate_id,user_id,create_time,is_top,is_hot,jie,pv')->with([
|
|
||||||
'cate' => function($query){
|
|
||||||
$query->where('delete_time',0)->field('id,catename,ename');
|
|
||||||
},
|
|
||||||
'user' => function($query){
|
|
||||||
$query->field('id,name,nickname,user_img,area_id,vip');
|
|
||||||
}
|
|
||||||
])->withCount(['comments'])->where('status',1)->where($where)->order(['is_top'=>'desc','create_time'=>'desc'])
|
|
||||||
->paginate([
|
|
||||||
'list_rows' => 15,
|
|
||||||
'page' => $page,
|
|
||||||
'path' =>$url.'[PAGE]'.$suffix
|
|
||||||
]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
Cache::tag('tagArtDetail')->set('arts'.$ename.$type.$page,$artList,600);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 热议文章
|
// 热议文章
|
||||||
$artHot = ArticleModel::field('id,title')->withCount('comments')->where(['status'=>1,'delete_time'=>0])->whereTime('create_time', 'year')->order('comments_count','desc')->limit(10)->select();
|
$artHot = $article->getArtHot(10);
|
||||||
//分类右栏广告
|
//分类右栏广告
|
||||||
$ad_cate = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',5)->whereTime('slid_over','>=',time())->select();
|
$ad_cate = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',5)->whereTime('slid_over','>=',time())->select();
|
||||||
//通用右栏
|
//通用右栏
|
||||||
@ -305,11 +226,11 @@ class Article extends BaseController
|
|||||||
$article = ArticleModel::find(input('id'));
|
$article = ArticleModel::find(input('id'));
|
||||||
$result = $article->together(['comments'])->delete();
|
$result = $article->together(['comments'])->delete();
|
||||||
if($result) {
|
if($result) {
|
||||||
$res = ['code'=>0,'msg'=>'删除文章成功','url'=>'/index/user/post'];
|
$res = Msgres::success('delete_success');
|
||||||
} else {
|
} else {
|
||||||
$res = ['code'=>-1,'msg'=>'删除文章失败'];
|
$res = Msgres::error('delete_error');
|
||||||
}
|
}
|
||||||
return json($res);
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
//文本编辑器图片上传
|
//文本编辑器图片上传
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
namespace app\index\controller;
|
namespace app\index\controller;
|
||||||
|
|
||||||
use app\common\controller\BaseController;
|
use app\common\controller\BaseController;
|
||||||
|
use think\App;
|
||||||
use think\facade\View;
|
use think\facade\View;
|
||||||
use think\facade\Request;
|
use think\facade\Request;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
@ -12,6 +13,13 @@ use app\common\lib\Msgres;
|
|||||||
|
|
||||||
class Index extends BaseController
|
class Index extends BaseController
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 首页
|
||||||
|
* @return string
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\DbException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$types = input('type');
|
$types = input('type');
|
||||||
@ -66,63 +74,31 @@ class Index extends BaseController
|
|||||||
//回帖榜
|
//回帖榜
|
||||||
public function reply()
|
public function reply()
|
||||||
{
|
{
|
||||||
$res = Cache::get('reply');
|
$comment = new \app\common\model\Comment();
|
||||||
if(!$res){
|
return $comment->reply(20);
|
||||||
$user = User::withCount('comments')->order(['comments_count'=>'desc','last_login_time'=>'desc'])->limit(20)->select();
|
|
||||||
if($user)
|
|
||||||
{
|
|
||||||
$res['status'] = 0;
|
|
||||||
$res['data'] = array();
|
|
||||||
foreach ($user as $key=>$v) {
|
|
||||||
|
|
||||||
$u['uid'] = (string) url('user/home',['id'=>$v['id']]);
|
|
||||||
$u['count(*)'] = $v['comments_count'];
|
|
||||||
if($v['nickname'])
|
|
||||||
{
|
|
||||||
$u['user'] = ['username'=>$v['nickname'],'avatar'=>$v['user_img']];
|
|
||||||
} else {
|
|
||||||
$u['user'] = ['username'=>$v['name'],'avatar'=>$v['user_img']];
|
|
||||||
}
|
|
||||||
$res['data'][] = $u;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Cache::set('reply',$res,3600);
|
|
||||||
}
|
|
||||||
return json($res);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//搜索功能
|
//搜索功能
|
||||||
public function search()
|
public function search()
|
||||||
{
|
{
|
||||||
//全局查询条件
|
$ser = Request::only(['keywords']);
|
||||||
$map = []; //所有的查询条件封装到数组中
|
|
||||||
//条件1:
|
|
||||||
$map[] = ['status','=',1]; //这里等号不能省略
|
|
||||||
|
|
||||||
//实现搜索功能
|
$search = new \app\index\controller\Search();
|
||||||
$keywords = Request::only(['keywords']);
|
$artList = $search->getSearch($ser['keywords']);
|
||||||
//var_dump($keywords['keywords']);
|
|
||||||
if(!empty($keywords['keywords'])){
|
|
||||||
//条件2
|
|
||||||
$map[] = ['title','like','%'.$keywords['keywords'].'%'];
|
|
||||||
$artList = Article::where($map)->withCount('comments')->order('create_time','desc')->paginate(10);
|
|
||||||
$counts = $artList->count();
|
$counts = $artList->count();
|
||||||
$searchs = [
|
$searchs = [
|
||||||
'artList' => $artList,
|
'artList' => $artList,
|
||||||
'keywords' => $keywords['keywords'],
|
'keywords' => $ser['keywords'],
|
||||||
'counts' => $counts
|
'counts' => $counts
|
||||||
];
|
];
|
||||||
|
|
||||||
} else {
|
|
||||||
return response('输入非法');
|
|
||||||
}
|
|
||||||
View::assign($searchs);
|
|
||||||
//友情链接
|
//友情链接
|
||||||
$friend_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>6])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
$friend_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>6])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
||||||
|
|
||||||
// 查询热议
|
// 查询热议
|
||||||
$artHot = Article::withCount('comments')->field('title,comments_count')->where('status',1)->whereTime('create_time', 'year')->order('comments_count','desc')->limit(10)->select();
|
$article = new Article();
|
||||||
|
$artHot = $article->getArtHot(10);
|
||||||
|
|
||||||
|
View::assign($searchs);
|
||||||
View::assign(['flinks'=>$friend_links,'artHot'=>$artHot]);
|
View::assign(['flinks'=>$friend_links,'artHot'=>$artHot]);
|
||||||
return View::fetch('search');
|
return View::fetch('search');
|
||||||
}
|
}
|
||||||
@ -141,8 +117,7 @@ class Index extends BaseController
|
|||||||
$language = new \app\common\controller\Language;
|
$language = new \app\common\controller\Language;
|
||||||
$lang = $language->select(input('language'));
|
$lang = $language->select(input('language'));
|
||||||
if($lang){
|
if($lang){
|
||||||
return json(['code'=>0,'msg'=>'']);
|
return Msgres::success();
|
||||||
//return Msg::success('')
|
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
return Msgres::error('illegal_request');
|
return Msgres::error('illegal_request');
|
||||||
|
23
app/index/controller/Search.php
Normal file
23
app/index/controller/Search.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\index\controller;
|
||||||
|
|
||||||
|
use app\common\model\Article;
|
||||||
|
|
||||||
|
class Search
|
||||||
|
{
|
||||||
|
public function getSearch(string $keywords)
|
||||||
|
{
|
||||||
|
//全局查询条件
|
||||||
|
$map = []; //所有的查询条件封装到数组中
|
||||||
|
//条件1:
|
||||||
|
$map[] = ['status','=',1]; //这里等号不能省略
|
||||||
|
|
||||||
|
if(!empty($keywords)){
|
||||||
|
//条件2
|
||||||
|
$map[] = ['title','like','%'.$keywords.'%'];
|
||||||
|
$res = Article::where($map)->withCount('comments')->order('create_time','desc')->paginate(10);
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -42,9 +42,11 @@ function write_config($config)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建数据表
|
* 创建数据表
|
||||||
* @param resource $db 数据库连接资源
|
* @param $db 数据库连接资源
|
||||||
* @param string $prefix 数据表前缀
|
* @param string $prefix 数据表前缀
|
||||||
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function create_tables($db, $prefix = '')
|
function create_tables($db, $prefix = '')
|
||||||
{
|
{
|
||||||
// 导入sql数据表
|
// 导入sql数据表
|
||||||
|
@ -1,6 +1,23 @@
|
|||||||
|
/*
|
||||||
|
Navicat MySQL Data Transfer
|
||||||
|
|
||||||
|
Source Server : lc
|
||||||
|
Source Server Version : 50730
|
||||||
|
Source Host : localhost:3306
|
||||||
|
Source Database : 1127
|
||||||
|
|
||||||
|
Target Server Type : MYSQL
|
||||||
|
Target Server Version : 50730
|
||||||
|
File Encoding : 65001
|
||||||
|
|
||||||
|
Date: 2020-11-27 14:48:02
|
||||||
|
*/
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS=0;
|
SET FOREIGN_KEY_CHECKS=0;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_admin
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_admin`;
|
DROP TABLE IF EXISTS `tao_admin`;
|
||||||
CREATE TABLE `tao_admin` (
|
CREATE TABLE `tao_admin` (
|
||||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
@ -21,10 +38,15 @@ CREATE TABLE `tao_admin` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_admin
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_admin` VALUES ('1', 'admin', '管理员', '95d6f8d0d0c3b45e5dbe4057da1b149e', 'taoler@qq.com', '13812345678', '1', '1', '1', '2019.1.1 新年发布新版本!', '127.0.0.1', '1578986287', '1579053025', '1578986600', '0');
|
INSERT INTO `tao_admin` VALUES ('1', 'admin', '管理员', '95d6f8d0d0c3b45e5dbe4057da1b149e', 'taoler@qq.com', '13812345678', '1', '1', '1', '2019.1.1 新年发布新版本!', '127.0.0.1', '1578986287', '1579053025', '1578986600', '0');
|
||||||
INSERT INTO `tao_admin` VALUES ('2', 'test', '', '3dbfa76bd34a2a0274f5d52f5529ccb3', 'test@qq.com', '13567891236', '0', '0', '2', '', '127.0.0.1', '1578643147', '1555892325', '1576554415', '0');
|
INSERT INTO `tao_admin` VALUES ('2', 'test', '', '3dbfa76bd34a2a0274f5d52f5529ccb3', 'test@qq.com', '13567891236', '0', '0', '2', '', '127.0.0.1', '1578643147', '1555892325', '1576554415', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_article
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_article`;
|
DROP TABLE IF EXISTS `tao_article`;
|
||||||
CREATE TABLE `tao_article` (
|
CREATE TABLE `tao_article` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||||
@ -47,11 +69,19 @@ CREATE TABLE `tao_article` (
|
|||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `user_id` (`user_id`) USING BTREE COMMENT '文章的用户索引',
|
||||||
|
KEY `cate_id` (`cate_id`) USING BTREE COMMENT '文章分类索引'
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_article
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_article` VALUES ('1', 'Fly Template 社区模版', '[quote]\r\n 你们认为layui官方Fly Template 社区模版怎么样?\r\n[/quote]\r\n你喜欢吗?\r\n很多人都说比较喜欢,我个人认为不错的,这个板子非常喜欢,我看到有一些人做了开发,可惜的是都没有很好的维护,有的漏洞比较多,不完善,很美好的一个板子,但没有长久 的更新,非常的可惜。\r\n如果用别人的不好用,那我就做一个出来吧。喜欢的人多关注,适当时候放出来大家一起用。\r\n关于详情页的内容解析\r\n该模板自带一个特定语法的编辑器,当你把内容存储到数据库后,在页面读取后浏览,会发现诸如“表情、代码、图片”等无法解析,这是因为需要对该内容进行一次转义,通常来说这是在服务端完成的,但鉴于简单化,你还可以直接在前端去解析,在模板的detail.html中,我们已经把相关的代码写好了,你只需打开注释即可(在代码的最下面)。当然,如果觉得编辑器无法满足你的需求,你也可以把该编辑器换成别的HTML编辑器或MarkDown编辑器。', '1', '1', '1', '0', '0', '1', '12', '0', null, null, '0', null, null, null, '1546698225', '1577772362', '0');
|
INSERT INTO `tao_article` VALUES ('1', 'Fly Template 社区模版', '[quote]\r\n 你们认为layui官方Fly Template 社区模版怎么样?\r\n[/quote]\r\n你喜欢吗?\r\n很多人都说比较喜欢,我个人认为不错的,这个板子非常喜欢,我看到有一些人做了开发,可惜的是都没有很好的维护,有的漏洞比较多,不完善,很美好的一个板子,但没有长久 的更新,非常的可惜。\r\n如果用别人的不好用,那我就做一个出来吧。喜欢的人多关注,适当时候放出来大家一起用。\r\n关于详情页的内容解析\r\n该模板自带一个特定语法的编辑器,当你把内容存储到数据库后,在页面读取后浏览,会发现诸如“表情、代码、图片”等无法解析,这是因为需要对该内容进行一次转义,通常来说这是在服务端完成的,但鉴于简单化,你还可以直接在前端去解析,在模板的detail.html中,我们已经把相关的代码写好了,你只需打开注释即可(在代码的最下面)。当然,如果觉得编辑器无法满足你的需求,你也可以把该编辑器换成别的HTML编辑器或MarkDown编辑器。', '1', '1', '1', '0', '0', '1', '12', '0', null, null, '0', null, null, null, '1546698225', '1577772362', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_auth_group
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_auth_group`;
|
DROP TABLE IF EXISTS `tao_auth_group`;
|
||||||
CREATE TABLE `tao_auth_group` (
|
CREATE TABLE `tao_auth_group` (
|
||||||
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色ID',
|
||||||
@ -66,12 +96,18 @@ CREATE TABLE `tao_auth_group` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_auth_group
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_auth_group` VALUES ('1', '超级管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,4,20,32,33,34,14,29,30,31,1,65,6,35,36,37,38,7,39,40,41,42,8,43,44,45,66,9,47,48,49,50,46,67,2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '管理所有的管理员', '所有权限', '1', '0', '1578984825', '0');
|
INSERT INTO `tao_auth_group` VALUES ('1', '超级管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,4,20,32,33,34,14,29,30,31,1,65,6,35,36,37,38,7,39,40,41,42,8,43,44,45,66,9,47,48,49,50,46,67,2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '管理所有的管理员', '所有权限', '1', '0', '1578984825', '0');
|
||||||
INSERT INTO `tao_auth_group` VALUES ('2', '管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,1,65,6,35,36,37,38,67,3,12,13', '所有列表的管理', '普通管理员', '1', '0', '1578984832', '0');
|
INSERT INTO `tao_auth_group` VALUES ('2', '管理员', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25,1,65,6,35,36,37,38,67,3,12,13', '所有列表的管理', '普通管理员', '1', '0', '1578984832', '0');
|
||||||
INSERT INTO `tao_auth_group` VALUES ('3', '帖子管理', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25', '负责帖子的审核', '文章专员', '1', '0', '1578980219', '0');
|
INSERT INTO `tao_auth_group` VALUES ('3', '帖子管理', '5,15,21,22,62,63,23,17,27,28,64,16,24,26,25', '负责帖子的审核', '文章专员', '1', '0', '1578980219', '0');
|
||||||
INSERT INTO `tao_auth_group` VALUES ('4', '网站维护', '2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '对数据进行统计', '网站维护', '1', '0', '1578980364', '0');
|
INSERT INTO `tao_auth_group` VALUES ('4', '网站维护', '2,10,51,11,18,52,54,55,19,56,57,58,59,60,53,3,12,13', '对数据进行统计', '网站维护', '1', '0', '1578980364', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_auth_group_access
|
||||||
|
-- ----------------------------
|
||||||
|
DROP TABLE IF EXISTS `tao_auth_group_access`;
|
||||||
CREATE TABLE `tao_auth_group_access` (
|
CREATE TABLE `tao_auth_group_access` (
|
||||||
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户组id',
|
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户组id',
|
||||||
`uid` int(11) unsigned NOT NULL,
|
`uid` int(11) unsigned NOT NULL,
|
||||||
@ -86,12 +122,20 @@ CREATE TABLE `tao_auth_group_access` (
|
|||||||
KEY `uid_group_id` (`uid`,`group_id`) USING BTREE
|
KEY `uid_group_id` (`uid`,`group_id`) USING BTREE
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_auth_group_access
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_auth_rule
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_auth_rule`;
|
DROP TABLE IF EXISTS `tao_auth_rule`;
|
||||||
CREATE TABLE `tao_auth_rule` (
|
CREATE TABLE `tao_auth_rule` (
|
||||||
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '权限主键ID',
|
||||||
`name` char(80) NOT NULL DEFAULT '',
|
`name` char(80) NOT NULL DEFAULT '' COMMENT '权限名称',
|
||||||
`title` char(20) NOT NULL DEFAULT '',
|
`title` char(20) NOT NULL DEFAULT '' COMMENT '权限标题',
|
||||||
`type` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
`etitle` varchar(100) NOT NULL DEFAULT '' COMMENT '英文权限标题',
|
||||||
|
`type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型',
|
||||||
`status` enum('1','0') NOT NULL DEFAULT '1' COMMENT '菜单1启用,0禁用',
|
`status` enum('1','0') NOT NULL DEFAULT '1' COMMENT '菜单1启用,0禁用',
|
||||||
`pid` smallint(5) NOT NULL DEFAULT '0' COMMENT '父级ID',
|
`pid` smallint(5) NOT NULL DEFAULT '0' COMMENT '父级ID',
|
||||||
`level` tinyint(1) NOT NULL DEFAULT '1' COMMENT '菜单层级',
|
`level` tinyint(1) NOT NULL DEFAULT '1' COMMENT '菜单层级',
|
||||||
@ -104,89 +148,95 @@ CREATE TABLE `tao_auth_rule` (
|
|||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `name` (`name`)
|
UNIQUE KEY `name` (`name`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=77 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=93 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('1', 'admin', '管理', '1', '1', '0', '0', 'layui-icon-user', '1', '3', '', '0', '0', '0');
|
-- ----------------------------
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('2', 'set', '设置', '1', '1', '0', '0', 'layui-icon-set', '1', '4', '', '0', '0', '0');
|
-- Records of tao_auth_rule
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('3', 'administrator', '账户', '1', '1', '0', '0', 'layui-icon-username', '1', '5', '', '0', '1578980034', '0');
|
-- ----------------------------
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('4', 'app', '应用', '1', '1', '0', '0', 'layui-icon-app', '1', '2', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('1', 'admin', '管理', '', '1', '1', '0', '0', 'layui-icon-user', '1', '3', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('5', 'article', '内容', '1', '1', '0', '0', 'layui-icon-read', '1', '0', '', '0', '1578902321', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('2', 'set', '设置', '', '1', '1', '0', '0', 'layui-icon-set', '1', '4', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('6', 'admin/User/list', '用户管理', '1', '1', '1', '1', '', '1', '1', '', '0', '1578901015', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('3', 'administrator', '账户', '', '1', '1', '0', '0', 'layui-icon-username', '1', '5', '', '0', '1578980034', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('7', 'admin/Admin/index', '管理员', '1', '1', '1', '1', '', '1', '6', '', '0', '1578901133', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('4', 'app', '应用', '', '1', '1', '0', '0', 'layui-icon-app', '1', '2', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('8', 'admin/AuthGroup/list', '角色管理', '1', '1', '1', '1', '', '1', '11', '', '0', '1578901282', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('5', 'article', '内容', '', '1', '1', '0', '0', 'layui-icon-read', '1', '0', '', '0', '1578902321', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('9', 'admin/AuthRule/index', '权限管理', '1', '1', '1', '1', '', '1', '16', '', '0', '1578981541', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('6', 'admin/User/list', '用户管理', '', '1', '1', '1', '1', '', '1', '1', '', '0', '1578901015', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('10', 'admin/Set/index', '网站设置', '1', '1', '2', '1', '', '1', '1', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('7', 'admin/Admin/index', '管理员', '', '1', '1', '1', '1', '', '1', '6', '', '0', '1578901133', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('11', 'admin/Set/server', '综合服务', '1', '1', '2', '1', '', '1', '3', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('8', 'admin/AuthGroup/list', '角色管理', '', '1', '1', '1', '1', '', '1', '11', '', '0', '1578901282', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('12', 'admin/Admin/info', '基本资料', '1', '1', '3', '1', '', '1', '50', '', '0', '1578980034', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('9', 'admin/AuthRule/index', '权限管理', '', '1', '1', '1', '1', '', '1', '16', '', '0', '1578981541', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('13', 'admin/Admin/repass', '修改密码', '1', '1', '3', '1', '', '1', '51', '', '0', '1578980034', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('10', 'admin/Set/index', '网站设置', '', '1', '1', '2', '1', '', '1', '1', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('15', 'admin/Forum/list', '帖子管理', '1', '1', '5', '1', '', '1', '1', '', '0', '1578902605', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('11', 'admin/Set/server', '综合服务', '', '1', '1', '2', '1', '', '1', '3', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('16', 'admin/Forum/tags', '分类管理', '1', '1', '5', '1', '', '1', '11', '', '0', '1578904950', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('12', 'admin/Admin/info', '基本资料', '', '1', '1', '3', '1', '', '1', '50', '', '0', '1578980034', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('17', 'admin/Forum/replys', '评论管理', '1', '1', '5', '1', '', '1', '7', '', '0', '1578904590', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('13', 'admin/Admin/repass', '修改密码', '', '1', '1', '3', '1', '', '1', '51', '', '0', '1578980034', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('18', 'admin/Slider/index', '广告投放', '1', '1', '2', '1', '', '1', '4', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('15', 'admin/Forum/list', '帖子管理', '', '1', '1', '5', '1', '', '1', '1', '', '0', '1578902605', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('19', 'admin/Upgrade/index', '系统升级', '1', '1', '2', '1', '', '1', '8', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('16', 'admin/Forum/tags', '分类管理', '', '1', '1', '5', '1', '', '1', '11', '', '0', '1578904950', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('21', 'admin/Forum/listform', '编辑帖子', '1', '1', '5', '1', '', '0', '2', '', '0', '1578903229', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('17', 'admin/Forum/replys', '评论管理', '', '1', '1', '5', '1', '', '1', '7', '', '0', '1578904590', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('22', 'admin/Forum/listdel', '删除帖子', '1', '1', '5', '1', '', '0', '3', '', '0', '1578903919', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('18', 'admin/Slider/index', '广告投放', '', '1', '1', '2', '1', '', '1', '4', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('23', 'admin/Forum/check', '审核帖子', '1', '1', '5', '1', '', '0', '6', '', '0', '1578904476', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('19', 'admin/Upgrade/index', '系统升级', '', '1', '1', '2', '1', '', '1', '8', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('24', 'admin/Forum/addtags', '添加分类', '1', '1', '5', '1', '', '0', '12', '', '0', '1578904966', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('21', 'admin/Forum/listform', '编辑帖子', '', '1', '1', '5', '1', '', '0', '2', '', '0', '1578903229', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('25', 'admin/Forum/tagsform', '编辑分类', '1', '1', '5', '1', '', '0', '14', '', '0', '1578905046', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('22', 'admin/Forum/listdel', '删除帖子', '', '1', '1', '5', '1', '', '0', '3', '', '0', '1578903919', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('26', 'admin/Forum/tagsdelete', '删除分类', '1', '1', '5', '1', '', '0', '13', '', '0', '1578904996', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('23', 'admin/Forum/check', '审核帖子', '', '1', '1', '5', '1', '', '0', '6', '', '0', '1578904476', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('27', 'admin/Forum/replysform', '编辑评论', '1', '1', '5', '1', '', '0', '8', '', '0', '1578904627', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('24', 'admin/Forum/addtags', '添加分类', '', '1', '1', '5', '1', '', '0', '12', '', '0', '1578904966', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('28', 'admin/Forum/redel', '删除评论', '1', '1', '5', '1', '', '0', '9', '', '0', '1578904856', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('25', 'admin/Forum/tagsform', '编辑分类', '', '1', '1', '5', '1', '', '0', '14', '', '0', '1578905046', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('35', 'admin/User/userForm', '添加用户', '1', '1', '1', '1', '', '0', '2', '', '0', '1578901074', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('26', 'admin/Forum/tagsdelete', '删除分类', '', '1', '1', '5', '1', '', '0', '13', '', '0', '1578904996', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('36', 'admin/User/userEdit', '编辑用户', '1', '1', '1', '1', '', '0', '3', '', '0', '1578901089', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('27', 'admin/Forum/replysform', '编辑评论', '', '1', '1', '5', '1', '', '0', '8', '', '0', '1578904627', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('37', 'admin/User/delete', '删除用户', '1', '1', '1', '1', '', '0', '4', '', '0', '1578901099', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('28', 'admin/Forum/redel', '删除评论', '', '1', '1', '5', '1', '', '0', '9', '', '0', '1578904856', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('38', 'admin/User/check', '审核用户', '1', '1', '1', '1', '', '0', '5', '', '0', '1578905291', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('35', 'admin/User/userForm', '添加用户', '', '1', '1', '1', '1', '', '0', '2', '', '0', '1578901074', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('39', 'admin/Admin/add', '添加管理员', '1', '1', '1', '1', '', '0', '7', '', '0', '1578901163', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('36', 'admin/User/userEdit', '编辑用户', '', '1', '1', '1', '1', '', '0', '3', '', '0', '1578901089', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('40', 'admin/Admin/edit', '编辑管理员', '1', '1', '1', '1', '', '0', '8', '', '0', '1578901184', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('37', 'admin/User/delete', '删除用户', '', '1', '1', '1', '1', '', '0', '4', '', '0', '1578901099', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('41', 'admin/Admin/delete', '删除管理员', '1', '1', '1', '1', '', '0', '9', '', '0', '1578901198', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('38', 'admin/User/check', '审核用户', '', '1', '1', '1', '1', '', '0', '5', '', '0', '1578905291', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('42', 'admin/Admin/check', '审核管理员', '1', '1', '1', '1', '', '0', '10', '', '0', '1578901216', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('39', 'admin/Admin/add', '添加管理员', '', '1', '1', '1', '1', '', '0', '7', '', '0', '1578901163', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('43', 'admin/AuthGroup/roleAdd', '添加角色', '1', '1', '1', '1', '', '0', '12', '', '0', '1578981437', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('40', 'admin/Admin/edit', '编辑管理员', '', '1', '1', '1', '1', '', '0', '8', '', '0', '1578901184', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('44', 'admin/AuthGroup/roleEdit', '编辑角色', '1', '1', '1', '1', '', '0', '13', '', '0', '1578901349', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('41', 'admin/Admin/delete', '删除管理员', '', '1', '1', '1', '1', '', '0', '9', '', '0', '1578901198', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('45', 'admin/AuthGroup/roledel', '删除角色', '1', '1', '1', '1', '', '0', '14', '', '0', '1578971659', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('42', 'admin/Admin/check', '审核管理员', '', '1', '1', '1', '1', '', '0', '10', '', '0', '1578901216', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('46', 'admin/AuthRule/add', '添加权限', '1', '1', '1', '1', '', '0', '21', '', '0', '1578981581', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('43', 'admin/AuthGroup/roleAdd', '添加角色', '', '1', '1', '1', '1', '', '0', '12', '', '0', '1578981437', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('47', 'admin/AuthRule/edit', '编辑权限', '1', '1', '1', '1', '', '0', '17', '', '0', '1578901457', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('44', 'admin/AuthGroup/roleEdit', '编辑角色', '', '1', '1', '1', '1', '', '0', '13', '', '0', '1578901349', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('48', 'admin/AuthRule/delete', '删除权限', '1', '1', '1', '1', '', '0', '18', '', '0', '1578901469', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('45', 'admin/AuthGroup/roledel', '删除角色', '', '1', '1', '1', '1', '', '0', '14', '', '0', '1578971659', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('49', 'admin/AuthRule/check', '审核权限', '1', '1', '1', '1', '', '0', '19', '', '0', '1578901484', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('46', 'admin/AuthRule/add', '添加权限', '', '1', '1', '1', '1', '', '0', '21', '', '0', '1578981581', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('50', 'admin/AuthRule/menushow', '菜单权限', '1', '1', '1', '1', '', '0', '20', '', '0', '1578901495', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('47', 'admin/AuthRule/edit', '编辑权限', '', '1', '1', '1', '1', '', '0', '17', '', '0', '1578901457', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('51', 'admin/Set/upload', '上传logo', '1', '1', '2', '1', '', '0', '2', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('48', 'admin/AuthRule/delete', '删除权限', '', '1', '1', '1', '1', '', '0', '18', '', '0', '1578901469', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('52', 'admin/Slider/add', '添加广告', '1', '1', '2', '1', '', '0', '5', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('49', 'admin/AuthRule/check', '审核权限', '', '1', '1', '1', '1', '', '0', '19', '', '0', '1578901484', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('53', 'admin/Slider/edit', '编辑广告', '1', '1', '2', '1', '', '0', '14', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('50', 'admin/AuthRule/menushow', '菜单权限', '', '1', '1', '1', '1', '', '0', '20', '', '0', '1578901495', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('54', 'admin/Slider/delete', '删除广告', '1', '1', '2', '1', '', '0', '6', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('51', 'admin/Set/upload', '上传logo', '', '1', '1', '2', '1', '', '0', '2', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('55', 'admin/Slider/uploadimg', '上传广告图片', '1', '1', '2', '1', '', '0', '7', '', '0', '1578906577', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('52', 'admin/Slider/add', '添加广告', '', '1', '1', '2', '1', '', '0', '5', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('56', 'admin/Upgrade/key', '设置key', '1', '1', '2', '1', '', '0', '9', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('53', 'admin/Slider/edit', '编辑广告', '', '1', '1', '2', '1', '', '0', '14', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('57', 'admin/Upgrade/keyedit', '修改key', '1', '1', '2', '1', '', '0', '10', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('54', 'admin/Slider/delete', '删除广告', '', '1', '1', '2', '1', '', '0', '6', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('58', 'admin/Upgrade/check', '升级检测', '1', '1', '2', '1', '', '0', '11', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('55', 'admin/Slider/uploadimg', '上传广告图片', '', '1', '1', '2', '1', '', '0', '7', '', '0', '1578906577', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('59', 'admin/Upgrade/upload', '自动升级', '1', '1', '2', '1', '', '0', '12', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('56', 'admin/Upgrade/key', '设置key', '', '1', '1', '2', '1', '', '0', '9', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('60', 'admin/Upgrade/uploadzip', '上传升级包', '1', '1', '2', '1', '', '0', '13', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('57', 'admin/Upgrade/keyedit', '修改key', '', '1', '1', '2', '1', '', '0', '10', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('62', 'admin/Forum/top', '置顶帖子', '1', '1', '5', '1', '', '0', '4', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('58', 'admin/Upgrade/check', '升级检测', '', '1', '1', '2', '1', '', '0', '11', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('63', 'admin/Forum/hot', '加精帖子', '1', '1', '5', '1', '', '0', '5', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('59', 'admin/Upgrade/upload', '自动升级', '', '1', '1', '2', '1', '', '0', '12', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('64', 'admin/Froum/recheck', '审核评论', '1', '1', '5', '1', '', '0', '10', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('60', 'admin/Upgrade/uploadzip', '上传升级包', '', '1', '1', '2', '1', '', '0', '13', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('65', 'admin/User/uploadImg', '上传用户头像', '1', '1', '1', '1', '', '0', '0', '', '0', '1578981624', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('62', 'admin/Forum/top', '置顶帖子', '', '1', '1', '5', '1', '', '0', '4', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('66', 'admin/AuthGroup/check', '审核角色', '1', '1', '1', '1', '', '0', '15', '', '0', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('63', 'admin/Forum/hot', '加精帖子', '', '1', '1', '5', '1', '', '0', '5', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('67', 'admin/Sign/signRule', '签到规则', '1', '1', '2', '1', '', '0', '15', '', '1585547595', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('64', 'admin/Froum/recheck', '审核评论', '', '1', '1', '5', '1', '', '0', '10', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('68', 'admin/Sign/add', '添加签到', '1', '1', '2', '1', '', '0', '16', '', '1585547705', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('65', 'admin/User/uploadImg', '上传用户头像', '', '1', '1', '1', '1', '', '0', '0', '', '0', '1578981624', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('69', 'admin/Sign/signEdit', '编辑签到', '1', '1', '2', '1', '', '0', '17', '', '1585547774', '1585548298', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('66', 'admin/AuthGroup/check', '审核角色', '', '1', '1', '1', '1', '', '0', '15', '', '0', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('70', 'admin/Sign/delete', '删除签到', '1', '1', '2', '1', '', '0', '18', '', '1585547817', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('67', 'admin/Sign/signRule', '签到规则', '', '1', '1', '2', '1', '', '0', '15', '', '1585547595', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('71', 'admin/Vip/vipRule', '用户等级', '1', '1', '2', '1', '', '0', '19', '', '1585547921', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('68', 'admin/Sign/add', '添加签到', '', '1', '1', '2', '1', '', '0', '16', '', '1585547705', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('72', 'admin/Vip/add', '添加vip等级', '1', '1', '2', '1', '', '0', '20', '', '1585547981', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('69', 'admin/Sign/signEdit', '编辑签到', '', '1', '1', '2', '1', '', '0', '17', '', '1585547774', '1585548298', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('73', 'admin/Vip/vipEdit', '编辑vip等级', '1', '1', '1', '1', '', '0', '21', '', '1585548029', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('70', 'admin/Sign/delete', '删除签到', '', '1', '1', '2', '1', '', '0', '18', '', '1585547817', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('74', 'admin/Vip/delete', '删除vip等级', '1', '1', '2', '1', '', '0', '22', '', '1585548077', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('71', 'admin/Vip/vipRule', '用户等级', '', '1', '1', '2', '1', '', '0', '19', '', '1585547921', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('75', 'admin/Set/email', '邮箱设置', '1', '1', '2', '1', '', '0', '23', '', '1585548143', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('72', 'admin/Vip/add', '添加vip等级', '', '1', '1', '2', '1', '', '0', '20', '', '1585547981', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('76', 'admin/Notice/index', '发布通知', '1', '1', '4', '1', '', '1', '10', '', '1585618141', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('73', 'admin/Vip/vipEdit', '编辑vip等级', '', '1', '1', '1', '1', '', '0', '21', '', '1585548029', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('77', 'admin/Notice/add', '添加通知', '1', '1', '4', '1', '', '0', '11', '', '1585663336', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('74', 'admin/Vip/delete', '删除vip等级', '', '1', '1', '2', '1', '', '0', '22', '', '1585548077', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('78', 'admin/Notice/edit', '编辑通知', '1', '1', '4', '1', '', '0', '12', '', '1585663366', '1585663465', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('75', 'admin/Set/email', '邮箱设置', '', '1', '1', '2', '1', '', '0', '23', '', '1585548143', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('79', 'admin/Notice/delete', '删除通知', '1', '1', '4', '1', '', '0', '13', '', '1585663412', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('76', 'admin/Notice/index', '发布通知', '', '1', '1', '4', '1', '', '1', '10', '', '1585618141', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('83', 'admin/AuthAccess/index', '管理员权限', '1', '1', '1', '1', '', '1', '22', '', '1585794015', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('77', 'admin/Notice/add', '添加通知', '', '1', '1', '4', '1', '', '0', '11', '', '1585663336', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('84', 'admin/AuthAccess/add', '添加管理员权限', '1', '1', '1', '1', '', '0', '23', '', '1585806544', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('78', 'admin/Notice/edit', '编辑通知', '', '1', '1', '4', '1', '', '0', '12', '', '1585663366', '1585663465', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('85', 'admin/AuthAccess/edit', '编辑管理员权限', '1', '1', '1', '1', '', '0', '24', '', '1585806592', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('79', 'admin/Notice/delete', '删除通知', '', '1', '1', '4', '1', '', '0', '13', '', '1585663412', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('86', 'admin/AuthAccess/delete', '删除管理员权限', '1', '1', '1', '1', '', '0', '25', '', '1585806620', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('83', 'admin/AuthAccess/index', '管理员权限', '', '1', '1', '1', '1', '', '1', '22', '', '1585794015', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('87', 'admin/AuthAccess/check', '审核管理员权限', '1', '1', '1', '1', '', '0', '26', '', '1585806653', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('84', 'admin/AuthAccess/add', '添加管理员权限', '', '1', '1', '1', '1', '', '0', '23', '', '1585806544', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('88', 'admin/Set/website', '网站信息保存', '1', '1', '2', '1', '', '0', '24', '', '1585819936', '1585820211', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('85', 'admin/AuthAccess/edit', '编辑管理员权限', '', '1', '1', '1', '1', '', '0', '24', '', '1585806592', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('89', 'admin/User/auth', '设置超级用户', '1', '1', '1', '1', '', '0', '22', '', '1578984801', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('86', 'admin/AuthAccess/delete', '删除管理员权限', '', '1', '1', '1', '1', '', '0', '25', '', '1585806620', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('90', 'admin/Forum/tagshot', '开启热点', '1', '1', '5', '1', '', '0', '15', '', '1585841826', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('87', 'admin/AuthAccess/check', '审核管理员权限', '', '1', '1', '1', '1', '', '0', '26', '', '1585806653', '0', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('91', 'admin/Admin/infoSet', '资料设置', '1', '1', '3', '1', '', '0', '62', '', '1586245669', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('88', 'admin/Set/website', '网站信息保存', '', '1', '1', '2', '1', '', '0', '24', '', '1585819936', '1585820211', '0');
|
||||||
INSERT INTO `tao_auth_rule` VALUES ('92', 'admin/Admin/repassSet', '密码设置', '1', '1', '3', '1', '', '0', '64', '', '1586245727', '0', '0');
|
INSERT INTO `tao_auth_rule` VALUES ('89', 'admin/User/auth', '设置超级用户', '', '1', '1', '1', '1', '', '0', '22', '', '1578984801', '0', '0');
|
||||||
|
INSERT INTO `tao_auth_rule` VALUES ('90', 'admin/Forum/tagshot', '开启热点', '', '1', '1', '5', '1', '', '0', '15', '', '1585841826', '0', '0');
|
||||||
|
INSERT INTO `tao_auth_rule` VALUES ('91', 'admin/Admin/infoSet', '资料设置', '', '1', '1', '3', '1', '', '0', '62', '', '1586245669', '0', '0');
|
||||||
|
INSERT INTO `tao_auth_rule` VALUES ('92', 'admin/Admin/repassSet', '密码设置', '', '1', '1', '3', '1', '', '0', '64', '', '1586245727', '0', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_cate
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_cate`;
|
DROP TABLE IF EXISTS `tao_cate`;
|
||||||
CREATE TABLE `tao_cate` (
|
CREATE TABLE `tao_cate` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
||||||
@ -200,14 +250,20 @@ CREATE TABLE `tao_cate` (
|
|||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`updata_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`updata_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `ename` (`ename`) COMMENT '英文名称索引'
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_cate
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_cate` VALUES ('1', '提问', 'ask', '1', '1', '0', 'TaoLer社区提问专栏1', '0', '0', '0', '0');
|
INSERT INTO `tao_cate` VALUES ('1', '提问', 'ask', '1', '1', '0', 'TaoLer社区提问专栏1', '0', '0', '0', '0');
|
||||||
INSERT INTO `tao_cate` VALUES ('2', '分享', 'share', '2', '1', '0', '', '0', '0', '0', '0');
|
INSERT INTO `tao_cate` VALUES ('2', '分享', 'share', '2', '1', '0', '', '0', '0', '0', '0');
|
||||||
INSERT INTO `tao_cate` VALUES ('3', '讨论', 'talk', '3', '1', '0', '', '1', '0', '0', '0');
|
INSERT INTO `tao_cate` VALUES ('3', '讨论', 'talk', '3', '1', '0', '', '1', '0', '0', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_collection
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_collection`;
|
DROP TABLE IF EXISTS `tao_collection`;
|
||||||
CREATE TABLE `tao_collection` (
|
CREATE TABLE `tao_collection` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||||
@ -216,9 +272,15 @@ CREATE TABLE `tao_collection` (
|
|||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章收藏表';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='文章收藏表';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_collection
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_comment
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_comment`;
|
DROP TABLE IF EXISTS `tao_comment`;
|
||||||
CREATE TABLE `tao_comment` (
|
CREATE TABLE `tao_comment` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论id',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论id',
|
||||||
@ -231,12 +293,19 @@ CREATE TABLE `tao_comment` (
|
|||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `aiticle_id` (`article_id`) USING BTREE COMMENT '文章评论索引',
|
||||||
|
KEY `user_id` (`user_id`) USING BTREE COMMENT '评论用户索引'
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_comment
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_comment` VALUES ('1', 'https://www.aieok.com', '1', '1', '0', '0', '1', '1555127897', '1578977505', '1578977505');
|
INSERT INTO `tao_comment` VALUES ('1', 'https://www.aieok.com', '1', '1', '0', '0', '1', '1555127897', '1578977505', '1578977505');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_mail_server
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_mail_server`;
|
DROP TABLE IF EXISTS `tao_mail_server`;
|
||||||
CREATE TABLE `tao_mail_server` (
|
CREATE TABLE `tao_mail_server` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
@ -249,22 +318,35 @@ CREATE TABLE `tao_mail_server` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_mail_server
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_mail_server` VALUES ('1', 'xxxx@aliyun.com', 'smtp.aliyun.com', '25', 'user', '123456', '0');
|
INSERT INTO `tao_mail_server` VALUES ('1', 'xxxx@aliyun.com', 'smtp.aliyun.com', '25', 'user', '123456', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_message
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_message`;
|
DROP TABLE IF EXISTS `tao_message`;
|
||||||
CREATE TABLE `tao_message` (
|
CREATE TABLE `tao_message` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID',
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID',
|
||||||
`title` varchar(255) NOT NULL COMMENT '消息标题',
|
`title` varchar(255) NOT NULL COMMENT '消息标题',
|
||||||
`content` text COMMENT '消息内容',
|
`content` text COMMENT '消息内容',
|
||||||
`user_id` int(11) NOT NULL COMMENT '发送人ID',
|
`user_id` int(11) NOT NULL COMMENT '发送人ID',
|
||||||
`link` varchar(255) COMMENT '链接',
|
`link` varchar(255) DEFAULT NULL COMMENT '链接',
|
||||||
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息类型0系统消息1普通消息',
|
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息类型0系统消息1普通消息',
|
||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_message
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_message_to
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_message_to`;
|
DROP TABLE IF EXISTS `tao_message_to`;
|
||||||
CREATE TABLE `tao_message_to` (
|
CREATE TABLE `tao_message_to` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID',
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息ID',
|
||||||
@ -277,9 +359,15 @@ CREATE TABLE `tao_message_to` (
|
|||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_message_to
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_slider
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_slider`;
|
DROP TABLE IF EXISTS `tao_slider`;
|
||||||
CREATE TABLE `tao_slider` (
|
CREATE TABLE `tao_slider` (
|
||||||
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
|
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
|
||||||
@ -295,12 +383,17 @@ CREATE TABLE `tao_slider` (
|
|||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_slider
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_slider` VALUES ('1', 'CODING', '1', '/storage/slider/F1.jpg', '#', '', '1574870400', '1575043200', '1', '0', '0', '0');
|
INSERT INTO `tao_slider` VALUES ('1', 'CODING', '1', '/storage/slider/F1.jpg', '#', '', '1574870400', '1575043200', '1', '0', '0', '0');
|
||||||
INSERT INTO `tao_slider` VALUES ('3', '通用右栏底部广告', '2', '/storage/slider/20200101/851c0b88a72590293bcb45454bdce056.jpg', 'https://www.aieok.com', '', '1571155200', '1609344000', '1', '0', '0', '0');
|
INSERT INTO `tao_slider` VALUES ('3', '通用右栏底部广告', '2', '/storage/slider/20200101/851c0b88a72590293bcb45454bdce056.jpg', 'https://www.aieok.com', '', '1571155200', '1609344000', '1', '0', '0', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_system
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_system`;
|
DROP TABLE IF EXISTS `tao_system`;
|
||||||
CREATE TABLE `tao_system` (
|
CREATE TABLE `tao_system` (
|
||||||
`id` tinyint(2) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
`id` tinyint(2) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||||
@ -330,9 +423,14 @@ CREATE TABLE `tao_system` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统配置表';
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统配置表';
|
||||||
|
|
||||||
INSERT INTO `tao_system` VALUES ('1', 'TaoLer社区演示站', '轻论坛系统', 'http://www.xxx.com', 'taoler', '/storage/logo/logo.png', '10', '2048', 'png|gif|jpg|jpeg|zip|rarr', '<a href=\"http://www.aieok.com\" target=\"_blank\">aieok.com 版权所有</a>', 'TaoLer,轻社区系统,bbs,论坛,Thinkphp6,layui,fly模板,', '这是一个Taoler轻社区论坛系统', '1', '1', '1', '0.0.0.0', '管理员|admin|审核员|超级|垃圾', '1.5.2', '', 'http://api.aieok.com/v1/index/cy', 'http://api.aieok.com/v1/upload/check', 'http://api.aieok.com/v1/upload/api', '1581221008', '1577419197');
|
-- ----------------------------
|
||||||
|
-- Records of tao_system
|
||||||
|
-- ----------------------------
|
||||||
|
INSERT INTO `tao_system` VALUES ('1', 'TaoLer社区演示站', '轻论坛系统', 'http://www.xxx.com', 'taoler', '/storage/logo/logo.png', '10', '2048', 'png|gif|jpg|jpeg|zip|rarr', '<a href=\"http://www.aieok.com\" target=\"_blank\">aieok.com 版权所有</a>', 'TaoLer,轻社区系统,bbs,论坛,Thinkphp6,layui,fly模板,', '这是一个Taoler轻社区论坛系统', '1', '1', '1', '0.0.0.0', '管理员|admin|审核员|超级|垃圾', '1.6.3', '', 'http://api.aieok.com/v1/index/cy', 'http://api.aieok.com/v1/upload/check', 'http://api.aieok.com/v1/upload/api', '1581221008', '1577419197');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user`;
|
DROP TABLE IF EXISTS `tao_user`;
|
||||||
CREATE TABLE `tao_user` (
|
CREATE TABLE `tao_user` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
|
||||||
@ -358,12 +456,19 @@ CREATE TABLE `tao_user` (
|
|||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `name` (`name`) USING BTREE COMMENT '用户名查询用户索引',
|
||||||
|
KEY `email` (`email`) USING BTREE COMMENT 'email查询用户索引'
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_user` VALUES ('1', 'admin', '95d6f8d0d0c3b45e5dbe4057da1b149e', '2147483647', 'admin@qq.com', '管理员', '北京市', '1', '这是我的第一个TP5系统,2019北京。OK! OK!ok@', '/static/res/images/avatar/00.jpg', '1', '14', '1', '1', '0', '127.0.0.1', '0', '0', '0', '0', '1579053025', '1578469091', '0');
|
INSERT INTO `tao_user` VALUES ('1', 'admin', '95d6f8d0d0c3b45e5dbe4057da1b149e', '2147483647', 'admin@qq.com', '管理员', '北京市', '1', '这是我的第一个TP5系统,2019北京。OK! OK!ok@', '/static/res/images/avatar/00.jpg', '1', '14', '1', '1', '0', '127.0.0.1', '0', '0', '0', '0', '1579053025', '1578469091', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user_area
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user_area`;
|
DROP TABLE IF EXISTS `tao_user_area`;
|
||||||
CREATE TABLE `tao_user_area` (
|
CREATE TABLE `tao_user_area` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
@ -375,12 +480,17 @@ CREATE TABLE `tao_user_area` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user_area
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_user_area` VALUES ('1', '北京', '京', '0', '0', '0');
|
INSERT INTO `tao_user_area` VALUES ('1', '北京', '京', '0', '0', '0');
|
||||||
INSERT INTO `tao_user_area` VALUES ('2', '上海', '沪', '0', '0', '0');
|
INSERT INTO `tao_user_area` VALUES ('2', '上海', '沪', '0', '0', '0');
|
||||||
INSERT INTO `tao_user_area` VALUES ('3', '广州', '广', '0', '0', '0');
|
INSERT INTO `tao_user_area` VALUES ('3', '广州', '广', '0', '0', '0');
|
||||||
INSERT INTO `tao_user_area` VALUES ('4', '深圳', '深', '0', '0', '0');
|
INSERT INTO `tao_user_area` VALUES ('4', '深圳', '深', '0', '0', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user_sign
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user_sign`;
|
DROP TABLE IF EXISTS `tao_user_sign`;
|
||||||
CREATE TABLE `tao_user_sign` (
|
CREATE TABLE `tao_user_sign` (
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
@ -391,9 +501,15 @@ CREATE TABLE `tao_user_sign` (
|
|||||||
`stime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '签到的时间',
|
`stime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '签到的时间',
|
||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户签到表';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='用户签到表';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user_sign
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user_signrule
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user_signrule`;
|
DROP TABLE IF EXISTS `tao_user_signrule`;
|
||||||
CREATE TABLE `tao_user_signrule` (
|
CREATE TABLE `tao_user_signrule` (
|
||||||
`id` int(2) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(2) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
@ -405,10 +521,16 @@ CREATE TABLE `tao_user_signrule` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户签到积分规则';
|
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户签到积分规则';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user_signrule
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_user_signrule` VALUES ('1', '1', '2', '0', '0', '0');
|
INSERT INTO `tao_user_signrule` VALUES ('1', '1', '2', '0', '0', '0');
|
||||||
INSERT INTO `tao_user_signrule` VALUES ('2', '3', '3', '0', '0', '0');
|
INSERT INTO `tao_user_signrule` VALUES ('2', '3', '3', '0', '0', '0');
|
||||||
INSERT INTO `tao_user_signrule` VALUES ('3', '5', '5', '0', '0', '0');
|
INSERT INTO `tao_user_signrule` VALUES ('3', '5', '5', '0', '0', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user_viprule
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user_viprule`;
|
DROP TABLE IF EXISTS `tao_user_viprule`;
|
||||||
CREATE TABLE `tao_user_viprule` (
|
CREATE TABLE `tao_user_viprule` (
|
||||||
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户等级ID',
|
`id` int(2) NOT NULL AUTO_INCREMENT COMMENT '用户等级ID',
|
||||||
@ -422,11 +544,17 @@ CREATE TABLE `tao_user_viprule` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user_viprule
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_user_viprule` VALUES ('1', '0-99', '0', '游民', '', '1585476523', '1585544577', '0');
|
INSERT INTO `tao_user_viprule` VALUES ('1', '0-99', '0', '游民', '', '1585476523', '1585544577', '0');
|
||||||
INSERT INTO `tao_user_viprule` VALUES ('2', '100-299', '1', '富农', '', '1585476551', '1585546376', '0');
|
INSERT INTO `tao_user_viprule` VALUES ('2', '100-299', '1', '富农', '', '1585476551', '1585546376', '0');
|
||||||
INSERT INTO `tao_user_viprule` VALUES ('3', '300-500', '2', '地主', '', '1585545450', '1585546241', '0');
|
INSERT INTO `tao_user_viprule` VALUES ('3', '300-500', '2', '地主', '', '1585545450', '1585546241', '0');
|
||||||
INSERT INTO `tao_user_viprule` VALUES ('4', '501-699', '3', '土豪', '', '1585545542', '1585569657', '0');
|
INSERT INTO `tao_user_viprule` VALUES ('4', '501-699', '3', '土豪', '', '1585545542', '1585569657', '0');
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_user_zan
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_user_zan`;
|
DROP TABLE IF EXISTS `tao_user_zan`;
|
||||||
CREATE TABLE `tao_user_zan` (
|
CREATE TABLE `tao_user_zan` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '点赞主键id',
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '点赞主键id',
|
||||||
@ -434,8 +562,15 @@ CREATE TABLE `tao_user_zan` (
|
|||||||
`user_id` int(11) NOT NULL COMMENT '用户id',
|
`user_id` int(11) NOT NULL COMMENT '用户id',
|
||||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '点赞时间',
|
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '点赞时间',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_user_zan
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Table structure for tao_webconfig
|
||||||
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tao_webconfig`;
|
DROP TABLE IF EXISTS `tao_webconfig`;
|
||||||
CREATE TABLE `tao_webconfig` (
|
CREATE TABLE `tao_webconfig` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
@ -452,4 +587,7 @@ CREATE TABLE `tao_webconfig` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- Records of tao_webconfig
|
||||||
|
-- ----------------------------
|
||||||
INSERT INTO `tao_webconfig` VALUES ('1', 'template', '', '', '0', '', 'taoler', '20', '0', '0', '0');
|
INSERT INTO `tao_webconfig` VALUES ('1', 'template', '', '', '0', '', 'taoler', '20', '0', '0', '0');
|
||||||
|
9
config/taoler.php
Normal file
9
config/taoler.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 网站公共配置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
return [
|
||||||
|
//版本配置
|
||||||
|
'version'=> '1.6.3',
|
||||||
|
];
|
@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
<div class="fly-column-right layui-hide-xs">
|
<div class="fly-column-right layui-hide-xs">
|
||||||
<span class="fly-search"><i class="layui-icon"></i></span>
|
<span class="fly-search"><i class="layui-icon"></i></span>
|
||||||
<a href="{:url('article/add')}" class="layui-btn" >{:lang('add_post')}</a>
|
<a href="{:url('article/add')}" class="layui-btn" >{:lang('add post')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
|
<div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
|
||||||
<a href="javascript:void(0)" class="layui-btn" id="add_post">{:lang('add_post')}</a>
|
<a href="javascript:void(0)" class="layui-btn" id="add_post">{:lang('add post')}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -1,5 +1,5 @@
|
|||||||
<div class="fly-panel-title fly-filter">
|
<div class="fly-panel-title fly-filter">
|
||||||
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all' ,'type' => ''])} " {if condition="$type eq ''" } class="layui-this" {/if} >{:lang('all')}</a>
|
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all' ,'type' => 'all'])} " {if condition="$type eq 'all'" } class="layui-this" {/if} >{:lang('all')}</a>
|
||||||
<span class="fly-mid"></span>
|
<span class="fly-mid"></span>
|
||||||
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('end')}</a>
|
<a href="{:url('article/cate',['ename' => $Request.param.ename ?:'all','type' => 'jie'])} " {if condition="$type eq 'jie'" } class="layui-this" {/if} >{:lang('end')}</a>
|
||||||
<span class="fly-mid"></span>
|
<span class="fly-mid"></span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user