Commit 1adc57b4 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/ticker' into 'master'

fix See merge request !201
parents 0e30f6c8 b0fdad79
......@@ -103,7 +103,7 @@ class TickerController extends BaseController
$msg = '参数错误';
goto doEnd;
}
$model = CoinOptional::find()->where(['device_code' => $device_code, 'symbol' => $symbol, 'platform_id' => (int)$platform_id])->one();
$model = CoinOptional::find()->where(['device_code' => $device_code, 'symbol' => $symbol, 'platform' => $platform, 'platform_id' => (int)$platform_id])->one();
if ($model) {
$msg = '数据已存在!';
goto doEnd;
......@@ -164,7 +164,7 @@ class TickerController extends BaseController
$exchange = 'Binance';
} else if ('zhaobi' == $val['platform']) {
$exchange = 'Zhaobi';
} else if ('bitnasdaq' == strtolower($val['platform'])){
} else if ('bitnasdaq' == strtolower($val['platform'])) {
$exchange = 'Bitnasdaq';
} else {
......@@ -173,7 +173,7 @@ class TickerController extends BaseController
$symbol = explode('/', $val['symbol']);
$tag_first = $currency = $symbol[0];
$tag_second = $symbol[1];
if ('BCH' == strtoupper($tag_first)){
if ('BCH' == strtoupper($tag_first)) {
$tag_first = 'BCC';
}
$exchange = ExchangeFactory::createExchange($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