Skip to content

Commit

Permalink
Merge pull request lkeme#135 from 0x012FA733/todo
Browse files Browse the repository at this point in the history
[fix] GiftSend
  • Loading branch information
lkeme committed Oct 27, 2021
2 parents 2bd9604 + ff9c357 commit db492ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/GiftSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected static function procOne(): bool
Log::notice("直播间 $room_id 需赠送亲密度 $total_intimacy 剩余亲密度 " . ($total_intimacy - $current_intimacy));
$amt = self::calcAmt($gift, $total_intimacy - $current_intimacy);
self::sendGift($gift, $amt);
$current_intimacy += ($gift['gift_id'] == 6) ? ($amt * 10) : $amt;
$current_intimacy += ($gift['gift_id'] == 30607) ? ($amt * 50) : (($gift['gift_id'] == 6) ? ($amt * 10) : $amt);
if (!($current_intimacy - $total_intimacy)) {
Log::notice("直播间 $room_id 亲密度 $total_intimacy 送满啦~送满啦~");
break;
Expand Down

0 comments on commit db492ec

Please sign in to comment.