Commit 96eb16eb authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

fix See merge request !362
parents ba1a19b6 e4a149a2
...@@ -28,7 +28,7 @@ class TickerController extends BaseController ...@@ -28,7 +28,7 @@ class TickerController extends BaseController
$data_value = Yii::$app->request->get('data_value', ''); $data_value = Yii::$app->request->get('data_value', '');
$sort_value = Yii::$app->request->get('sort_value', ''); $sort_value = Yii::$app->request->get('sort_value', '');
$exchange_arr = ['huobi', 'binance', 'zhaobi', 'bitnasdaq', 'jinwang']; $exchange_arr = ['huobi', 'binance', 'zhaobi', 'bitnasdaq', 'jingwang'];
if (!in_array($exchange, $exchange_arr)) { if (!in_array($exchange, $exchange_arr)) {
$msg = '不存在的交易平台'; $msg = '不存在的交易平台';
...@@ -43,6 +43,9 @@ class TickerController extends BaseController ...@@ -43,6 +43,9 @@ class TickerController extends BaseController
'sort_value' => $sort_value 'sort_value' => $sort_value
]; ];
} }
if ('jingwang' == $exchange) {
$exchange = 'jinwang';
}
$builder = ExchangeBuilderFactory::create($exchange); $builder = ExchangeBuilderFactory::create($exchange);
$result = $builder->getTickerFromCache($page, $condition); $result = $builder->getTickerFromCache($page, $condition);
$code = $result['code']; $code = $result['code'];
......
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