爆币
This commit is contained in:
@@ -146,7 +146,8 @@ class Lottery extends Model
|
|||||||
//不做处理
|
//不做处理
|
||||||
} else {//开奖
|
} else {//开奖
|
||||||
$beilv = floor($result['small_prize_amount'] / $gift_price);
|
$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){
|
if(!$wallet_update){
|
||||||
return ['code' => 0, 'msg' => '流水记录失败', 'data' => null];
|
return ['code' => 0, 'msg' => '流水记录失败', 'data' => null];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ class LotteryService
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$winnerUid = $send_uid; // 奖默认给当前送礼用户
|
$winnerUid = $send_uid; // 奖默认给当前送礼用户
|
||||||
//2.开小奖剩余划入大奖后 大奖够开奖
|
|
||||||
// 小奖中奖记录
|
// 小奖中奖记录
|
||||||
$this->addWinnerRecord(
|
$this->addWinnerRecord(
|
||||||
$winnerUid,
|
$winnerUid,
|
||||||
|
|||||||
Reference in New Issue
Block a user