Commit 2eecdfc7 authored by ZhuChunYang's avatar ZhuChunYang

update

parent b90bb4be
......@@ -207,7 +207,7 @@ class CoinController extends BaseController
$chain_quotation[$value] = ExchangeBusiness::getquatation($value);
}
foreach ($result['data'] as $key => &$value) {
$value['chain_quotation'] = $chain_quotation[$value['chain']];
$value['chain_quotation'] = $chain_quotation[$value['chain']] ?: null;
}
return $result;
}
......@@ -253,7 +253,7 @@ class CoinController extends BaseController
$chain_quotation[$value] = ExchangeBusiness::getquatation($value);
}
foreach ($result as $key => $value) {
$result[$key]['chain_quotation'] = $chain_quotation[$value['chain']];
$result[$key]['chain_quotation'] = $chain_quotation[$value['chain']] ?: null;
}
return ['code' => 0, 'count' => $total, 'data' => $result];
}
......
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