API接口文档

等级介绍

创建于 2021-10-14 / 最近更新于 2021-10-14 / 102

简要描述

等级介绍

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=distribution&pluginscontrol=introduce&pluginsaction=index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "user_poster_top_desc": [
                "fsdfsd"
            ],
            "user_poster_share_title": "fsdf",
            "user_poster_share_desc": "fsdfsd",
            "is_upper_return": "1",
            "level": "1",
            "self_buy": "0",
            "auto_level_type": "1",
            "is_down_return": "1",
            "down_return_number": "",
            "is_upper_return_integral": "0",
            "upper_return_integral": "1",
            "is_down_return_integral": "0",
            "down_return_integral": "",
            "down_return_integral_people": "",
            "is_appoint_goods": "1",
            "appoint_level_order_min_number": "1",
            "appoint_level_goods_min_number": "1",
            "appoint_goods_profit_number": "1",
            "appoint_goods_sale_number": "1",
            "appoint_goods_sale_price": "",
            "appoint_goods_sale_rate": "2",
            "appoint_goods_repurchase_discount": "0.8",
            "goods_detail_icon": "折扣",
            "is_enable_self_extraction": "1",
            "is_buy_default_extraction_address": "0",
            "is_self_extraction": "0",
            "is_self_extraction_close_upper": "0",
            "extraction_profit_level": "0",
            "self_extraction_apply_desc": [
                "填写好信息申请即可",
                "加入自提点为用户提供取货服务,获取服务提成"
            ],
            "self_extraction_common_notice": [
                "你好、自提取货点顶部公告"
            ],
            "profit_type": "0",
            "profit_settlement_limit_time": "43200",
            "is_show_introduce": "1",
            "user_center_level_desc": [
                "等级介绍顶部描述"
            ],
            "non_conformity_desc": [
                "不符合分销条件描述"
            ],
            "user_center_notice": [
                "分销中心公告"
            ],
            "appoint_level_id": "",
            "is_admin_user_level_show": "1",
            "is_user_menu": "1",
            "is_user_extraction_switch": "1",
            "is_fixed_price_multiple": "1",
            "appoint_goods_sale_is_user": "0",
            "poster_data": {
                "backdrop": "/static/plugins/images/distribution/default-backdrop.png",
                "avatar_width": 60,
                "qrcode_width": 110,
                "avatar_top": 8,
                "avatar_left": 120,
                "nickname_top": 72,
                "nickname_left": 113,
                "qrcode_top": 95,
                "qrcode_left": 95,
                "avatar_border_style": 2,
                "qrcode_border_style": 0,
                "nickname_color": "#666",
                "nickname_auto_center": 1,
                "operation_time": 1627370394
            },
            "default_level_images": "",
            "default_qrcode_logo": "",
            "default_level_images_old": "",
            "default_qrcode_logo_old": "",
            "appoint_level_goods_ids": [],
            "appoint_level_goods_list": [],
            "appoint_profit_goods_ids": [],
            "appoint_profit_goods_list": [],
            "appoint_sale_goods_ids": [],
            "appoint_sale_goods_list": [],
            "appoint_repurchase_goods_ids": [],
            "appoint_repurchase_goods_list": [],
            "appoint_level_name": ""
        },
        "level_list": [
            {
                "id": "1",
                "name": "普通分销",
                "images_url": "https://d1.shopxo.vip/static/plugins/images/distribution/default-level.png",
                "rules_min": "0",
                "rules_max": "0",
                "level_rate_one": "10",
                "level_rate_two": "5",
                "level_rate_three": "3",
                "down_return_rate": "0",
                "self_buy_rate": "0",
                "force_current_user_rate_one": "0",
                "force_current_user_rate_two": "0",
                "force_current_user_rate_three": "0",
                "is_level_auto": "1",
                "is_enable": "1",
                "add_time": "2021-08-02 12:57:00",
                "upd_time": "",
                "images_url_old": "",
                "rules_msg": "无限制",
                "add_time_time": "2021-08-02 12:57:00",
                "add_time_date": "2021-08-02"
            },
            {
                "id": "2",
                "name": "高级分销",
                "images_url": "https://d1.shopxo.vip/static/plugins/images/distribution/default-level.png",
                "rules_min": "800",
                "rules_max": "9000",
                "level_rate_one": "20",
                "level_rate_two": "10",
                "level_rate_three": "5",
                "down_return_rate": "0",
                "self_buy_rate": "0",
                "force_current_user_rate_one": "0",
                "force_current_user_rate_two": "0",
                "force_current_user_rate_three": "0",
                "is_level_auto": "1",
                "is_enable": "1",
                "add_time": "2021-10-13 13:22:00",
                "upd_time": "",
                "images_url_old": "",
                "rules_msg": "800~9000元",
                "add_time_time": "2021-10-13 13:22:00",
                "add_time_date": "2021-10-13"
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
level_list array 等级列表

备注

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

0 人点赞过