Commit 09dede81 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 7e766367
......@@ -48,7 +48,7 @@ class LotteryController extends Controller
}
$last_header = $last_header['result'];
//获取最新竞猜期数以及区块高度
$last = CoinLottery::getMaxStage();
$last = CoinLottery::getMaxStage($start_date);
if($last && $last->stage == $lottery_config['period_num'] && $last->status == 3){ //达到80期并且开完奖
echo date('Y-m-d H:i:s').': '.'今天彩票期数已达到80期,下期明天10点不见不散'.PHP_EOL;
Yii::$app->redis_app->set('lottery_status','ending');
......@@ -148,7 +148,7 @@ class LotteryController extends Controller
public function actionLotteryLuckyNumber()
{
$res = LotteryBusiness::getLuckyNumber((int)206);
$res = LotteryBusiness::getLuckyNumber(206);
var_dump($res);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment