Commit 32741b93 authored by rlgy's avatar rlgy

update

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