Commit 32741b93 authored by rlgy's avatar rlgy

update

parent 261b77ab
...@@ -33,9 +33,12 @@ class CoinBusiness ...@@ -33,9 +33,12 @@ class CoinBusiness
$datas = $rows['data']; $datas = $rows['data'];
foreach ($datas as $key => $value) { foreach ($datas as $key => $value) {
//获取交易所信息 //获取交易所信息
$coin = CoinFactory::createCoin($value['name'], $value['id'], $value['sid']); try {
$rows['data'][$key]['exchange'] = $coin->exchange_count(); $coin = CoinFactory::createCoin($value['name'], $value['id'], $value['sid']);
$coin->__destruct(); $rows['data'][$key]['exchange'] = $coin->exchange_count();
} catch (\Exception $exception) {
$rows['data'][$key]['exchange'] = 0;
}
} }
} }
return $rows; return $rows;
......
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