This commit is contained in:
2026-01-26 17:38:07 +08:00
parent 1212473b9e
commit 8b28b1c96e
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,8 @@ class Lottery extends Model
//不做处理
} else {//开奖
$beilv = floor($result['small_prize_amount'] / $gift_price);
$wallet_update = model('api/UserWallet')->change_user_cion_log($send_uid,$result['small_prize_amount'],$room_id,58,'参与幸运币活动获得'.$beilv.'倍');
$small_prize_amount = floor($result['small_prize_amount']);
$wallet_update = model('api/UserWallet')->change_user_cion_log($send_uid,$small_prize_amount,$room_id,58,'参与幸运币活动获得'.$beilv.'倍');
if(!$wallet_update){
return ['code' => 0, 'msg' => '流水记录失败', 'data' => null];
}

View File

@@ -149,7 +149,6 @@ class LotteryService
);
} else {
$winnerUid = $send_uid; // 奖默认给当前送礼用户
//2.开小奖剩余划入大奖后 大奖够开奖
// 小奖中奖记录
$this->addWinnerRecord(
$winnerUid,