Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
16f025e4
Commit
16f025e4
authored
Dec 14, 2018
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9da8c83d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
LotteryController.php
h5/controllers/LotteryController.php
+14
-2
No files found.
h5/controllers/LotteryController.php
View file @
16f025e4
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
namespace
h5\controllers
;
namespace
h5\controllers
;
use
common\models\psources\CoinLottery
;
use
common\models\psources\CoinLottery
;
use
common\models\psources\CoinNewLottery
;
use
h5\base\ResponseBuild
;
use
h5\base\ResponseBuild
;
use
Yii
;
use
Yii
;
use
h5\base\BaseController
;
use
h5\base\BaseController
;
...
@@ -30,4 +31,16 @@ class LotteryController extends BaseController
...
@@ -30,4 +31,16 @@ class LotteryController extends BaseController
$response_
->
build
(
ResponseBuild
::
STATUS_SUCCEED
,
''
,
$data
);
$response_
->
build
(
ResponseBuild
::
STATUS_SUCCEED
,
''
,
$data
);
return
$response_
;
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_
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment