提交 112ded62 编写于 作者: T Terry

后台设置去除当前货币,session中保存不存在的历史货币,导致无法找到货币的bug

上级 b15d7ed0
...@@ -102,8 +102,15 @@ class Currency extends Service ...@@ -102,8 +102,15 @@ class Currency extends Service
} }
} }
if ($currencyCode) { if ($currencyCode) {
if (isset($this->_currencys[$currencyCode])) {
return $this->_currencys[$currencyCode];
} else {
$currencyCode = $this->defaultCurrency;
return $this->_currencys[$currencyCode]; return $this->_currencys[$currencyCode];
} }
}
return $this->_currencys; return $this->_currencys;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册