简要描述:
- 获取招商员信息
请求URL:
POST: plugin.merchant.frontend.merchant-center
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 公众号id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取信息成功",
"data": {
"id": 1,
"uniacid": 2,
"member_id": 295,
"realname": "杨洋",
"mobile": "15945596368",
"bonus_ratio": "5.00",
"level_id": 1,
"is_center": 1,
"created_at": "1970-01-01 08:00:00",
"updated_at": "1970-01-01 08:00:00",
"deleted_at": 0,
"has_one_member": {
"uid": 295,
"uniacid": 2,
"mobile": "",
"email": "",
"password": "",
"salt": "",
"groupid": 2,
"credit1": "0.00",
"credit2": "6951.00",
"credit3": "0.00",
"credit4": "0.00",
"credit5": "0.00",
"createtime": 1495679972,
"realname": "",
"nickname": "d0Y.yang",
"avatar": "http://wx.qlogo.cn/mmopen/LZ47iatnJ6PC4XnwqHYIxiaxms0Y33rB1GTTDkaEeRaiclJB0eQTTW4PvSicLz7OKm3776ZTcwicpgyVkM2IAHEnM9pXfmyNzXFBC/0",
"qq": "",
"vip": 0,
"gender": 1,
"birthyear": 0,
"birthmonth": 0,
"birthday": 0,
"constellation": "",
"zodiac": "",
"telephone": "",
"idcard": "",
"studentid": "",
"grade": "",
"address": "",
"zipcode": "",
"nationality": "中国",
"resideprovince": "广东省",
"residecity": "广州市",
"residedist": "",
"graduateschool": "",
"company": "",
"education": "",
"occupation": "",
"position": "",
"revenue": "",
"affectivestatus": "",
"lookingfor": "",
"bloodtype": "",
"height": "",
"weight": "",
"alipay": "",
"msn": "",
"taobao": "",
"site": "",
"bio": "",
"interest": "",
"credit6": "0.00"
},
"has_one_level": {
"id": 1,
"uniacid": 2,
"level_name": "一级招商中心",
"level_weight": 1,
"bonus_ratio": "10.00",
"become_type": 1,
"supplier_order_price": "100.00",
"supplier_order_count": 0,
"supplier_sum": 0,
"created_at": "1970-01-01 08:00:00",
"updated_at": "1970-01-01 08:00:00",
"deleted_at": 0
}
}
}
错误时返回:
{
"result":0,
"msg":"获取信息失败!",
"data": {
status => -1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
data->realname | string | 姓名 |
data->has_one_level->bonus_ratio | float | 分红比例 |
data->has_one_level->level_name | string | 等级名 |
备注:
- 更多返回错误代码请看首页的错误代码描述