From 6e81a0942fff47c2632f45f7efe15da72dc74f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sun, 21 Dec 2025 18:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=86=E5=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Lottery.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/api/model/Lottery.php b/application/api/model/Lottery.php index 466cbcfe..30993a23 100644 --- a/application/api/model/Lottery.php +++ b/application/api/model/Lottery.php @@ -141,22 +141,23 @@ class Lottery extends Model } else {//开奖 // 大奖 if ($result['is_big_prize'] == 1) {//$result['big_prize_amount'],//中奖金额 - $wallet_update = model('api/GiveGift')->change_user_cion_or_earnings_log($send_uid,$result['big_prize_amount'],$room_id,1,58,'用户幸运币爆大币'); + $beilv = floor($result['big_prize_amount'] / $gift_price); + $wallet_update = model('api/GiveGift')->change_user_cion_or_earnings_log($send_uid,$result['big_prize_amount'],$room_id,1,58,'参与幸运币活动获得'.$beilv.'倍'); if(!$wallet_update){ return ['code' => 0, 'msg' => '流水记录失败', 'data' => null]; } - $beilv = floor($result['big_prize_amount'] / $gift_price); + $tet['text'] = '恭喜用户'.$fromUserInfo['nickname'].'在幸运币活动中获得幸运币'.$beilv.'倍'; $tet['type'] = 1; $tet['beilv'] = $beilv; $tet['play_image'] = 'https://cos.xscmmidi.site/admin/4676520chepiao_17613610239812.mp4'; } else { // 小奖 $result['small_prize_amount'],//中奖金额 - $wallet_update = model('api/GiveGift')->change_user_cion_or_earnings_log($send_uid,$result['small_prize_amount'],$room_id,1,58,'用户幸运币爆小币'); + $beilv = floor($result['small_prize_amount'] / $gift_price); + $wallet_update = model('api/GiveGift')->change_user_cion_or_earnings_log($send_uid,$result['small_prize_amount'],$room_id,1,58,'参与幸运币活动获得'.$beilv.'倍'); if(!$wallet_update){ return ['code' => 0, 'msg' => '流水记录失败', 'data' => null]; } - $beilv = floor($result['small_prize_amount'] / $gift_price); $tet['text'] = '恭喜用户'.$fromUserInfo['nickname'].'在幸运币活动中获得幸运币'.$beilv.'倍'; $tet['type'] = 2; $tet['beilv'] = $beilv;