This commit is contained in:
toogee 2020-06-19 16:45:45 +08:00
parent e8ffd4f003
commit e23274ebd4
3 changed files with 3 additions and 4 deletions

View File

@ -168,7 +168,6 @@ class Article extends BaseController
$comments = $article->comments()->where('status',1)->order(['cai'=>'asc','create_time'=>'asc'])->paginate(10);
$article->inc('pv')->update();
$pv = Db::name('article')->field('pv')->where('id',$id)->value('pv');
$download = download($article->upzip,'file');
/*
$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();
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();
}

View File

@ -31,7 +31,7 @@ return [
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
/异常页面模板
//异常页面模板
'http_exception_template' => [
404 => '../view/404.html'
]

View File

@ -17,7 +17,7 @@ return [
// 是否使用背景图
'useImgBg' => false,
//验证码字符大小
'fontSize' => 25,
'fontSize' => 14,
// 是否使用混淆曲线
'useCurve' => true,
//是否添加杂点