获取商品计费项目
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ProductOnDemandModel::billingItem |
| 所属业务 | 商品管理 |
| 来源模块/系统 | 商品按需计费配置模型 |
功能说明
获取商品计费项目
调用示例
$param = [['product_id' => 1]];
$result = (new \app\common\model\ProductOnDemandModel())->billingItem($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param | array | 是 | — | require | 参数 |
param.product_id | int | 是 | — | require | 商品ID |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].name | string | 配置项标识 |
list[].value | string | 配置项名称 |
正常返回
{
"list": [
{
"name": "示例名称",
"value": "string"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |