Commit c4fe2920 authored by rlgy's avatar rlgy

update

parent c9cd3a3b
......@@ -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'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment