巡乐会并发预防添加

This commit is contained in:
2025-11-10 17:18:50 +08:00
parent e96a8c8b4c
commit f1c9081457

View File

@@ -929,6 +929,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
$this->updateAndPushXlhStatus($room_id, $xlh_ext);
}
private function handleXlhPiaoPing($room_id, $xlh_ext, $xlhIsPiaoPing){
$pan_xlh_old = db::name('vs_room_pan_xlh')->where(['send_time' => 0])->order('id desc')->find(); //防止并发创建多个
if($pan_xlh_old){
return true;
}
if($xlhIsPiaoPing == 1){
// 即将开始推送飘屏
$text = "巡乐会即将开始...";