爆币
This commit is contained in:
@@ -24,7 +24,7 @@ class Lottery extends adminApi
|
|||||||
public function _initialize()
|
public function _initialize()
|
||||||
{
|
{
|
||||||
parent::_initialize();
|
parent::_initialize();
|
||||||
$this->redis = Cache::store('redis')->handler();
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* 配置列表
|
* 配置列表
|
||||||
@@ -53,7 +53,7 @@ class Lottery extends adminApi
|
|||||||
];
|
];
|
||||||
db::name("bb_lottery_config")->where(['key'=>$k])->update($data);
|
db::name("bb_lottery_config")->where(['key'=>$k])->update($data);
|
||||||
}
|
}
|
||||||
|
$this->redis = Cache::store('redis')->handler();
|
||||||
$prize_amount = $this->redis->get('lottery:small_pool:total_gold');
|
$prize_amount = $this->redis->get('lottery:small_pool:total_gold');
|
||||||
|
|
||||||
Db::name('bb_lottery_winner_record')->insert([
|
Db::name('bb_lottery_winner_record')->insert([
|
||||||
|
|||||||
Reference in New Issue
Block a user