Commit 5be45e39 authored by ZhuChunYang's avatar ZhuChunYang

update

parent f58b69a3
...@@ -62,7 +62,7 @@ class LotteryController extends Controller ...@@ -62,7 +62,7 @@ class LotteryController extends Controller
if($last_header['height'] >= $start_height + $lottery_config['period_total_step']){ //超过起始高度40个区块可以开奖 if($last_header['height'] >= $start_height + $lottery_config['period_total_step']){ //超过起始高度40个区块可以开奖
$lottery_result = LotteryBusiness::lottery(); $lottery_result = LotteryBusiness::lottery();
if($lottery_result['code'] == 0){ //如果开奖操作成功 if($lottery_result['code'] == 0){ //如果开奖操作成功
echo date('Y-m-d H:i:s').': '.'开奖成功: '.PHP_EOL; echo date('Y-m-d H:i:s').': '.'开奖成功 '.PHP_EOL;
}else{ }else{
echo date('Y-m-d H:i:s').': '.'开奖异常: '.$lottery_result['msg'].PHP_EOL; echo date('Y-m-d H:i:s').': '.'开奖异常: '.$lottery_result['msg'].PHP_EOL;
} }
...@@ -122,7 +122,7 @@ class LotteryController extends Controller ...@@ -122,7 +122,7 @@ class LotteryController extends Controller
} }
}catch (\Exception $e){ }catch (\Exception $e){
echo date('Y-m-d H:i:s').': '.'异常: '.$e->getMessage().PHP_EOL; echo date('Y-m-d H:i:s').': '.'异常: '.$e->getMessage().PHP_EOL;
sleep(2); sleep(10);
} }
} }
Yii::$app->redis_app->set('lottery_status','ending'); Yii::$app->redis_app->set('lottery_status','ending');
......
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