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
c4fe2920
Commit
c4fe2920
authored
6 years ago
by
rlgy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c9cd3a3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
CoinController.php
api/controllers/CoinController.php
+9
-0
No files found.
api/controllers/CoinController.php
View file @
c4fe2920
...
...
@@ -48,7 +48,16 @@ class CoinController extends BaseController
$request
=
Yii
::
$app
->
request
;
$page
=
$request
->
post
(
'page'
,
1
);
$limit
=
$request
->
post
(
'limit'
,
999
);
$platform_ids
=
$request
->
post
(
'platform_id'
,
null
);
$condition
=
[[
'>'
,
'recommend'
,
'0'
]];
if
(
$platform_ids
)
{
$platform_id_arr
=
explode
(
','
,
$platform_ids
);
$condition_arr
=
[
'OR'
];
foreach
(
$platform_id_arr
as
$key
=>
$value
)
{
array_push
(
$condition_arr
,
[
'>'
,
"find_in_set(
$value
, [[platform_id]])"
,
0
]);
}
$condition
[]
=
$condition_arr
;
}
$result
=
ExchangeBusiness
::
getApiListForIndex
(
$page
,
$limit
,
$condition
);
if
(
$result
)
{
$chains
=
array_unique
(
array_column
(
$result
[
'data'
],
'chain'
));
...
...
This diff is collapsed.
Click to expand it.
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