智简魔方文档

批量同步

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\HostModel::batchSyncAccount
所属业务用户管理
来源模块/系统产品模型

功能说明

批量同步

调用示例

$param = ['product_id' => [1], 'host_status' => ['string']];
$result = (new \app\common\model\HostModel())->batchSyncAccount($param);

参数

参数类型必填默认值校验规则说明
param.product_idarrayrequire商品ID
param.host_statusarrayrequire产品状态(Active已开通Suspended已暂停)

返回值

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

正常返回

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

异常情况

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