Commit 077f27af authored by shajiaiming's avatar shajiaiming Committed by shajiaming

fix

parent 53066ad3
...@@ -250,6 +250,12 @@ class CoinController extends BaseController ...@@ -250,6 +250,12 @@ class CoinController extends BaseController
if (false != $currency) { if (false != $currency) {
if (1111 == $this->currency_id) { if (1111 == $this->currency_id) {
$last[] = 1; $last[] = 1;
} else if (1316 == $this->currency_id) {
if (Yii::$app->redis->hkeys('quotation_go_CNY_USD')) {
$last[0] = 1 / Yii::$app->redis->hmget('quotation_go_CNY_USD', 'last')[0];
} else {
$last = Yii::$app->redis_currency->hmget('quotation_boc_' . 'CNY_' . $currency->symbol, 'last');
}
} else { } else {
$last = Yii::$app->redis_currency->hmget('quotation_boc_' . 'CNY_' . $currency->symbol, 'last'); $last = Yii::$app->redis_currency->hmget('quotation_boc_' . 'CNY_' . $currency->symbol, 'last');
} }
......
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