获取货币设置
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConfigurationModel::currencyList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 用户模型 |
功能说明
获取货币设置
调用示例
$result = (new \app\common\model\ConfigurationModel())->currencyList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
currency_code | string | 货币代码 |
currency_prefix | string | 货币符号 |
currency_suffix | string | 货币后缀 |
recharge_open | int | 启用充值:1开启0关闭 |
recharge_min | int | 单笔最小金额 |
recharge_notice | int | 充值提示开关:1开启0关闭 |
recharge_money_notice_content | string | 充值金额提示内容 |
recharge_pay_notice_content | string | 充值支付提示内容 |
recharge_order_support_refund | int | 充值订单是否支持退款(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 | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |