API接口文档

会员购买

创建于 2021-10-19 / 最近更新于 2021-10-19 / 74

简要描述

会员购买

接口版本

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

请求URL

plugins/index&pluginsname=membershiplevelvip&pluginscontrol=buy&pluginsaction=index

请求方式

POST

公共参数

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

请求参数

返回示例

正确时返回

{
    "msg": "处理成功",
    "code": 0,
    "data": {
        "base": {
            "application_name": "会员等级",
            "level_rules": "0",
            "order_close_time": "30",
            "profit_order_create_time": "5",
            "profit_order_settlement_time": "10800",
            "user_poster_share_title": "",
            "user_poster_share_desc": "",
            "banner_top_title": "超级会员专享超大容量,极速下载特权",
            "banner_middle_name": "",
            "banner_bottom_content": "

hello

", "not_opening_vip_desc": "", "user_vip_center_notice": "", "is_admin_user_level_show": "1", "is_user_buy": "1", "is_supported_renew_old_order": "0", "is_commission": "1", "is_propaganda": "1", "banner_bg_images": "https://d1.shopxo.vip/static/plugins/images/membershiplevelvip/index-bg.png" }, "data": [ { "id": "4", "name": "VIP1", "images_url": "", "rules_min": "100", "rules_max": "999999", "order_price": "100.00", "full_reduction_price": "5.00", "discount_rate": "0", "is_enable": "1", "is_supported_pay_buy": "1", "is_supported_renew": "1", "pay_period_rules": [ { "number": "3650", "value": "10", "unit": "年", "price": "288", "commission": "5" } ], "add_time": "2020-12-03 11:59:14", "upd_time": "2021-10-18 18:26:25", "images_url_old": "", "add_time_time": "2020-12-03 11:59:14", "add_time_date": "2020-12-03" }, { "id": "5", "name": "VIP2", "images_url": "", "rules_min": "0", "rules_max": "0", "order_price": "100.00", "full_reduction_price": "10.00", "discount_rate": "0", "is_enable": "1", "is_supported_pay_buy": "1", "is_supported_renew": "0", "pay_period_rules": "", "add_time": "2020-12-03 17:22:27", "upd_time": "2020-12-30 18:04:56", "images_url_old": "", "add_time_time": "2020-12-03 17:22:27", "add_time_date": "2020-12-03" }, { "id": "7", "name": "VIPX", "images_url": "", "rules_min": "0", "rules_max": "0", "order_price": "0.00", "full_reduction_price": "0.00", "discount_rate": "0.8", "is_enable": "1", "is_supported_pay_buy": "1", "is_supported_renew": "0", "pay_period_rules": [ { "number": "365", "value": "1", "unit": "年", "price": "1", "commission": "" }, { "number": "1000", "value": "2.74", "unit": "年", "price": "0.01", "commission": "" } ], "add_time": "2021-02-26 12:08:02", "upd_time": "2021-10-19 11:39:21", "images_url_old": "", "add_time_time": "2021-02-26 12:08:02", "add_time_date": "2021-02-26" }, { "id": "8", "name": "城市合伙人", "images_url": "", "rules_min": "0", "rules_max": "0", "order_price": "0.00", "full_reduction_price": "0.00", "discount_rate": "0", "is_enable": "1", "is_supported_pay_buy": "1", "is_supported_renew": "0", "pay_period_rules": [ { "number": "2", "value": "2", "unit": "天", "price": "0.02", "commission": "" } ], "add_time": "2021-07-14 18:02:08", "upd_time": "", "images_url_old": "", "add_time_time": "2021-07-14 18:02:08", "add_time_date": "2021-07-14" } ] } }

错误时返回

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

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
data array 会员等级数据

备注

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

0 人点赞过