作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

部署到线上

@@ -99,6 +99,8 @@ class SlideItemController extends AdminBaseController @@ -99,6 +99,8 @@ class SlideItemController extends AdminBaseController
99 { 99 {
100 $id = $this->request->param('id'); 100 $id = $this->request->param('id');
101 $result = Db::name('slideItem')->where(['id' => $id])->find(); 101 $result = Db::name('slideItem')->where(['id' => $id])->find();
  102 + $activity = Db::name('activity')->where(array('delete_time'=>0,'is_up'=>1))->order('create_time desc')->select();
  103 + $this->assign('activity', $activity);
102 104
103 $this->assign('result', $result); 105 $this->assign('result', $result);
104 $this->assign('slide_id', $result['slide_id']); 106 $this->assign('slide_id', $result['slide_id']);