[fix] GiftSend

This commit is contained in:
0x012FA733 2021-11-25 16:28:12 +08:00
parent 1baae21060
commit 6f3ea08085

View File

@ -248,6 +248,9 @@ class GiftSend
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;
}