set
This commit is contained in:
parent
e8ffd4f003
commit
e23274ebd4
@ -168,7 +168,6 @@ class Article extends BaseController
|
|||||||
$comments = $article->comments()->where('status',1)->order(['cai'=>'asc','create_time'=>'asc'])->paginate(10);
|
$comments = $article->comments()->where('status',1)->order(['cai'=>'asc','create_time'=>'asc'])->paginate(10);
|
||||||
$article->inc('pv')->update();
|
$article->inc('pv')->update();
|
||||||
$pv = Db::name('article')->field('pv')->where('id',$id)->value('pv');
|
$pv = Db::name('article')->field('pv')->where('id',$id)->value('pv');
|
||||||
$download = download($article->upzip,'file');
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$nt = time();
|
$nt = time();
|
||||||
@ -192,7 +191,7 @@ class Article extends BaseController
|
|||||||
//通用右栏
|
//通用右栏
|
||||||
$ad_comm = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',2)->whereTime('slid_over','>=',time())->select();
|
$ad_comm = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',2)->whereTime('slid_over','>=',time())->select();
|
||||||
|
|
||||||
View::assign(['article'=>$article,'pv'=>$pv,'comments'=>$comments,'artHot'=>$artHot,'ad_art'=>$ad_article,'ad_comm'=>$ad_comm,$download]);
|
View::assign(['article'=>$article,'pv'=>$pv,'comments'=>$comments,'artHot'=>$artHot,'ad_art'=>$ad_article,'ad_comm'=>$ad_comm]);
|
||||||
return View::fetch();
|
return View::fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ return [
|
|||||||
'error_message' => '页面错误!请稍后再试~',
|
'error_message' => '页面错误!请稍后再试~',
|
||||||
// 显示错误信息
|
// 显示错误信息
|
||||||
'show_error_msg' => false,
|
'show_error_msg' => false,
|
||||||
/异常页面模板
|
//异常页面模板
|
||||||
'http_exception_template' => [
|
'http_exception_template' => [
|
||||||
404 => '../view/404.html'
|
404 => '../view/404.html'
|
||||||
]
|
]
|
||||||
|
@ -17,7 +17,7 @@ return [
|
|||||||
// 是否使用背景图
|
// 是否使用背景图
|
||||||
'useImgBg' => false,
|
'useImgBg' => false,
|
||||||
//验证码字符大小
|
//验证码字符大小
|
||||||
'fontSize' => 25,
|
'fontSize' => 14,
|
||||||
// 是否使用混淆曲线
|
// 是否使用混淆曲线
|
||||||
'useCurve' => true,
|
'useCurve' => true,
|
||||||
//是否添加杂点
|
//是否添加杂点
|
||||||
|
Loading…
Reference in New Issue
Block a user