Home - 新版分销系统(0830) 登录  
最后修改者: root  2018-08-31 13:36:13 

今日订单-每单商品详情

编号  :  21

POST - /mobile/index.php?act=partner_order&op=community_order_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
order_sn string Y 订单编号
返回值
{
  "code": 200,
  "datas": {
    "order_sn": "1098050000002280001",
    "order_goods": [
      {
        "goods_name": "好吃芒果",  //商品名称
        "goods_price": "0.01",   //商品单价
        "goods_num": "1",   //购买数量
        "goods_pay_price": "0.01"  //实际支付金额
      },
      {
        "goods_name": "酸牛奶",
        "goods_price": "0.01",
        "goods_num": "1",
        "goods_pay_price": "0.01"
      },
      {
        "goods_name": "青苹果",
        "goods_price": "0.01",
        "goods_num": "1",
        "goods_pay_price": "0.01"
      },
      {
        "goods_name": "美人指葡萄",
        "goods_price": "0.01",
        "goods_num": "1",
        "goods_pay_price": "0.01"
      }
    ]
  }
}
最后修改者: root  2018-08-29 16:07:45 

区域总监详情

编号  :  20

POST - mobile/index.php?act=partner_data&op=regdirector_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
type int Y
curpage int Y
page int Y
返回值
{
    "code": 200,
    "hasmore": true,
    "page_total": 5,
    "datas": {
        "inviter_list": [
            {
                "partner_id": "6",
                "binding_a_village": "103,89,97,98,99,100,101",
                "partner_name": "递四方速递",
                "accumulative_order_cash": null
            }
        ],
       
        "regional_director_info": {
            "regional_num": 0,
            "current_order_amount": 0,
            "accumulative_order_cash": 0
        }
    }
}
最后修改者: root  2018-08-29 16:08:05 

邀请团队详情

编号  :  19

POST - mobile/index.php?act=partner_data&op=inteam_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
page int Y
curpage int Y
type int Y
返回值
{
    "code": 200,
    "hasmore": true,
    "page_total": 5,
    "datas": {
        "inviter_list": [
            {
                "partner_id": "6",
                "binding_a_village": "103,89,97,98,99,100,101",
                "partner_name": "递四方速递",
                "accumulative_order_cash": null
            }
        ],
      
        "regional_director_info": {
            "regional_num": 0,
            "current_order_amount": 0,
            "accumulative_order_cash": 0
        }
    }
}
最后修改者: root  2018-08-21 10:19:15 

邀请奖励详情

编号  :  18

POST - mobile/index.php?act=partner_data&op=inviter_reward_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
curpage int Y
page int Y
返回值
{
    "code": 200,
    "datas": {
        "list": [
            {
                "register_time": "2018-08-13 19:51:46",
                "partner_name": "递四方速递",
                "register_mobile": "13423432341",
                "real_name": "王府天",
                "reward_is_one": "0",
                "reward_is_two": "0"
            },
            {
                "register_time": "1970-01-01 08:00:00",
                "partner_name": null,
                "register_mobile": "",
                "real_name": "'123'",
                "reward_is_one": "0",
                "reward_is_two": "0"
            },
            {
                "register_time": "2018-08-07 23:45:07",
                "partner_name": "如果是",
                "register_mobile": "13623434344",
                "real_name": "赵六",
                "reward_is_one": "0",
                "reward_is_two": "0"
            },
            {
                "register_time": "2018-08-08 01:08:27",
                "partner_name": "第三方的",
                "register_mobile": "15778777676",
                "real_name": "王五",
                "reward_is_one": "1",
                "reward_is_two": "1"
            },
            {
                "register_time": "2018-08-08 00:18:27",
                "partner_name": "非固定",
                "register_mobile": "14565345433",
                "real_name": "李四",
                "reward_is_one": "0",
                "reward_is_two": "0"
            }
        ],
        "inviter_rewards": {
            "num": 5,
            "rewards": 1,
            "rewards_price": 300
        }
    }
}
最后修改者: root  2018-08-21 10:18:53 

总收入详情

编号  :  17

POST - mobile/index.php?act=partner_data&op=total_income
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
type int Y 时间类型1,2,3,4,5 :当前,当月,前月,当年,全部
curpage int Y
page int Y
返回值
{
    "code": 200,
    "datas": {
        "list": [
            {
                "type": "order_extract",
                "description": "订单编号:73737736",
                "cash_state": "0",
                "add_time": "1533052860"
            },
            {
                "type": "invite_poll_award",
                "description": "邀请人头奖励",
                "cash_state": "0",
                "add_time": "1533052861"
            },
            {
                "type": "order_extract",
                "description": "订单编号:73733738",
                "cash_state": "0",
                "add_time": "1533058794"
            }
        ],
        "income_info": {
            "have_withdrawal": "4.00",
            "may_apply": "0.00",
            "not_may_apply": "2.00",
            "order_cash": "16.30",
            "invite_poll_cash": "10.00",
            "invite_team_cash": "0.00",
            "area_team_cash": "0.00",
            "total_income": 26.3
        }
    }
}
最后修改者: root  2018-08-21 10:18:28 

社区订单详情

编号  :  16

POST - mobile/index.php?act=partner_data&op=community_order_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
type int Y 时间类型1,2,3,4,5 :当前,当月,前月,当年,全部
page int Y
curpage int Y
返回值
{
    "code": 200,
    "datas": {
        "list": [
            {
                "add_time": "1534233986",
                "order_sn": "1098050000002254201",
                "buyer_name": "12812356196",
                "order_state": "30",
                "order_amount": "78.00",
                "time": "2018-08-14 16:06:26"
            },
            {
                "add_time": "1534240309",
                "order_sn": "1098050000002254301",
                "buyer_name": "12812356198",
                "order_state": "30",
                "order_amount": "20.00",
                "time": "2018-08-14 17:51:49"
            },
            {
                "add_time": "1534296070",
                "order_sn": "1008050000002254401",
                "buyer_name": "12812356194",
                "order_state": "30",
                "order_amount": "13.01",
                "time": "2018-08-15 09:21:10"
            }
        ],
        "total": "200"
    }
}
最后修改者: root  2018-08-21 10:18:04 

社区用户数详情

编号  :  15

POST - mobile/index.php?act=partner_data&op=community_buyer_num_detail
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
type int Y 1:今日2:本月3:上月4:全部
index int Y 1.下单量顺序2:下单量倒序3:下单时间顺序4.:下单时间倒序
page int Y
curpage int Y
返回值
{
    "code": 200,
    "datas": [
        {
            "buyer_name": "12812356198",
            "buyer_num": "1",
            "add_time": "1534240309",
            "buyer_id": "124728",
            "time": "2018-08-14 17:51:49"
        },
        {
            "buyer_name": "12812356196",
            "buyer_num": "1",
            "add_time": "1534233986",
            "buyer_id": "124750",
            "time": "2018-08-14 16:06:26"
        },
        {
            "buyer_name": "12812356194",
            "buyer_num": "1",
            "add_time": "1534296070",
            "buyer_id": "124752",
            "time": "2018-08-15 09:21:10"
        }
    ]
}
最后修改者: root  2018-08-16 15:17:53 

用户统计(用户页)

编号  :  14

POST - mobile/index.php?act=partner_data&op=stat_order
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y
返回值
{
    "code": 200,
    "datas": {
        "order_stat": {
            "current_day": {
                "order_amount": 0,
                "buyer_num": 0
            },
            "current_month": {
                "order_amount": 0,
                "buyer_num": 0
            },
            "precedent_month": {
                "order_amount": 0,
                "buyer_num": 0
            },
            "total": {
                "order_amount": 0,
                "buyer_num": 0,
                "order_commis_rate": 0
            }
        },
        "cash": [
            {
                "order_cash": "10.00",
                "invite_poll_cash": "10.00",
                "invite_team_cash": "0.00",
                "area_team_cash": "0.00"
            }
        ],
        "inviter_rewards": {
            "num": 0,
            "rewards": 0,
            "$rewards_price": 0
        },
        "inviter_team": {
            "inviter_num": 0,
            "current_order_amount": 0,
            "accumulative_order_cash": 0
        },
        "regional_director_info": {
            "regional_num": 0,
            "current_order_amount": 0,
            "accumulative_order_cash": 0
        }
    }
}
备注
order_stat --社区用户数和社区订单 ------accumulative_order_cash :累计提成
cash --- 总收入----- order_cash:订单提成、invite_poll_cash:邀请奖励、invite_team_cash:邀请团队提成、area_team_cash区域管理提成
inviter_rewards---邀请奖励相关
inviter_team --- 邀请团队提成
regional_director_info ---区域管理提成
最后修改者: root  2018-08-16 09:32:15 

今日社区订单

编号  :  13

POST - mobile/index.php?act=partner_order&op=today_community_order
首页 请取 page = 10 curpage =1
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
page int Y 每页条数(默认5)
curpage int Y 当前页
返回值
{
  "code": 200,
  "hasmore": true,
  "page_total": 4,
  "datas": {
    "order_list": [
    "193877": {
      "buyer_id": "124813",
      "buyer_name": "12812356146",
      "order_amount": "68.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 15:38:37"
    },
    "193878": {
      "buyer_id": "124813",
      "buyer_name": "12812356146",
      "order_amount": "50.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 15:38:37"
    },
    "193887": {
      "buyer_id": "112664",
      "buyer_name": "可可可可可",
      "order_amount": "75.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:44:52"
    },
    "193888": {
      "buyer_id": "112664",
      "buyer_name": "可可可可可",
      "order_amount": "20.02",
      "shipping_fee": "0.01",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:44:52"
    },
    "193889": {
      "buyer_id": "112664",
      "buyer_name": "可可可可可",
      "order_amount": "60.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:45:50"
    },
    "193890": {
      "buyer_id": "112664",
      "buyer_name": "可可可可可",
      "order_amount": "60.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:46:25"
    },
    "193891": {
      "buyer_id": "124752",
      "buyer_name": "12812356194",
      "order_amount": "10.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:46:26"
    },
    "193892": {
      "buyer_id": "112664",
      "buyer_name": "可可可可可",
      "order_amount": "60.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:47:45"
    },
    "193896": {
      "buyer_id": "124752",
      "buyer_name": "12812356194",
      "order_amount": "10.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:51:00"
    },
    "193897": {
      "buyer_id": "124752",
      "buyer_name": "12812356194",
      "order_amount": "10.00",
      "shipping_fee": "0.00",
      "order_state_desc": "已取消",
      "add_time": "2018-08-15 17:52:43"
    }
   ]
  }
}
最后修改者: root  2018-08-14 16:28:00 

个人账户页面

编号  :  12

POST - mobile/index.php?act=partner&op=partner_index
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
返回值
{
  "code": 200,
  "datas": {
    "weixin_image": "http://thirdwx.qlogo.cn/mmopen/vi_32/YBqA2wLPASFIftqJf1VR60Jp7hfzFAzEQNV6v5yA6wUl955h0eA8gk5ACDJZ3btpAqNHR93WoWVqKRy7ibC5TeA/132",
    "real_name": "\'123\'",
    "register_mobile": "",
    "container_list": [
      "四川 绵阳市  高新区 银泰城111",
      "四川 成都市 新津县 高新区 奥克斯广场",
      "安徽 合肥市  莲花路2163号 美菱研发中心二楼"
    ]
  }
}
最后修改者: root  2018-08-14 13:48:01 

提现列表

编号  :  11

POST - mobile/index.php?act=cash_index&op=getCashList
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
返回值
{
  "code": 200,
  "hasmore": false,
  "page_total": 1,
  "datas": {
    "extract_list": [  //日志
      {
        "partner_state": "0",   //提现状态0:待审核 1:未通过 2:已通过未到账 3:已到账
        "withdrawal_price": "10.00", //提现金额
        "apply_time": "2018-08-06 08:29:35", // 申请时间
        "settle_date": "2018-07" //结算月
      },
      {
        "partner_state": "0",
        "withdrawal_price": "398.00",
        "apply_time": "2018-07-04 14:27:40",
        "settle_date": "2018-06"
      }
    ]
  }
}
最后修改者: root  2018-08-14 11:36:14 

提现申请

编号  :  10

POST - mobile/index.php?act=cash_index&op=cashAdd
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
备注
{
  "code": 200,
  "msg": "提交成功!"
}
最后修改者: root  2018-08-17 14:28:06 

提现申请开始页

编号  :  9

POST - mobile/index.php?act=cash_index&op=cashIndex
请求参数
参数名 参数类型 必传 缺省值 描述
key string Y 登录令牌
返回值
{
  "code": 200,
  "datas": {
    "partner_cash_time": {
      "start_day": "3",
      "end_day": "7"
    },
    "may_apply": "0.00",
    "not_may_apply": "2.00",
    "have_withdrawal": "4.00",
    "partner_amount_logs": [
      {
        "type": "invite_poll_award",
        "add_time": "1533052861",
        "apply_amounts": "10.00",
        "add_date": "2018-08",
        "type_name": "邀请奖励"
      },
      {
        "type": "order_extract",
        "add_time": "1533052860",
        "apply_amounts": "16.30",
        "add_date": "2018-08",
        "type_name": "社区订单提成"
      }
    ],
    "total_amount": 26.3
  }
}
备注
order_extract 订单提成 invite_poll_award 邀请人头奖励 invite_team_award 邀请团队提成 area_team_award区域管理团队提成
最后修改者: root  2018-08-12 16:37:37 

合伙人资料提交

编号  :  8

POST - mobile/index.php?act=partner&op=partner_add
合伙人资料提交
请求参数
参数名 参数类型 必传 缺省值 描述
name string Y 真实姓名
city_id int Y 城市id
village string Y 注册小区
card_id string Y 身份证号
bank_card_no string Y 银行卡号
bank_name string Y 银行
address string Y 开户地址
id_image string Y 身份证正面照图片名称
id_image_back string Y 身份证背面照图片名称
返回值
{
    "code": 200,
    "msg": "提交成功"
}
最后修改者: root  2018-08-12 15:13:25 

图片上传接口

编号  :  6

POST - mobile/index.php?act=login&op=uploadPicture
图片上传接口
请求参数
参数名 参数类型 必传 缺省值 描述
file FILE Y 图片文件
返回值
{
    "code": 200,
    "url": "http://127.0.0.1/fenxiao_v2/data/upload/home/member/05874017116699407.png",
    "file_name": "05874017116699407.png"
}
最后修改者: root  2018-08-12 14:34:18 

短信验证及手机绑定接口

编号  :  5

POST - mobile/index.php?act=login&op=checkCaptcha
短信验证及手机绑定接口
请求参数
参数名 参数类型 必传 缺省值 描述
mobile string Y 手机号
captcha string Y 验证码
key string N token,绑定手机号使用
返回值
{
    "code": 200,
    "msg": "绑定成功!"
}
最后修改者: root  2018-08-12 11:48:05 

短信发送接口

编号  :  2

POST - mobile/index.php?act=login&op=MobileTest
短信发送接口
请求参数
参数名 参数类型 必传 缺省值 描述
mobile string Y 手机号码
key string N token绑定手机时使用
返回值
{
    "code": 200,
    "msg": "验证码发送成功"
}
最后修改者: root  2018-08-10 17:12:59 

微信jssdkconfig获取

编号  :  3

POST - mobile/index.php?act=wechatauth&op=getWechatJsConf
微信jssdkconfig获取
请求参数
参数名 参数类型 必传 缺省值 描述
url string Y 请求url
返回值
{
    "code": 200,
    "jsapi_ticket": "",
    "nonceStr": "",
    "timestamp": "时间戳",
    "url": "",
    "signature": "",
    "appId": ""
}
最后修改者: root  2018-08-22 14:45:45 

微信openid获取

编号  :  2

POST - mobile/index.php?act=wechatauth&op=getWechatOpenid
微信openid获取
请求参数
参数名 参数类型 必传 缺省值 描述
code string Y 微信code
openid string Y 缓存了openid就用openid
返回值
{
    "code": 200,
    "openid": "", //unionid
    "true_openid": "", //openid
    "nickname": "",//昵称
    "headimgurl": "",//头像
    "session_key": ""
}
{
    "code": 201,
    "datas": {
        "error": "refresh_token缓存过期,请重新获取!"
    }
}
备注
code第一次使用,后面缓存了openid(返回值中的true_openid)就用openid code和openid只传一个

如果提示 refresh_token缓存过期,请重新获取!就重新用code获取openid 并缓存新的openid
最后修改者: root  2018-08-10 16:54:53 

微信登录接口

编号  :  1

POST - mobile/index.php?act=login&op=weixinLogin
微信登录接口
请求参数
参数名 参数类型 必传 缺省值 描述
openid string Y 微信openid
weixin_image string N 微信头像
version_no string N 版本信息
inviter_id int N 邀请人id
返回值
{
    "code": 200,
    "regist_state": 0, //0跳转到手机绑定页面 1//跳转到信息录入页面
    "token": ''
}