From 193d582b7337bc4e0e45545b5666850fc42cdc64 Mon Sep 17 00:00:00 2001 From: Terry <2358269014@qq.com> Date: Thu, 24 Jun 2021 14:12:46 +0800 Subject: [PATCH] add currency function:getBaseCurrecyCode() --- services/page/Currency.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,