diff --git a/application/api/model/Lottery.php b/application/api/model/Lottery.php index 65fe5238..287ca324 100644 --- a/application/api/model/Lottery.php +++ b/application/api/model/Lottery.php @@ -154,7 +154,7 @@ class Lottery extends Model if ($result['is_big_prize'] == 1) {//$result['big_prize_amount'],//中奖金额 $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.'倍'); - $wallet_update = model('api/UserWallet')->change_user_earnings_log($send_uid,$result['big_prize_amount'],$room_id,58,'参与幸运币活动获得'.$beilv.'倍'); + $wallet_update = model('api/UserWallet')->change_user_cion_log($send_uid,$result['big_prize_amount'],$room_id,58,'参与幸运币活动获得'.$beilv.'倍'); if(!$wallet_update){ return ['code' => 0, 'msg' => '流水记录失败', 'data' => null]; } @@ -166,7 +166,7 @@ class Lottery extends Model } else { // 小奖 $result['small_prize_amount'],//中奖金额 $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.'倍'); - $wallet_update = model('api/UserWallet')->change_user_earnings_log($send_uid,$result['small_prize_amount'],$room_id,58,'参与幸运币活动获得'.$beilv.'倍'); + $wallet_update = model('api/UserWallet')->change_user_cion_log($send_uid,$result['small_prize_amount'],$room_id,58,'参与幸运币活动获得'.$beilv.'倍'); if(!$wallet_update){ return ['code' => 0, 'msg' => '流水记录失败', 'data' => null]; }