巡乐会并发预防添加
This commit is contained in:
@@ -929,6 +929,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
$this->updateAndPushXlhStatus($room_id, $xlh_ext);
|
$this->updateAndPushXlhStatus($room_id, $xlh_ext);
|
||||||
}
|
}
|
||||||
private function handleXlhPiaoPing($room_id, $xlh_ext, $xlhIsPiaoPing){
|
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){
|
if($xlhIsPiaoPing == 1){
|
||||||
// 即将开始推送飘屏
|
// 即将开始推送飘屏
|
||||||
$text = "巡乐会即将开始...";
|
$text = "巡乐会即将开始...";
|
||||||
|
|||||||
Reference in New Issue
Block a user