Merge pull request #143 from 0x012FA733/todo

[fix] GiftSend
This commit is contained in:
lkeme 2021-11-26 01:20:58 +08:00 committed by GitHub
commit b5e75eb1eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}