Commit b0fdad79 authored by shajiaiming's avatar shajiaiming

fix

parent beebdc90
...@@ -103,7 +103,7 @@ class TickerController extends BaseController ...@@ -103,7 +103,7 @@ class TickerController extends BaseController
$msg = '参数错误'; $msg = '参数错误';
goto doEnd; 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) { if ($model) {
$msg = '数据已存在!'; $msg = '数据已存在!';
goto doEnd; goto doEnd;
...@@ -164,7 +164,7 @@ class TickerController extends BaseController ...@@ -164,7 +164,7 @@ class TickerController extends BaseController
$exchange = 'Binance'; $exchange = 'Binance';
} else if ('zhaobi' == $val['platform']) { } else if ('zhaobi' == $val['platform']) {
$exchange = 'Zhaobi'; $exchange = 'Zhaobi';
} else if ('bitnasdaq' == strtolower($val['platform'])){ } else if ('bitnasdaq' == strtolower($val['platform'])) {
$exchange = 'Bitnasdaq'; $exchange = 'Bitnasdaq';
} else { } else {
...@@ -173,7 +173,7 @@ class TickerController extends BaseController ...@@ -173,7 +173,7 @@ class TickerController extends BaseController
$symbol = explode('/', $val['symbol']); $symbol = explode('/', $val['symbol']);
$tag_first = $currency = $symbol[0]; $tag_first = $currency = $symbol[0];
$tag_second = $symbol[1]; $tag_second = $symbol[1];
if ('BCH' == strtoupper($tag_first)){ if ('BCH' == strtoupper($tag_first)) {
$tag_first = 'BCC'; $tag_first = 'BCC';
} }
$exchange = ExchangeFactory::createExchange($exchange); $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