简要描述
请求url
https://www.商城域名.com/index.php?s=/api/dealer/center
请求方式
是否需授权登录
请求header
参数名 |
类型 |
是否必须 |
示例值 |
说明 |
storeId |
int |
必填 |
10001 |
商城ID |
platform |
string |
必填 |
H5 |
当前请求的客户端(APP、小程序、H5等) |
Access-Token |
string |
选填 |
- |
当前登录用户的 Token |
返回示例
{
"status": 200,
"message": "success",
"data": {
"isDealer": true,
"user": {
"user_id": 10125,
"mobile": "130****0000",
"nick_name": "CC",
"avatar_id": 10738,
"gender": "未知",
"country": "",
"province": "",
"city": "",
"address_id": 10052,
"balance": "91624.50",
"points": 64,
"pay_money": "142655.51",
"expend_money": "1437.80",
"grade_id": 10001,
"platform": "MP-WEIXIN",
"last_login_time": 1645801346,
"avatar_url": "230b880c338df99ffbdd502b42ca7dce.png"
},
"dealer": {
"user_id": 10125,
"real_name": "陈旭",
"mobile": "13000000000",
"money": "72875.98",
"freeze_money": "130323.50",
"total_money": "0.52",
"referee_id": 0,
"first_num": 0,
"second_num": 0,
"third_num": 0
},
"refereeName": "分销商A",
"setting": {}
}
}
返回参数
参数名 |
类型 |
示例值 |
说明 |
status |
int |
200 |
请求状态(200:请求成功;500:请求错误/失败) |
message |
string |
success |
请求结果的信息,默认为 success |
data |
object |
- |
返回的业务数据 |
data 参数
参数名 |
类型 |
示例值 |
说明 |
isDealer |
boolean |
true |
当前是否为分销商 |
user |
object |
- |
当前用户信息;可参考 “获取当前用户详情”API |
dealer |
object |
- |
分销商用户信息;可参考 “分销商用户详情”API |
refereeName |
string |
分销商A |
推荐人昵称 |
setting |
object |
- |
分销设置 |