简要描述:

  • 会员等级同步接口

请求域名:

  • http://xx.com

请求URL:

GET/plugin.level-cogradient.admin.set.index

参数:

参数名 是否必须 类型 说明
type_id int 升级id
data array 数组

返回示例:

{
    "result": 1,
    "msg": "成功返回数据",
    "data": {
        "member": {
            "total": 4,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 4,
            "data": [
                {
                    "id": 2,
                    "uniacid": 3,
                    "level": 1,
                    "level_name": "铁牌会员",
                    "order_money": "2000",
                    "order_count": "5",
                    "goods_id": "96,384,386",
                    "discount": "",
                    "created_at": "2017-09-18 17:49:33",
                    "updated_at": "2020-01-13 16:36:07",
                    "deleted_at": null,
                    "is_default": 0,
                    "validity": 30,
                    "freight_reduction": "",
                    "interests_rules": null,
                    "description": "",
                    "team_performance": null
                },
                {
                    "id": 4,
                    "uniacid": 3,
                    "level": 2,
                    "level_name": "等级二",
                    "order_money": "",
                    "order_count": null,
                    "goods_id": "0",
                    "discount": "9",
                    "created_at": "2017-09-30 14:34:21",
                    "updated_at": "2017-10-24 20:19:40",
                    "deleted_at": null,
                    "is_default": 0,
                    "validity": 0,
                    "freight_reduction": null,
                    "interests_rules": null,
                    "description": null,
                    "team_performance": null
                },
                {
                    "id": 5,
                    "uniacid": 3,
                    "level": 3,
                    "level_name": "等级三",
                    "order_money": "200",
                    "order_count": null,
                    "goods_id": "0",
                    "discount": "",
                    "created_at": "2017-09-30 14:37:30",
                    "updated_at": "2017-09-30 14:42:44",
                    "deleted_at": null,
                    "is_default": 0,
                    "validity": 0,
                    "freight_reduction": null,
                    "interests_rules": null,
                    "description": null,
                    "team_performance": null
                },
                {
                    "id": 6,
                    "uniacid": 3,
                    "level": 4,
                    "level_name": "等级四",
                    "order_money": "",
                    "order_count": "",
                    "goods_id": "0",
                    "discount": "",
                    "created_at": "2017-09-30 14:42:39",
                    "updated_at": "2018-01-18 16:40:21",
                    "deleted_at": null,
                    "is_default": 0,
                    "validity": 0,
                    "freight_reduction": null,
                    "interests_rules": null,
                    "description": null,
                    "team_performance": null
                }
            ]
        },
        "commission": {
            "total": 2,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 2,
            "data": [
                {
                    "id": 3,
                    "uniacid": 3,
                    "name": "皇冠",
                    "level": 1,
                    "first_level": "18.00",
                    "second_level": "16.00",
                    "third_level": "1.00",
                    "upgraded": "a:2:{s:14:\"self_buy_count\";s:1:\"3\";s:16:\"self_order_after\";s:1:\"1\";}",
                    "created_at": "2017-10-10 17:24:48",
                    "updated_at": "2019-08-07 14:13:20",
                    "deleted_at": null,
                    "is_manage": null,
                    "additional_ratio": "0.00"
                },
                {
                    "id": 4,
                    "uniacid": 3,
                    "name": "分销等级二",
                    "level": 2,
                    "first_level": "10.00",
                    "second_level": "10.50",
                    "third_level": "10.00",
                    "upgraded": "a:2:{s:14:\"self_buy_count\";s:2:\"10\";s:16:\"self_order_after\";s:1:\"1\";}",
                    "created_at": "2017-11-22 15:41:03",
                    "updated_at": "2019-08-07 14:17:59",
                    "deleted_at": null,
                    "is_manage": null,
                    "additional_ratio": "0.00"
                }
            ]
        },
        "teamDividend": {
            "total": 4,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 4,
            "data": [
                {
                    "id": 1,
                    "uniacid": 3,
                    "level_name": "团队代理等级一",
                    "level_weight": 1,
                    "dividend_ratio": 5.55,
                    "code_num": "a:4:{s:7:\"level_6\";s:1:\"0\";s:7:\"level_4\";s:1:\"0\";s:7:\"level_2\";s:1:\"0\";s:7:\"level_1\";s:1:\"0\";}",
                    "award_hierarchy": 0,
                    "award_ratio": "0",
                    "created_at": "2017-08-04 09:16:09",
                    "updated_at": "2019-11-30 12:23:58",
                    "deleted_at": null,
                    "upgrade_reward_point": "0.00",
                    "upgrade_reward_gold": "0.00",
                    "award_gratitude": "0",
                    "hierarchy_limit": 0,
                    "auto_withdraw_day": "",
                    "auto_withdraw_period": "",
                    "current_md": null
                },
                {
                    "id": 2,
                    "uniacid": 3,
                    "level_name": "团队代理等级二",
                    "level_weight": 3,
                    "dividend_ratio": 10,
                    "code_num": "a:3:{s:7:\"level_4\";s:1:\"1\";s:7:\"level_2\";s:1:\"1\";s:7:\"level_1\";s:1:\"1\";}",
                    "award_hierarchy": 0,
                    "award_ratio": "0",
                    "created_at": "2017-09-11 17:32:46",
                    "updated_at": "2018-07-20 10:29:43",
                    "deleted_at": null,
                    "upgrade_reward_point": "0.00",
                    "upgrade_reward_gold": "0.00",
                    "award_gratitude": "1",
                    "hierarchy_limit": 3,
                    "auto_withdraw_day": null,
                    "auto_withdraw_period": null,
                    "current_md": null
                },
                {
                    "id": 4,
                    "uniacid": 3,
                    "level_name": "经销商等级4",
                    "level_weight": 4,
                    "dividend_ratio": 10,
                    "code_num": "a:4:{s:7:\"level_4\";s:2:\"10\";s:7:\"level_2\";s:1:\"8\";s:7:\"level_1\";s:1:\"6\";s:7:\"level_6\";s:1:\"5\";}",
                    "award_hierarchy": 0,
                    "award_ratio": "0",
                    "created_at": "2017-10-31 16:41:46",
                    "updated_at": "2019-02-13 14:06:45",
                    "deleted_at": null,
                    "upgrade_reward_point": "0.00",
                    "upgrade_reward_gold": "1.00",
                    "award_gratitude": "0",
                    "hierarchy_limit": 0,
                    "auto_withdraw_day": "",
                    "auto_withdraw_period": "",
                    "current_md": null
                },
                {
                    "id": 6,
                    "uniacid": 3,
                    "level_name": "测试",
                    "level_weight": 5,
                    "dividend_ratio": 0,
                    "code_num": "a:4:{s:7:\"level_4\";s:1:\"2\";s:7:\"level_2\";s:1:\"3\";s:7:\"level_1\";s:1:\"0\";s:7:\"level_6\";s:1:\"0\";}",
                    "award_hierarchy": 0,
                    "award_ratio": "0",
                    "created_at": "2018-08-06 11:25:26",
                    "updated_at": "2019-02-13 14:07:33",
                    "deleted_at": null,
                    "upgrade_reward_point": "0.00",
                    "upgrade_reward_gold": "0.00",
                    "award_gratitude": "0",
                    "hierarchy_limit": 0,
                    "auto_withdraw_day": "",
                    "auto_withdraw_period": "",
                    "current_md": null
                }
            ]
        },
        "staffLevel": {
            "total": 1,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "id": 1,
                    "uniacid": 3,
                    "level_name": "招商大神",
                    "level_weight": 1,
                    "bonus_ratio": "30.000",
                    "upgrate": {
                        "is_open_supplier_count": "1",
                        "supplier_count": "10",
                        "goods_id": ""
                    },
                    "created_at": "2019-11-26 14:51:25",
                    "updated_at": "2019-11-26 14:51:25",
                    "deleted_at": null,
                    "condition": 1,
                    "goods": ""
                }
            ]
        },
        "merchantLevel": {
            "total": 2,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 2,
            "data": [
                {
                    "id": 1,
                    "uniacid": 3,
                    "level_name": "区级招商",
                    "level_weight": 1,
                    "bonus_ratio": "11.000",
                    "upgrade_type": "1",
                    "become": "a:3:{i:1;s:5:\"10000\";i:2;s:2:\"10\";i:3;s:2:\"20\";}",
                    "created_at": "2017-11-30 23:40:17",
                    "updated_at": "2017-12-19 15:45:35",
                    "deleted_at": 0,
                    "condition": 1
                },
                {
                    "id": 2,
                    "uniacid": 3,
                    "level_name": "市招商员",
                    "level_weight": 0,
                    "bonus_ratio": "1.000",
                    "upgrade_type": "3",
                    "become": "a:1:{i:3;s:1:\"3\";}",
                    "created_at": "2018-08-08 09:57:51",
                    "updated_at": "2018-08-08 09:57:51",
                    "deleted_at": 0,
                    "condition": 1
                }
            ]
        },
        "microShop": {
            "total": 1,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 1,
            "data": [
                {
                    "id": 1,
                    "uniacid": 3,
                    "level_weight": 1,
                    "level_name": "1",
                    "bonus_ratio": "1.00",
                    "goods_id": 1,
                    "created_at": "2017-08-03 17:29:46",
                    "updated_at": "2017-08-03 17:29:46",
                    "deleted_at": 111
                }
            ]
        },
        "mryt": {
            "total": 4,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 4,
            "data": [
                {
                    "id": 1,
                    "uniacid": 3,
                    "level_weight": 2,
                    "level_name": "总监",
                    "team_manage_ratio": "1",
                    "team": "1.00",
                    "thankful": "1.00",
                    "train_ratio": "1",
                    "direct": "1.00",
                    "created_at": "2018-10-28 16:31:18",
                    "updated_at": "2018-12-29 16:11:10",
                    "contract": 0,
                    "tier": 0,
                    "tier_amount": "0.00",
                    "auto_withdraw": 1,
                    "withdraw_time": 26,
                    "current_md": "12-1",
                    "username": null,
                    "password": null,
                    "is_username": null
                },
                {
                    "id": 2,
                    "uniacid": 3,
                    "level_weight": 3,
                    "level_name": "总经理",
                    "team_manage_ratio": "1",
                    "team": "1.00",
                    "thankful": "1.00",
                    "train_ratio": "1",
                    "direct": "1.00",
                    "created_at": "2018-10-28 16:35:30",
                    "updated_at": "2018-12-19 10:51:23",
                    "contract": 0,
                    "tier": 0,
                    "tier_amount": "0.00",
                    "auto_withdraw": 1,
                    "withdraw_time": 13,
                    "current_md": "",
                    "username": null,
                    "password": null,
                    "is_username": null
                },
                {
                    "id": 12,
                    "uniacid": 3,
                    "level_weight": 1,
                    "level_name": "啊",
                    "team_manage_ratio": "1",
                    "team": "1.00",
                    "thankful": "1.00",
                    "train_ratio": "1",
                    "direct": "1.00",
                    "created_at": "2019-02-11 10:55:47",
                    "updated_at": "2019-02-11 10:55:47",
                    "contract": 0,
                    "tier": 1,
                    "tier_amount": "1.00",
                    "auto_withdraw": 0,
                    "withdraw_time": 0,
                    "current_md": "0",
                    "username": null,
                    "password": null,
                    "is_username": null
                },
                {
                    "id": 13,
                    "uniacid": 3,
                    "level_weight": 4,
                    "level_name": "啊",
                    "team_manage_ratio": "1",
                    "team": "1.00",
                    "thankful": "1.00",
                    "train_ratio": "1",
                    "direct": "1.00",
                    "created_at": "2019-02-11 10:56:47",
                    "updated_at": "2019-02-11 10:56:47",
                    "contract": 0,
                    "tier": 1,
                    "tier_amount": "1.00",
                    "auto_withdraw": 0,
                    "withdraw_time": 0,
                    "current_md": "0",
                    "username": null,
                    "password": null,
                    "is_username": null
                }
            ]
        },
        "room": null,
        "title": "基础设置",
        "set": {
            "mryt": {
                "1": {
                    "member_level_id": "2",
                    "commission_id": "3",
                    "team_dividend_id": "1",
                    "staff_level_id": "1",
                    "merchant_level_id": "1",
                    "micro_shop_id": "1",
                    "room_id": "0"
                },
                "2": {
                    "member_level_id": "2",
                    "commission_id": "3",
                    "team_dividend_id": "2",
                    "staff_level_id": "1",
                    "merchant_level_id": "1",
                    "micro_shop_id": "1",
                    "room_id": "0"
                },
                "12": {
                    "member_level_id": "5",
                    "commission_id": "4",
                    "team_dividend_id": "4",
                    "staff_level_id": "1",
                    "merchant_level_id": "2",
                    "micro_shop_id": "1",
                    "room_id": "0"
                },
                "13": {
                    "member_level_id": "6",
                    "commission_id": "4",
                    "team_dividend_id": "6",
                    "staff_level_id": "1",
                    "merchant_level_id": "2",
                    "micro_shop_id": "1",
                    "room_id": "0"
                }
            },
            "type_id": "7",
            "is_open": "1"
        },
        "type_id": 1
    }
}