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;