Commit 8071f3f5 authored by shajiaiming's avatar shajiaiming

SJPY PRICE

parent 8c8b3acd
...@@ -129,6 +129,18 @@ class ExchangeBusiness ...@@ -129,6 +129,18 @@ class ExchangeBusiness
goto doEnd; goto doEnd;
} }
if(in_array(strtoupper($tag),['SJPY'])){
$exchange = ExchangeFactory::createExchange("BOC");
$quotation = $exchange->getTicker('CNY', 'JPY');
$quotation = [
'low' => (float)sprintf("%0.4f", $quotation['low']/100),
'high' => (float)sprintf("%0.4f", $quotation['high']/100),
'last' => (float)sprintf("%0.4f", $quotation['last']/100),
'rmb' => (float)sprintf("%0.4f", $quotation['last']/100),
];
goto doEnd;
}
foreach (self::$exchanges as $exchange) { foreach (self::$exchanges as $exchange) {
/** /**
* @var $exchange \common\service\exchange\Exchange * @var $exchange \common\service\exchange\Exchange
......
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