Commit 16f025e4 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 9da8c83d
......@@ -8,6 +8,7 @@
namespace h5\controllers;
use common\models\psources\CoinLottery;
use common\models\psources\CoinNewLottery;
use h5\base\ResponseBuild;
use Yii;
use h5\base\BaseController;
......@@ -30,4 +31,16 @@ class LotteryController extends BaseController
$response_->build(ResponseBuild::STATUS_SUCCEED, '', $data);
return $response_;
}
}
\ No newline at end of file
public function actionNewLotteryInfo()
{
$lottery_config = Yii::$app->params['lottery'];
$period_num = $lottery_config['period_num'];
$response_ = new ResponseBuild();
$data = CoinNewLottery::getLastRecord();
$data['end_round'] = $period_num - $data['stage'] + $data['round'];
$response_->build(ResponseBuild::STATUS_SUCCEED, '', $data);
return $response_;
}
}
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