保存货币设置
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConfigurationModel::currencyUpdate |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 用户模型 |
功能说明
保存货币设置
调用示例
$param = ['currency_code' => '123456', 'currency_prefix' => 'CNY', 'currency_suffix' => 'CNY', 'recharge_open' => 1, 'recharge_min' => 1, 'recharge_max' => 1, 'recharge_notice' => 1, 'recharge_money_notice_content' => 'string', 'recharge_pay_notice_content' => 'string'];
$result = (new \app\common\model\ConfigurationModel())->currencyUpdate($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.currency_code | string | 否 | — | — | 货币代码 |
param.currency_prefix | string | 否 | — | — | 货币符号 |
param.currency_suffix | string | 否 | — | — | 货币后缀 |
param.recharge_open | int | 否 | — | — | 启用充值:1开启0关闭 |
param.recharge_min | int | 否 | — | — | 单笔最小金额 |
param.recharge_max | int | 否 | — | — | 单笔最大金额 |
param.recharge_notice | int | 否 | — | — | 充值提示开关:1开启0关闭 |
param.recharge_money_notice_content | string | 否 | — | — | 充值金额提示内容 |
param.recharge_pay_notice_content | string | 否 | — | — | 充值支付提示内容 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
param.recharge_order_support_refund | int | 充值订单是否支持退款(0=否,1=是) |
status | int | 状态码,200成功,400失败 |
msg | string | 提示信息 |
正常返回
{
"param": {
"recharge_order_support_refund": 1
},
"status": 1,
"msg": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |