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
29fb61ef
Commit
29fb61ef
authored
Sep 20, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "update"
This reverts commit
5fc0e77d
parent
5fc0e77d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
AwardJob.php
h5/job/AwardJob.php
+4
-2
JugdeAwardJob.php
h5/job/JugdeAwardJob.php
+3
-2
No files found.
h5/job/AwardJob.php
View file @
29fb61ef
...
...
@@ -37,9 +37,10 @@ class AwardJob extends BaseObject implements JobInterface
$result
=
Chain33Business
::
transToken
(
$this
->
from
,
$this
->
to
,
$this
->
amount
,
$this
->
note
,
$this
->
is_token
,
$this
->
token
);
if
(
is_string
(
$result
))
{
//派奖记录到数据库中
print
(
"派奖成功! 奖励[
{
$this
->
to
}
][
$this->token
][
$this->amount
]个
\n
"
);
Yii
::
info
(
"派奖成功! 奖励[
{
$this
->
to
}
][
$this->token
][
$this->amount
]个"
,
__CLASS__
);
}
else
{
print
(
"失败的派奖: [to]:
{
$this
->
to
}
, [amount]:
{
$this
->
amount
}
, [is_token] :
{
$this
->
is_token
}
, [token]:
{
$this
->
token
}
\n
"
);
Yii
::
info
(
"失败的派奖: [to]:
{
$this
->
to
}
, [amount]:
{
$this
->
amount
}
, [is_token] :
{
$this
->
is_token
}
, [token]:
{
$this
->
token
}
"
,
__CLASS__
);
}
}
}
\ No newline at end of file
h5/job/JugdeAwardJob.php
View file @
29fb61ef
...
...
@@ -71,10 +71,11 @@ class JugdeAwardJob extends BaseObject implements JobInterface
}
$guess_result
->
is_award
=
1
;
if
(
$guess_result
->
save
())
{
print
(
"第
{
$guess_result
->
stage
}
期开奖成功
\n
"
);
Yii
::
info
(
"第
{
$guess_result
->
stage
}
期开奖成功"
,
__CLASS__
);
}
else
{
print
(
"第
{
$guess_result
->
stage
}
期开奖成功, 修改竞猜开奖情况失败
\n
"
);
Yii
::
warning
(
"第
{
$guess_result
->
stage
}
期开奖成功, 修改竞猜开奖情况失败"
,
__CLASS__
);
}
print
"ok
\n
"
;
}
else
{
$loop
=
false
;
}
...
...
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