Commit c2c0b707 authored by shajiaiming's avatar shajiaiming

fix

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