Commit 3b4e74c9 authored by shajiaiming's avatar shajiaiming

fix

parent 91335aac
......@@ -26,26 +26,26 @@ class ExchangeBusiness
* @var array
*/
private static $exchanges = [
0 => 'Bty',
1 => 'HuoBi',
2 => 'Hadax',
3 => 'Bitfinex',
4 => 'Bittrex',
5 => 'Zb',
6 => 'Token7',
7 => 'Zg',
8 => 'Go',
9 => 'Zhaobi',
10 => 'Ex',
11 => 'Zt',
12 => 'Tsc',
13 => 'Binance',
14 => 'Bilaxy',
15 => 'Bitnasdaq',
16 => 'Dag',
17 => 'Coinka',
// 0 => 'Bty',
// 1 => 'HuoBi',
// 2 => 'Hadax',
// 3 => 'Bitfinex',
// 4 => 'Bittrex',
// 5 => 'Zb',
// 6 => 'Token7',
// 7 => 'Zg',
// 8 => 'Go',
// 9 => 'Zhaobi',
// 10 => 'Ex',
// 11 => 'Zt',
// 12 => 'Tsc',
// 13 => 'Binance',
// 14 => 'Bilaxy',
// 15 => 'Bitnasdaq',
// 16 => 'Dag',
// 17 => 'Coinka',
18 => 'Isummit',
19 => 'Boc',
// 19 => 'Boc',
//1 => 'Hadax', //不需要
......@@ -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'])) {
$quotation['usd'] = (float)sprintf("%0.4f", $quotation['last']);
$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'])) {
$quotation['usd'] = (float)sprintf("%0.4f", 1);
} 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