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
fedccb4d
Commit
fedccb4d
authored
Aug 06, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账单
parent
b4e2312e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BillController.php
api/controllers/BillController.php
+4
-4
No files found.
api/controllers/BillController.php
View file @
fedccb4d
...
@@ -28,13 +28,13 @@ class BillController extends BaseController
...
@@ -28,13 +28,13 @@ class BillController extends BaseController
if
(
$model
->
save
(
false
))
{
if
(
$model
->
save
(
false
))
{
//加入队列
//加入队列
Yii
::
$app
->
queue
->
push
(
new
BillJob
([
'id'
=>
$model
->
id
,
'txid'
=>
$model
->
txid
,
'chain'
=>
$model
->
chain
,
'from'
=>
$model
->
from
]));
Yii
::
$app
->
queue
->
push
(
new
BillJob
([
'id'
=>
$model
->
id
,
'txid'
=>
$model
->
txid
,
'chain'
=>
$model
->
chain
,
'from'
=>
$model
->
from
]));
return
[
'code'
=>
0
,
'm
essage
'
=>
'succeed'
];
return
[
'code'
=>
0
,
'm
sg
'
=>
'succeed'
];
}
}
}
catch
(
\Exception
$exception
)
{
}
catch
(
\Exception
$exception
)
{
return
[
'code'
=>
$exception
->
getCode
(),
'm
essage
'
=>
'保存失败'
];
return
[
'code'
=>
$exception
->
getCode
(),
'm
sg
'
=>
'保存失败'
];
}
}
}
else
{
}
else
{
return
[
'code'
=>
-
1
,
'm
essage
'
=>
'数据验证失败'
];
return
[
'code'
=>
-
1
,
'm
sg
'
=>
'数据验证失败'
];
}
}
}
}
...
@@ -47,7 +47,7 @@ class BillController extends BaseController
...
@@ -47,7 +47,7 @@ class BillController extends BaseController
$page
=
$post
[
'$page'
]
??
1
;
$page
=
$post
[
'$page'
]
??
1
;
$limit
=
$post
[
'limit'
]
??
10
;
$limit
=
$post
[
'limit'
]
??
10
;
if
(
empty
(
$from
))
{
if
(
empty
(
$from
))
{
return
[
'code'
=>
-
1
,
'm
essage
'
=>
'数据不存在'
];
return
[
'code'
=>
-
1
,
'm
sg
'
=>
'数据不存在'
];
}
}
$condition
=
[
'AND'
];
$condition
=
[
'AND'
];
if
(
!
empty
(
$coinname
))
{
if
(
!
empty
(
$coinname
))
{
...
...
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