爆币
This commit is contained in:
@@ -71,7 +71,7 @@ class Lottery extends Model
|
|||||||
if($gift_id == $pool_gift_ids['pool_gift_id_5']){
|
if($gift_id == $pool_gift_ids['pool_gift_id_5']){
|
||||||
$table = 'bb_lottery_gift_record_5';
|
$table = 'bb_lottery_gift_record_5';
|
||||||
$poole_type = 5;
|
$poole_type = 5;
|
||||||
}elseif ($gift_id == $pool_gift_ids['pool_gift_id_10']){
|
}elseif($gift_id == $pool_gift_ids['pool_gift_id_10']){
|
||||||
$table = 'bb_lottery_gift_record_10';
|
$table = 'bb_lottery_gift_record_10';
|
||||||
$poole_type = 10;
|
$poole_type = 10;
|
||||||
}else{
|
}else{
|
||||||
@@ -152,7 +152,7 @@ class Lottery extends Model
|
|||||||
if($poole_type == 5){
|
if($poole_type == 5){
|
||||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'big_prize_play_image'])->value('value');
|
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'big_prize_play_image'])->value('value');
|
||||||
$service = new LotteryService5();
|
$service = new LotteryService5();
|
||||||
}elseif ($poole_type == 10){
|
}elseif($poole_type == 10){
|
||||||
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'gao_prize_play_image'])->value('value');
|
$small_prize_play_image = db::name('bb_lottery_config')->where(['key' => 'gao_prize_play_image'])->value('value');
|
||||||
$service = new LotteryService10();
|
$service = new LotteryService10();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class LotteryService10
|
|||||||
private $redis;
|
private $redis;
|
||||||
// 配置参数
|
// 配置参数
|
||||||
private $config;
|
private $config;
|
||||||
private $bigPrizeWeights;
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@@ -78,7 +77,7 @@ class LotteryService10
|
|||||||
|
|
||||||
|
|
||||||
// 加载Lua脚本
|
// 加载Lua脚本
|
||||||
$luaSha = LotteryGiftLua::getLotteryLuaScript();
|
$luaSha = LotteryGiftLua::getLotteryLuaScript10();
|
||||||
|
|
||||||
// 执行Lua脚本(入参:small_round + big_round)
|
// 执行Lua脚本(入参:small_round + big_round)
|
||||||
$result = $this->redis->eval($luaSha, [
|
$result = $this->redis->eval($luaSha, [
|
||||||
|
|||||||
Reference in New Issue
Block a user