智简魔方文档

获取货币设置

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\ConfigurationModel::currencyList
所属业务公共接口
来源模块/系统用户模型

功能说明

获取货币设置

调用示例

$result = (new \app\common\model\ConfigurationModel())->currencyList();

参数

该函数/方法无需传入参数。

返回值

返回项类型说明
currency_codestring货币代码
currency_prefixstring货币符号
currency_suffixstring货币后缀
recharge_openint启用充值:1开启0关闭
recharge_minint单笔最小金额
recharge_noticeint充值提示开关:1开启0关闭
recharge_money_notice_contentstring充值金额提示内容
recharge_pay_notice_contentstring充值支付提示内容
recharge_order_support_refundint充值订单是否支持退款(0=否,1=是)

正常返回

{
  "currency_code": "123456",
  "currency_prefix": "CNY",
  "currency_suffix": "CNY",
  "recharge_open": 1,
  "recharge_min": 1,
  "recharge_notice": 1,
  "recharge_money_notice_content": "string",
  "recharge_pay_notice_content": "string",
  "recharge_order_support_refund": 1
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。