智简魔方文档

编辑自定义产品标识

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\CustomHostNameModel::updateCustomHostName
所属业务产品管理
来源模块/系统自定义产品标识模型

功能说明

编辑自定义产品标识

调用示例

$param = ['id' => 'string', 'custom_host_name_prefix' => '示例名称', 'custom_host_name_string_allow' => ['示例名称'], 'custom_host_name_string_length' => 1];
$result = (new \app\common\model\CustomHostNameModel())->updateCustomHostName($param);

参数

参数类型必填默认值校验规则说明
param.idstringrequire自定义产品标识ID
param.custom_host_name_prefixstringrequire自定义主机标识前缀
param.custom_host_name_string_allowarrayrequire允许的字符串(number=数字,upper=大写字母,lower=小写字母)
param.custom_host_name_string_lengthintrequire字符串长度

返回值

返回项类型说明
statusint状态(200=成功,400=失败)
msgstring信息

正常返回

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

异常情况

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