设置分销配置
开发中
POST
/adminapi/distribution.config/setConfig
请求参数
Body 参数application/json
status
integer
功能状态
condition
integer
分销条件
auto_audit
integer
自动审核
level
integer
分销层级
first_ratio
string
一级分销比例
second_ratio
string
二级分销比例
示例
{
"status": 1,
"condition": 1,
"auto_audit": 0,
"level": 1,
"first_ratio": 0,
"second_ratio": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/distribution.config/setConfig' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": 1,
"condition": 1,
"auto_audit": 0,
"level": 1,
"first_ratio": 0,
"second_ratio": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array[string]
必需
示例
{"code":1,"show":1,"msg":"设置成功","data":[]}
修改于 2025-02-27 10:18:22