简要描述:

  • 代理中心首页

请求URL:

POST:一级域名/index.php?s=/wapapi/addons/execute/addons/agent/controller/agent/action/distributionCenter

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
  "code": 0,
  "data": {
    'distribution_pattern':1,
    "uid": 265,
    "member_level": 75,
    "memo": null,
    "reg_time": 1542880490,
    "website_id": 26,
    "distributor_level_id": null,
    "isdistributor": 0,
    "apply_distributor_time": "1970-01-01 08:00:00",
    "become_distributor_time": "1970-01-01 08:00:00",
    "update_distributorlevel_time": null,
    "referee_id": 165,
    "real_name": null,
    "regional_agent": null,
    "agency_area": null,
    "global_agency_level": null,
    "proxy_area": null,
    "up_level_time": null,
    "down_level_time": null,
    "is_global_agent": 0,
    "become_global_agent_time": null,
    "apply_global_agent_time": null,
    "global_agent_level_id": null,
    "up_global_level_time": null,
    "down_global_level_time": null,
    "is_area_agent": 0,
    "become_area_agent_time": null,
    "apply_area_agent_time": null,
    "area_agent_level_id": null,
    "up_area_level_time": null,
    "down_area_level_time": null,
    "agent_area_id": null,
    "area_type": null,
    "is_team_agent": 0,
    "become_team_agent_time": null,
    "apply_team_agent_time": null,
    "team_agent_level_id": null,
    "up_team_level_time": null,
    "down_team_level_time": null,
    "default_referee_id": null,
    "member_name": "你在哪里呀",
    "mobile": "18539772378",
    "extend_code": null,
    "custom_area": null,
    "custom_global": null,
    "custom_team": null,
    "distributor_apply": null,
    "isshopkeeper": 0,
    "become_shopkeeper_time": null,
    "apply_shopkeeper_time": null,
    "commission": null,
    "withdrawals": null,
    "freezing_commission": null,
    "total_commission": "0.00",
    "agentordercount": 0,
    "order1": 0,
    "order2": 0,
    "order3": 0,
    "order1_money": 0,
    "order2_money": 0,
    "order3_money": 0,
    "order_money": 0,
    "selforder_money": 0,
    "selforder_number": 0,
    "user_heading": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJvBnoLZayIW4gh189CjEO1TMAnj5xGiabyicDZIQHstQII0oONhAHttskc8ThQrohmGvkAn5tw90wg/132",
    "level_name": null,
    "level_id": null,
    "number1": 2,
    "agentcount": 6,
    "number2": 4,
    "customcount": 2,
    "referee_name": "timcena",
    "is_datum":0,
	"isagent":0,
	"apply_agent_distributor_time":0,
	"become_agent_distributor_time":0
	"is_performance_award":1
	"is_purchase":1
  }
}

错误时返回:

{
    "code": -1,
    "message": "提交失败"
}

返回参数说明:

参数名 类型 说明
distribution_pattern 分销模式1级,2级,3级
is_datum int 提现判断,0和1直接提现,2需要提交资料
member_name string 会员名称
member_level string 会员等级
become_agent_distributor_time string 成为代理时间
level_name string 等级名称
referee_name string 推荐人名称
commission int 可提现佣金
total_commission int 总佣金
withdrawals int 已提现佣金
agentordercount int 分销订单数
agentcount int 我的团队数
customcount int 我的客户数
is_performance_award int 1开启业绩权限2没有开启
is_purchase int 1开启采购权限2没有