[fix] GiftSend closed #127

This commit is contained in:
Lkeme 2021-10-24 17:55:38 +08:00
parent 106eac15cb
commit 1849ccbf9a
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class Barrage
}
self::setPauseStatus();
if (self::sendMsg()) {
self::setLock(mt_rand(180, 240) * 60);
self::setLock(mt_rand(240, 300) * 60);
return;
}
self::setLock(15 * 60);

View File

@ -73,8 +73,8 @@ class GiftSend
}
$current_intimacy = 0;
foreach ($bag_list as $gift) {
// 是辣条、亿元 && 不是过期礼物
if (!in_array($gift['gift_id'], [1, 6])) {
// 是辣条、亿元 && 不是过期礼物 加入小心心,暂不清楚是否有逻辑冲突
if (!in_array($gift['gift_id'], [1, 6, 30607])) {
continue;
}
Log::notice("直播间 $room_id 需赠送亲密度 $total_intimacy 剩余亲密度 " . ($total_intimacy - $current_intimacy));