简要描述:

  • 区域代理信息接口

请求域名:

请求URL:

POST: route=plugin.micro.frontend.controllers.MicroShop.set-shop

参数:

参数名 是否必须 类型 说明
i int 公众号ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "status": 1,
        "micro_shop": {
            "id": 1,
            "uniacid": 2,
            "member_id": 1,
            "level_id": 7,
            "shop_name": "测试微店",
            "shop_avatar": "http://sp.com/attachment/images/2/2017/05/Iyh2eGuJYc22ya6yYhUyKkXjwhpxyk.jpg",
            "signature": "个性签名",
            "shop_background": "0",
            "created_at": "2017-05-15 10:39:22",
            "updated_at": "1970-01-01 08:00:00",
            "deleted_at": 0,
            "has_one_member": {
                "uid": 1,
                "uniacid": 2,
                "mobile": "15220038141",
                "email": "628051cfda261edb657ee0a6fdc472bc@we7.cc",
                "password": "09b583f35e8a385723b56888e2ebb740",
                "salt": "ho3EXW7W",
                "groupid": 2,
                "credit1": "14164.40",
                "credit2": "12634.97",
                "credit3": "0.00",
                "credit4": "0.00",
                "credit5": "0.00",
                "credit6": "0.00",
                "createtime": 1470723551,
                "realname": "刘洁宜",
                "nickname": "碳酸果汁",
                "avatar": "http://wx.qlogo.cn/mmopen/Dv08X2Uo7APTwbhzHicNbSErluJ7YC1wCqrz2uuwkDqicGwqkpd9aLWQ8FcibMd0ma8JMK3PgDvzEmToTY6bxjbwticnzfy3Yib6ic/0",
                "qq": "",
                "vip": 0,
                "gender": 0,
                "birthyear": 0,
                "birthmonth": 0,
                "birthday": 0,
                "constellation": "",
                "zodiac": "",
                "telephone": "",
                "idcard": "",
                "studentid": "",
                "grade": "",
                "address": "",
                "zipcode": "",
                "nationality": "中国",
                "resideprovince": "",
                "residecity": "",
                "residedist": "",
                "graduateschool": "",
                "company": "",
                "education": "",
                "occupation": "",
                "position": "",
                "revenue": "",
                "affectivestatus": "",
                "lookingfor": "",
                "bloodtype": "",
                "height": "",
                "weight": "",
                "alipay": "",
                "msn": "",
                "taobao": "",
                "site": "",
                "bio": "",
                "interest": "",
                "credit20": "0.00"
            },
            "has_one_micro_shop_level": {
                "id": 7,
                "uniacid": 2,
                "level_weight": 3,
                "level_name": "特级微店",
                "bonus_ratio": "30.00",
                "goods_id": 50,
                "created_at": "2017-05-10 16:17:44",
                "updated_at": "2017-05-10 16:17:44",
                "deleted_at": 0
            }
        }
    }
}

错误时返回:

{
    "result":0,
    "msg":"未检测到数据!",
    "data": {
    }
}

返回参数说明:

参数名 类型 说明
shop_name string 微店名称
shop_avatar string 微店头像
shop_background string 店招背景
signature string 个性签名

备注:

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