作者 景琛

倒计时结束,大屏修改

@@ -62,11 +62,13 @@ class Screen extends Api @@ -62,11 +62,13 @@ class Screen extends Api
62 foreach ($find as $k){ 62 foreach ($find as $k){
63 db('team')->where('id',$k)->update(['score'=>0]); 63 db('team')->where('id',$k)->update(['score'=>0]);
64 } 64 }
65 - $list['images'] = cdnurl($data['images'], true);  
66 - $list['count_down'] = $data['endtime'];  
67 - $list['screen_name'] = $data['title'];  
68 - $list['campus_name'] = $data['campus'];  
69 - $this->success('获取成功', $list); 65 + $campus = db('screen')->where('is_view', 1)->find();
  66 + $res = [];
  67 + $res['images'] = cdnurl($campus['images'], true);
  68 + $res['count_down'] = $campus['endtime'];
  69 + $res['screen_name'] = $campus['title'];
  70 + $res['campus_name'] = $campus['campus'];
  71 + $this->success('获取成功', $res);
70 } 72 }
71 $this->success('获取成功', $list); 73 $this->success('获取成功', $list);
72 } 74 }