...
|
...
|
@@ -54,9 +54,16 @@ class Screen extends Api |
|
|
return $item;
|
|
|
});
|
|
|
if (time() >= $data['endtime']) {
|
|
|
//倒计时结束,清空大屏数据
|
|
|
$find = db('team_score')->where('ronda_id', $data['ronda_id'])->column('team_id');
|
|
|
db('team_score')
|
|
|
->where('ronda_id', $data['ronda_id'])
|
|
|
->update(['score' => 0]);
|
|
|
foreach ($find as $k){
|
|
|
db('team')->where('id',$k)->update(['score'=>0]);
|
|
|
}
|
|
|
$list = null;
|
|
|
$this->success('获取成功', $list);
|
|
|
}
|
|
|
$this->success('获取成功', $list);
|
|
|
}
|
...
|
...
|
|