在结算之后调用
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\logic\ModuleLogic::afterSettle |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 模块逻辑 |
功能说明
在结算之后调用,这时候可以存入产品配置项关联关系
调用示例
$ProductModel = 'string';
$hostId = 1;
$params = ['string'];
$customfields = ['string'];
$position = 1;
$result = (new \app\common\logic\ModuleLogic())->afterSettle($ProductModel, $hostId, $params, $customfields, $position);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
ProductModel | ProductModel | 是 | — | require | 商品模型 |
hostId | int | 是 | — | require | 产品ID |
params | array | 是 | — | require | 模块自定义参数 |
customfields | array | 否 | — | — | 其他自定义参数 |
position | int | 否 | — | — | 结算位置标识 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
return | void | 由 PHP 返回类型声明补全 |
正常返回
{
"return": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |