diff --git a/services/page/Currency.php b/services/page/Currency.php index 3f02fed5..aa0e4716 100644 --- a/services/page/Currency.php +++ b/services/page/Currency.php @@ -147,6 +147,16 @@ public function getBaseSymbol() return $this->currencys[$this->baseCurrecy]['symbol']; } } + /** + * 得到默认的货币code,譬如: USD, CNY + */ + public function getBaseCurrecyCode() + { + + return $this->baseCurrecy; + } + + /** * property $price|Float ,默认货币的价格 * Get current currency price. price format is two decimal places,