mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 01:20:08 +08:00
[fix] GiftSend closed #127
This commit is contained in:
parent
106eac15cb
commit
1849ccbf9a
@ -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);
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user