From 1045cf0dcc170957c88d0867b7d804860adb75fe Mon Sep 17 00:00:00 2001
From: 潘浩文 <phw@bronet.cn>
Date: Tue, 23 Oct 2018 15:33:26 +0800
Subject: [PATCH] 1

---
 app/portal/controller/ActiveController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/portal/controller/ActiveController.php b/app/portal/controller/ActiveController.php
index c8cef71..946f905 100644
--- a/app/portal/controller/ActiveController.php
+++ b/app/portal/controller/ActiveController.php
@@ -25,7 +25,7 @@ class ActiveController extends WeChatBaseController
     //活动首页
     public function active(){
         $this->checkUser();
-        $banner=Db::name('active')->where('is_top',1)->field('thumbnail')->select();
+        $banner=Db::name('active')->where('is_top',1)->field('thumbnail,id')->select();
         $this->assign('banner',$banner);
         $data=Db::name('active')->where(['status'=>1,'category_id'=>1])->select();
         $this->assign('list',$data);
--
libgit2 0.24.0