diff --git a/application/mobile/controller/Index.php b/application/mobile/controller/Index.php index 38f4296..4a3a483 100644 --- a/application/mobile/controller/Index.php +++ b/application/mobile/controller/Index.php @@ -49,14 +49,7 @@ class Index extends Api "name": "", //考试名称 "nickname": "", //昵称 "countdown": 26 //距离考试倒计时天数 - }, - "news_list": [{ //报考资讯列表 - "id": 1, //资讯ID - "cover": "", //封面图 - "title": "关于建造师", //标题 - "createtime": "1970.01.01", //发布时间 - "read_num": 120 //浏览量 - }] + } } }) */ @@ -82,12 +75,7 @@ class Index extends Api } // 轮播图 $banner_list = IndexBanner::order('createtime desc')->field('id,image,url')->select(); - // 报考资讯 - $news_list = News::order('createtime desc')->select(); - foreach ($news_list as $value) { - $value->visible(['id','cover','title','read_num','createtime']); - } - $this->success('成功',compact('exam_list','banner_list','exam','news_list')); + $this->success('成功',compact('exam_list','banner_list','exam')); } /** diff --git a/public/mobile.html b/public/mobile.html index ed6af1c..30cd254 100644 --- a/public/mobile.html +++ b/public/mobile.html @@ -538,14 +538,7 @@ "name": "", //考试名称 "nickname": "", //昵称 "countdown": 26 //距离考试倒计时天数 - }, - "news_list": [{ //报考资讯列表 - "id": 1, //资讯ID - "cover": "", //封面图 - "title": "关于建造师", //标题 - "createtime": "1970.01.01", //发布时间 - "read_num": 120 //浏览量 - }] + } } }</pre> </div> @@ -16072,7 +16065,7 @@ <div class="row mt0 footer"> <div class="col-md-6" align="left"> - Generated on 2020-09-23 13:35:34 </div> + Generated on 2020-09-23 17:29:01 </div> <div class="col-md-6" align="right"> <a href="./" target="_blank">企智帮</a> </div>