智简魔方文档

保存主题设置

方法概览

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

功能说明

保存主题设置

调用示例

$param = ['admin_theme' => 'string', 'clientarea_theme' => 'string', 'cart_theme' => 'string', 'web_switch' => 1, 'web_theme' => 'string'];
$result = (new \app\common\model\ConfigurationModel())->themeUpdate($param);

参数

参数类型必填默认值校验规则说明
param.admin_themestringrequired后台主题
param.clientarea_themestringrequired会员中心主题
param.cart_themestringrequired购物车主题
param.web_switchintrequired官网开关0关闭1开启
param.web_themestringrequired官网主题

返回值

返回项类型说明
statusint状态码,200成功,400失败
msgstring提示信息

正常返回

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

异常情况

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