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
09dede81
Commit
09dede81
authored
Nov 01, 2018
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7e766367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
LotteryController.php
console/controllers/LotteryController.php
+2
-2
No files found.
console/controllers/LotteryController.php
View file @
09dede81
...
@@ -48,7 +48,7 @@ class LotteryController extends Controller
...
@@ -48,7 +48,7 @@ class LotteryController extends Controller
}
}
$last_header
=
$last_header
[
'result'
];
$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期并且开完奖
if
(
$last
&&
$last
->
stage
==
$lottery_config
[
'period_num'
]
&&
$last
->
status
==
3
){
//达到80期并且开完奖
echo
date
(
'Y-m-d H:i:s'
)
.
': '
.
'今天彩票期数已达到80期,下期明天10点不见不散'
.
PHP_EOL
;
echo
date
(
'Y-m-d H:i:s'
)
.
': '
.
'今天彩票期数已达到80期,下期明天10点不见不散'
.
PHP_EOL
;
Yii
::
$app
->
redis_app
->
set
(
'lottery_status'
,
'ending'
);
Yii
::
$app
->
redis_app
->
set
(
'lottery_status'
,
'ending'
);
...
@@ -148,7 +148,7 @@ class LotteryController extends Controller
...
@@ -148,7 +148,7 @@ class LotteryController extends Controller
public
function
actionLotteryLuckyNumber
()
public
function
actionLotteryLuckyNumber
()
{
{
$res
=
LotteryBusiness
::
getLuckyNumber
(
(
int
)
206
);
$res
=
LotteryBusiness
::
getLuckyNumber
(
206
);
var_dump
(
$res
);
var_dump
(
$res
);
}
}
...
...
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