Commit d03a592f authored by shajiaiming's avatar shajiaiming

Merge branch 'master' into feature/optimize

parents 70b608e5 ef727a18
......@@ -144,10 +144,10 @@ class ExchangeBusiness
if (strtoupper($tag) == 'POKE') {
$quotation = [
'low' => 0.1611,
'high' => 0.1611,
'last' => 0.1611,
'rmb' => 0.1611,
'low' => 0.1617,
'high' => 0.1617,
'last' => 0.1617,
'rmb' => 0.1617,
];
goto doEnd;
}
......@@ -162,7 +162,7 @@ class ExchangeBusiness
goto doEnd;
}
if (strtoupper($tag) == 'GST' || strtoupper($tag) == 'JNTK' || strtoupper($tag) == 'SPT' || strtoupper($tag) == 'STO' || strtoupper($tag) == 'GM' || strtoupper($tag) == 'BSTC' || strtoupper($tag) == 'RYH' || strtoupper($tag) == 'CNDT' || strtoupper($tag) == 'WL' || strtoupper($tag) == 'ETS' || strtoupper($tag) == 'LIMS' || strtoupper($tag) == 'AT' || strtoupper($tag) == 'BTJ') {
if (in_array(strtoupper($tag), ['GST', 'JNTK', 'SPT', 'STO', 'GM', 'BSTC', 'RYH', 'CNDT', 'WL', 'ETS', 'LIMS', 'AT', 'BTJ', 'WXB'])) {
$quotation = [
'low' => 0,
'high' => 0,
......@@ -312,6 +312,26 @@ class ExchangeBusiness
goto doEnd;
}
if (in_array(strtoupper($tag), ['LFT'])) {
$quotation = [
'low' => 100,
'high' => 100,
'last' => 100,
'rmb' => 100,
];
goto doEnd;
}
if (in_array(strtoupper($tag), ['ONE'])) {
$quotation = [
'low' => 328,
'high' => 328,
'last' => 328,
'rmb' => 328,
];
goto doEnd;
}
if (in_array(strtoupper($tag), ['BVA'])) {
$exchange = ExchangeFactory::createExchange("Bilaxy");
$quotation = $exchange->getTicker('BVA', 'USDT');
......@@ -343,7 +363,7 @@ class ExchangeBusiness
if (in_array(strtoupper($tag), ['HDC'])) {
$exchange = ExchangeFactory::createExchange("Hd");
$quotation = $exchange->getTicker('HD', 'USDT');
$quotation = $exchange->getTicker('HDC', 'USDT');
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