简要描述:

  • 升级条件数据

请求域名:

  • http://xx.com

请求URL:

POST/plugin.area-dividend.api.upgrade.index

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "level_name": "等级二",
        "push_num": "3",
        "price": "100",
        "have_push_num": 0,
        "self_price": "14192.32",
        "has_buy_goods": true,
        "goods_list": {
            "current_page": 1,
            "data": [
                {
                    "id": 2710,
                    "thumb": "https://dev8.yunzmall.com/static/upload/newimage/acff264f41bd64951971485eefd43346.jpg",
                    "title": "魔香丰盈卷曲弹力素280ml 卷曲动感蓬松飘逸",
                    "price": "9.10",
                    "description": "",
                    "status_name": null
                }
            ],
            "first_page_url": "https://dev8.yunzmall.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "https://dev8.yunzmall.com/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "https://dev8.yunzmall.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    }
  }

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
level_name string 经销商等级名称
push_num int 需要直推多少个经销商
has_upgrade bool 是否开启升级条件设置
price float 累计消费达多少元
have_push_num int 已直推多少经销商
self_price float 已消费多少元
has_buy_goods bool 是否已满足购买指定商品(true=已满足)
goods_list.title string 商品名称
goods_list.thumb string 商品图片
goods_list.description string 商品描述
goods_list.price float 商品价格

新增参数说明:

参数名 类型 说明
team_dividend_status int 是否开启直推xx个经销商并累计消费xx条件 1开启 0关闭
goods_buy_status int 是否开启购买指定商品条件条件 1开启 0关闭
group_child_goods_contribution_status int 是否开启团队下级累计获得xx贡献值条件 1开启 0关闭
first_child_goods_contribution_status int 是否开启直推下级累计获得xx贡献值条件 1开启 0关闭
first_child_goods_contribution float 直推下级需要累计获得多少贡献值才能升级
group_child_goods_contribution float 团队下级需要累计获得多少贡献值才能升级
actual_first_child_goods_contribution float 当前会员直推下级累计获得贡献值
actual_group_child_goods_contribution float 当前会员团队下级累计获得贡献值
goods_contribution_plugin_name string 贡献值自定义名称
up_type int 升级方式 1与(需要满足所有条件) 0或(满足其中一个条件)

备注:

  • 更多返回错误代码请看首页的错误代码描述