params['lottery']; $period_num = $lottery_config['period_num']; $response_ = new ResponseBuild(); $data = CoinLottery::getLastRecord(); $data['end_round'] = $period_num - $data['stage'] + $data['round']; $response_->build(ResponseBuild::STATUS_SUCCEED, '', $data); return $response_; } /** * @return ResponseBuild * 新时时彩最近一期详情 */ 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_; } }