作者 景琛

倒计时结束,大屏修改

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