Commit 08796a95 authored by rlgy's avatar rlgy

BTY行情

parent 893ad29f
...@@ -54,7 +54,7 @@ class CoinBusiness ...@@ -54,7 +54,7 @@ class CoinBusiness
foreach ($datas as $key => $value) { foreach ($datas as $key => $value) {
//获取行情信息 //获取行情信息
if (strtoupper($value['name']) == 'BTY') { if (strtoupper($value['name']) == 'BTY') {
$rows['data'][$key]['exchange'] = CoinService::quotationBTY(); $rows['data'][$key]['quotation'] = CoinService::quotationBTY();
} }
$rows['data'][$key]['quotation'] = CoinService::quotation($value['sid']); $rows['data'][$key]['quotation'] = CoinService::quotation($value['sid']);
} }
......
...@@ -165,8 +165,8 @@ class CoinService ...@@ -165,8 +165,8 @@ class CoinService
$result['rank'] = '第' . $content['rank'] . '名'; $result['rank'] = '第' . $content['rank'] . '名';
$result['price'] = $content['price_display']; $result['price'] = $content['price_display'];
$result['dollar'] = sprintf("$%0.2f", $content['price_usd']); $result['dollar'] = sprintf("$%0.6f", $content['price_usd']);
$result['change'] = sprintf("%0.2f%%", $content['percent_change_display']); $result['change'] = sprintf("%0.6f%%", $content['percent_change_display']);
} }
return $result; return $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