作者 景琛

倒计时结束,大屏修改

... ... @@ -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);
}
... ...
... ... @@ -6324,7 +6324,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2023-04-26 09:48:47 <a href="./" target="_blank">校园活动</a>
Generated on 2023-05-15 09:52:26 <a href="./" target="_blank">校园活动</a>
</div>
</div>
... ...