Commit 0a2e955c authored by shajiaiming's avatar shajiaiming

add return column

parent 1124f57f
...@@ -95,6 +95,7 @@ class RecommendCoinController extends BaseController ...@@ -95,6 +95,7 @@ class RecommendCoinController extends BaseController
unset($category['id']); unset($category['id']);
$items = []; $items = [];
foreach ($recommend_coin as $coin) { foreach ($recommend_coin as $coin) {
$temp['id'] = $coin->coin['id'];
$temp['icon'] = $coin->coin['icon']; $temp['icon'] = $coin->coin['icon'];
$temp['name'] = $coin->coin['name']; $temp['name'] = $coin->coin['name'];
$temp['platform'] = $coin->coin['platform']; $temp['platform'] = $coin->coin['platform'];
...@@ -113,6 +114,7 @@ class RecommendCoinController extends BaseController ...@@ -113,6 +114,7 @@ class RecommendCoinController extends BaseController
$data = []; $data = [];
if (false != $supported_chain_model) { if (false != $supported_chain_model) {
foreach ($supported_chain_model as $key => &$val) { foreach ($supported_chain_model as $key => &$val) {
$data[$key]['id'] = isset($val->coin->id) ? $val->coin->id : '';
$data[$key]['icon'] = isset($val->coin->icon) ? $val->coin->icon : ''; $data[$key]['icon'] = isset($val->coin->icon) ? $val->coin->icon : '';
$data[$key]['name'] = isset($val->coin->name) ? $val->coin->name : ''; $data[$key]['name'] = isset($val->coin->name) ? $val->coin->name : '';
$data[$key]['platform'] = isset($val->coin->platform) ? $val->coin->platform : ''; $data[$key]['platform'] = isset($val->coin->platform) ? $val->coin->platform : '';
......
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