获取当前商品关联模块类型(需要先实例化)
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ProductModel::getModule |
| 所属业务 | 商品管理 |
| 来源模块/系统 | 商品模型 |
功能说明
获取当前商品关联模块类型
调用示例
$param = ['domain' => ['string']];
$relId = 1;
$type = 'string';
$result = (new \app\common\model\ProductModel())->getModule($param, $relId, $type);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.domain | array | 否 | — | — | 域名 |
relId | int | 否 | — | — | 当前关联ID 关联ID |
type | string | 否 | — | — | 当前关联类型 关联类型(server=接口,server_group=接口分组) |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
返回值 | string | — |
正常返回
{}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |