爆币
This commit is contained in:
@@ -147,14 +147,16 @@ class Lottery extends Model
|
||||
//抽奖(不带大奖池)
|
||||
public function lottery($send_uid,$gift_price,$num,$room_id,$giftId,$fromUserInfo=null,$gift_info=null,$poole_type = 1)
|
||||
{
|
||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'small_prize_play_image'])->value('value');
|
||||
try {
|
||||
$gift_gold = $gift_price;
|
||||
if($poole_type == 5){
|
||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'big_prize_play_image'])->value('value');
|
||||
$service = new LotteryService5();
|
||||
}elseif ($poole_type == 10){
|
||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'gao_prize_play_image'])->value('value');
|
||||
$service = new LotteryService10();
|
||||
}else{
|
||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'small_prize_play_image'])->value('value');
|
||||
$service = new LotteryService();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user