批量删除订单
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\OrderModel::batchDeleteOrder |
| 所属业务 | 订单管理 |
| 来源模块/系统 | 订单模型 |
功能说明
批量删除订单
调用示例
$id = [1];
$delete_host = 1;
$type = 'string';
$result = (new \app\common\model\OrderModel())->batchDeleteOrder($id, $delete_host, $type);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
id | array | 是 | — | required | 订单ID |
delete_host | int | 是 | 1 | required | 是否删除产品:0否1是 |
type | string | 否 | — | — | 类型(recycle_bin=从回收站删除,clear_recycle_bin=清空回收站) |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
status | int | 状态码,200成功,400失败 |
msg | string | 提示信息 |
正常返回
{
"status": 1,
"msg": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |