Commit 0c43e6b9 authored by shajiaiming's avatar shajiaiming

fix

parent 74c3a120
......@@ -250,6 +250,12 @@ class CoinController extends BaseController
if (false != $currency) {
if (1111 == $this->currency_id) {
$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 {
$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