企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**简要描述:** - 设置商品佣金 **请求URL:** - `/adminapi/distribution.distribution_goods/set` **请求方式:** - POST **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | 【默认等级及自定义等级必填参数】 |goods_id|是 |integer |商品id | |is_distribution|是 |integer |是否参与分销 0-否 1-是 | |rule|是 |integer |佣金规则 1-按分销会员等级分佣 2-单独设置| 【以下是自定义等级必填参数】 |ratio_data|是 |array |分佣数据| |level_id|是 ||integer |分销会员等级id| |item_id|是 |integer |商品规格id| |first_ratio|是 |decimal |一级佣金比例| |second_ratio|是 |decimal |二级佣金比例| **默认规则设置示例** ``` { "goods_id": 24, "is_distribution": 0, "rule": 1 } ``` **单独设置示例** ``` { "goods_id": 24, "is_distribution": 0, "rule": 2, "ratio_data": [ { "level_id": 1, "item_id": 1, "self_ratio": 10, "first_ratio": 10, "second_ratio": 10 }, { "level_id": 1, "item_id": 2, "self_ratio": 20, "first_ratio": 20, "second_ratio": 20 }, { "level_id": 4, "item_id": 1, "self_ratio": 30, "first_ratio": 30, "second_ratio": 30 } ] } ``` **返回示例** ``` { "code": 1, "show": 0, "msg": "设置成功", "data": [] } ```