diff --git a/app/index/controller/Article.php b/app/index/controller/Article.php index a56f6c3..d389554 100644 --- a/app/index/controller/Article.php +++ b/app/index/controller/Article.php @@ -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(); } diff --git a/config/app.php b/config/app.php index a879c36..db4eedf 100644 --- a/config/app.php +++ b/config/app.php @@ -31,7 +31,7 @@ return [ 'error_message' => '页面错误!请稍后再试~', // 显示错误信息 'show_error_msg' => false, - /异常页面模板 + //异常页面模板 'http_exception_template' => [ 404 => '../view/404.html' ] diff --git a/config/captcha.php b/config/captcha.php index 5041a89..64537a1 100644 --- a/config/captcha.php +++ b/config/captcha.php @@ -17,7 +17,7 @@ return [ // 是否使用背景图 'useImgBg' => false, //验证码字符大小 - 'fontSize' => 25, + 'fontSize' => 14, // 是否使用混淆曲线 'useCurve' => true, //是否添加杂点