Commit 3b4e74c9 authored by shajiaiming's avatar shajiaiming

fix

parent 91335aac
...@@ -26,26 +26,26 @@ class ExchangeBusiness ...@@ -26,26 +26,26 @@ class ExchangeBusiness
* @var array * @var array
*/ */
private static $exchanges = [ private static $exchanges = [
0 => 'Bty', // 0 => 'Bty',
1 => 'HuoBi', // 1 => 'HuoBi',
2 => 'Hadax', // 2 => 'Hadax',
3 => 'Bitfinex', // 3 => 'Bitfinex',
4 => 'Bittrex', // 4 => 'Bittrex',
5 => 'Zb', // 5 => 'Zb',
6 => 'Token7', // 6 => 'Token7',
7 => 'Zg', // 7 => 'Zg',
8 => 'Go', // 8 => 'Go',
9 => 'Zhaobi', // 9 => 'Zhaobi',
10 => 'Ex', // 10 => 'Ex',
11 => 'Zt', // 11 => 'Zt',
12 => 'Tsc', // 12 => 'Tsc',
13 => 'Binance', // 13 => 'Binance',
14 => 'Bilaxy', // 14 => 'Bilaxy',
15 => 'Bitnasdaq', // 15 => 'Bitnasdaq',
16 => 'Dag', // 16 => 'Dag',
17 => 'Coinka', // 17 => 'Coinka',
18 => 'Isummit', 18 => 'Isummit',
19 => 'Boc', // 19 => 'Boc',
//1 => 'Hadax', //不需要 //1 => 'Hadax', //不需要
...@@ -347,6 +347,10 @@ class ExchangeBusiness ...@@ -347,6 +347,10 @@ class ExchangeBusiness
if (in_array(strtoupper($tag), ['FOLI', 'CIC', 'KPC8', 'BVA', 'DAG', 'BNC', 'GHP', 'DRA', 'ETC', 'PAX', 'STH', 'XJH', 'SFT', 'TSC', 'SUM', 'USDW', 'FUT'])) { if (in_array(strtoupper($tag), ['FOLI', 'CIC', 'KPC8', 'BVA', 'DAG', 'BNC', 'GHP', 'DRA', 'ETC', 'PAX', 'STH', 'XJH', 'SFT', 'TSC', 'SUM', 'USDW', 'FUT'])) {
$quotation['usd'] = (float)sprintf("%0.4f", $quotation['last']); $quotation['usd'] = (float)sprintf("%0.4f", $quotation['last']);
$quotation['rmb'] = (float)sprintf("%0.4f", $quotation['last'] / $cny_usd_rate); $quotation['rmb'] = (float)sprintf("%0.4f", $quotation['last'] / $cny_usd_rate);
$quotation['low'] = (float)sprintf("%0.4f", $quotation['low']);
$quotation['high'] = (float)sprintf("%0.4f", $quotation['high']);
$quotation['last'] = (float)sprintf("%0.4f", $quotation['last']);
$quotation['open'] = (float)sprintf("%0.4f", $quotation['open']);
} else if (in_array(strtoupper($tag), ['SUSD'])) { } else if (in_array(strtoupper($tag), ['SUSD'])) {
$quotation['usd'] = (float)sprintf("%0.4f", 1); $quotation['usd'] = (float)sprintf("%0.4f", 1);
} else { } else {
......
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