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
67f52b1e
Commit
67f52b1e
authored
Sep 27, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
531ae8f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
GuodunController.php
h5/controllers/GuodunController.php
+21
-19
No files found.
h5/controllers/GuodunController.php
View file @
67f52b1e
...
@@ -134,25 +134,28 @@ class GuodunController extends BaseController
...
@@ -134,25 +134,28 @@ class GuodunController extends BaseController
public
function
actionBillList
()
public
function
actionBillList
()
{
{
$response
=
new
ResponseBuild
();
$response
=
new
ResponseBuild
();
$post
=
Yii
::
$app
->
request
->
post
();
$post
=
Yii
::
$app
->
request
->
post
();
$page
=
$post
[
'page'
]
??
1
;
$page
=
$post
[
'page'
]
??
1
;
$limit
=
$post
[
'limit'
]
??
10
;
$limit
=
$post
[
'limit'
]
??
10
;
$type
=
$post
[
'type'
]
??
''
;
//类型,1提币,2锁仓释放
$type
=
$post
[
'type'
]
??
''
;
//类型,1提币,2锁仓释放
$mobile
=
$post
[
'mobile'
]
??
''
;
$mobile
=
$post
[
'mobile'
]
??
''
;
$id
=
$post
[
'id'
]
??
0
;
if
(
empty
(
$id
))
{
if
(
empty
(
$mobile
))
{
if
(
empty
(
$mobile
))
{
$response
->
build
(
ResponseBuild
::
STATUS_PARAMS_NOT_VALIDATE
);
$response
->
build
(
ResponseBuild
::
STATUS_PARAMS_NOT_VALIDATE
);
return
$response
;
return
$response
;
}
}
$conditions
=
[
'mobile'
=>
$mobile
];
$conditions
=
[
'mobile'
=>
$mobile
];
if
(
$type
)
{
if
(
$type
)
{
$conditions
[
'type'
]
=
$type
;
$conditions
[
'type'
]
=
$type
;
}
$datas
=
CoinReleaseList
::
getList2
(
$page
,
$limit
,
$conditions
,
[
'create_time'
=>
SORT_ASC
]);
$response
->
build
(
ResponseBuild
::
STATUS_SUCCEED
,
''
,
$datas
);
}
else
{
$conditions
=
[
'id'
=>
$id
];
$datas
=
CoinReleaseList
::
getList2
(
1
,
1
,
$conditions
,
[
'create_time'
=>
SORT_ASC
]);
$response
->
build
(
ResponseBuild
::
STATUS_SUCCEED
,
''
,
$datas
);
}
}
$datas
=
CoinReleaseList
::
getList2
(
$page
,
$limit
,
$conditions
,
[
'create_time'
=>
SORT_ASC
]);
$response
->
build
(
ResponseBuild
::
STATUS_SUCCEED
,
''
,
$datas
);
return
$response
;
return
$response
;
}
}
}
}
\ No newline at end of file
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