Skip to content

Commit

Permalink
add currency function:getBaseCurrecyCode()
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jun 24, 2021
1 parent 07125b1 commit 193d582
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/page/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 193d582

Please sign in to comment.