Skip to content

Commit

Permalink
[fix] GiftSend
Browse files Browse the repository at this point in the history
  • Loading branch information
0x012FA733 committed Nov 25, 2021
1 parent 36f2c28 commit eb6eae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugin/GiftSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ protected static function calcAmt(array $gift, int $surplus_num): int
if ($gift['gift_id'] == 6) {
$amt = (floor($surplus_num / 10) > $gift['gift_num']) ? $gift['gift_num'] : floor($surplus_num / 10);
}
if ($gift['gift_id'] == 30607) {
$amt = (floor($surplus_num / 50) > $gift['gift_num']) ? $gift['gift_num'] : floor($surplus_num / 50);
}
return ($amt < 1) ? 1 : $amt;
}

Expand Down

0 comments on commit eb6eae6

Please sign in to comment.