This commit is contained in:
zhao 2020-02-25 16:37:05 +08:00
parent 37967a491e
commit e5edb85b91
4 changed files with 7 additions and 5 deletions

View File

@ -249,7 +249,7 @@ abstract class BaseController
protected function showSystem()
{
//1.查询分类表获取所有分类
$sysInfo = Db::name('system')->cache(true)->find(1);
$sysInfo = Db::name('system')->cache(120)->find(1);
View::assign('sysInfo',$sysInfo);
}

View File

@ -18,7 +18,7 @@ return [
// 缓存前缀
'prefix' => '',
// 缓存有效期 0表示永久缓存
'expire' => 0,
'expire' => 600,
// 缓存标签前缀
'tag_prefix' => 'tag:',
// 序列化机制 例如 ['serialize', 'unserialize']

View File

@ -212,8 +212,8 @@ layui.define(function(exports){
,cellMinWidth: 120
,cols: [[
{type: 'numbers', fixed: 'left'}
,{field: 'content', title: '评论'}
,{field: 'title', title: '帖子', minWidth: 300, templet: '<div><a href="/index/jie/{{d.cid}}.html" target="_blank" class="layui-table-link">{{ d.title }}</div>'}
,{field: 'content', title: '评论', minWidth: 300}
,{field: 'title', title: '帖子', minWidth: 200, templet: '<div><a href="/index/jie/{{d.cid}}.html" target="_blank" class="layui-table-link">{{ d.title }}</div>'}
,{field: 'name', title: '评论者'}
]]

View File

@ -165,8 +165,10 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function(
//执行上传实例
upload.render({
elem: '#uploadImg'
,acceptMime: 'image/*'
,exts: 'jpg|png|gif|bmp|jpeg'
,url: '/index/article/text_img_upload'
,size: 1024
,size: 2048
,done: function(res){
if(res.status == 0){
image.val(res.url);