Commit 8200e21a authored by shajiaiming's avatar shajiaiming

fix

parent c2c0b707
...@@ -284,16 +284,16 @@ class ExchangeBusiness ...@@ -284,16 +284,16 @@ class ExchangeBusiness
goto doEnd; goto doEnd;
} }
if (in_array(strtoupper($tag), ['BTY','YCC'])) { if (in_array(strtoupper($tag), ['BTY', 'YCC'])) {
$exchange = ExchangeFactory::createExchange("Superx"); $exchange = ExchangeFactory::createExchange("Superx");
$quotation = $exchange->getTicker($tag, 'USDT'); $quotation = $exchange->getTicker($tag, 'USDT');
$quotation['rmb'] = (float)sprintf("%0.4f", $quotation['last']);
goto doEnd; goto doEnd;
} }
if (in_array(strtoupper($tag), ['USDT'])) { if (in_array(strtoupper($tag), ['USDT'])) {
$exchange = ExchangeFactory::createExchange("Rate"); $exchange = ExchangeFactory::createExchange("Rate");
$quotation = $exchange->getTicker("CNY", "USD"); $quotation = $exchange->getTicker("CNY", "USD");
$quotation['rmb'] = (float)sprintf("%0.4f", $quotation['last']);
goto doEnd; goto doEnd;
} }
......
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