智简魔方文档

保存货币设置

方法概览

项目内容
文档类型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_codestring货币代码
param.currency_prefixstring货币符号
param.currency_suffixstring货币后缀
param.recharge_openint启用充值:1开启0关闭
param.recharge_minint单笔最小金额
param.recharge_maxint单笔最大金额
param.recharge_noticeint充值提示开关:1开启0关闭
param.recharge_money_notice_contentstring充值金额提示内容
param.recharge_pay_notice_contentstring充值支付提示内容

返回值

返回项类型说明
param.recharge_order_support_refundint充值订单是否支持退款(0=否,1=是)
statusint状态码,200成功,400失败
msgstring提示信息

正常返回

{
  "param": {
    "recharge_order_support_refund": 1
  },
  "status": 1,
  "msg": "string"
}

异常情况

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