简要描述:

  • 微店中心首页

请求URL:

GET:一级域名/index.php?s=/wapapi/addons/execute/addons/microshop/controller/microshop/action/microShopCenter

参数:

|参数名|是否必须|类型|说明| |shopkeeper_id |否 |int |店主id |通过分享进入某一个店主的微店

返回示例:

正确时返回:

{
  "code": 0,
  "data": {
    "uid": 267,
    "member_level": 72,
    "memo": "",
    "reg_time": 1542880584,
    "website_id": 26,
    "distributor_level_id": 11,
    "isdistributor": 2,
    "apply_distributor_time": null,
    "become_distributor_time": null,
    "update_distributorlevel_time": null,
    "referee_id": null,
    "real_name": "",
    "regional_agent": null,
    "agency_area": null,
    "global_agency_level": null,
    "proxy_area": "",
    "up_level_time": null,
    "down_level_time": null,
    "is_global_agent": 0,
    "become_global_agent_time": null,
    "apply_global_agent_time": null,
    "global_agent_level_id": null,
    "up_global_level_time": null,
    "down_global_level_time": null,
    "is_area_agent": 0,
    "become_area_agent_time": null,
    "apply_area_agent_time": null,
    "area_agent_level_id": null,
    "up_area_level_time": null,
    "down_area_level_time": null,
    "agent_area_id": "",
    "area_type": null,
    "is_team_agent": 0,
    "become_team_agent_time": null,
    "apply_team_agent_time": null,
    "team_agent_level_id": null,
    "up_team_level_time": null,
    "down_team_level_time": null,
    "default_referee_id": null,
    "member_name": "我在啊",
    "mobile": "18539772378",
    "extend_code": "",
    "custom_area": "",
    "custom_global": "",
    "custom_team": "",
    "distributor_apply": "",
    "isshopkeeper": 0,
    "become_shopkeeper_time": "1970-01-01 08:00:00",
    "apply_shopkeeper_time": null,
    "microshop_level_id": 2,
	"microshop_logo": null,
    "shopRecruitment_logo": null,
    "microshop_name": null,
    "microshop_introduce": null,
    "microshop_goods": null,
    "microshop_set": {
	  "goodsid": [
        "306",
        "310",
        "309",
        "308",
        "307"
      ]
      "website_id": 26,
      "microshop_pattern": "1",
      "shopKeeper_check": "1",
      "goods_id": "306,310,309,308,307",
 "goods_info": [
        {
          "pic": "upload/26/51/common/9edbdf8ab2cd8166d2df25998061efbc2.gif",
          "goods_name": "ttt",
          "goods_id": 306,
          "price": "13.00"
        },
        {
          "pic": "https://pic.vslai.com.cn/upload/26/common/d8aae1f11864d77eda7a61286be6cb922.jpg",
          "goods_name": "选运费模板",
          "goods_id": 307,
          "price": "11.00"
        },
        {
          "pic": "upload/26/51/common/d241aa0ff162e90d1aed25710c4a04822.jpg",
          "goods_name": "哦哦哦",
          "goods_id": 308,
          "price": "22.00"
        },
        {
          "pic": "upload/26/51/common/d241aa0ff162e90d1aed25710c4a04822.jpg",
          "goods_name": "去去去去",
          "goods_id": 309,
          "price": "12.00"
        },
        {
          "pic": "https://pic.vslai.com.cn/upload/26/common/70b2c0a406388c56f85952aaa7fa7a792.jpg",
          "goods_name": "123",
          "goods_id": 310,
          "price": "13.00"
        }
      ],
      "is_use": 1
    },
    "profit": "0.00",
    "withdrawals": "0.00",
    "freezing_profit": "0.00",
    "total_profit": 0,
    "user_heading": "https://pic.vslai.com.cn/upload/26/avator/1543820405.jpeg",
    "shopkeeper_level_name": "默认店主等级",
    "shopkeeper_level_time": "无期限"
  }
}

错误时返回:

{
    "code": -1,
    "message": "获取失败"
}

返回参数说明:

参数名 类型 说明
member_name string 会员名称
user_heading string 会员头像
isdistributor int 是否为分销商 2是
isshopkeeper int 是否为店主 0不是1是
shopkeeper_level_name string 店主等级名称
become_shopkeeper_time string 成为店主时间
shopkeeper_level_time string 等级到期时间
profit int 可提现收益
total_profit int 累积收益
withdrawals int 已提现收益
microshop_set string 微店设置
shopKeeper_check int 自动成为分销商 1为开启2为为开启,如果该用户不是分销商并且不是店主,开启这个可以购买成为店主的商品自动成为分销商和店主,未开启只能先成为分销商后才能购买成为店主的商品成为店主
goodsid array 成为店主的商品id
microshop_logo string 微店logo
shopRecruitment_logo string 店招logo
microshop_name string 微店名称
microshop_introduce string 微店介绍
microshop_goods string 微店商品id