简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
POST/route=plugin.store-cashier.frontend.store.center.store.index
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 门店id |
has_one_member[mobile] | int | 手机号码(店长) |
has_one_member[username] | string | 店长昵称 |
store_name | string | 门店名称 |
thumb | string | 门店LOGO |
province_id | int | 门店地址(省份ID) |
city_id | int | 门店地址(城市ID) |
district_id | int | 门店地址(区镇ID) |
street_id | int | 门店地址(街道ID) |
address | string | 详细地址 |
latitude | double | 纬度 |
longitude | double | 门店经度 |
mobile | int | 店铺电话 |
store_introduce | string | 门店简介 |
audio_open | int | 语音提醒 0关 1开 |
operating_state | int | 经营状态 0正在经营 1休息 |
business_hours_start] | string | 营业时间(开始)格式 H:i |
business_hours_end | string | 营业时间(结束) |
返回示例:
正确时返回:
{
data: {
address: "百信广场"
audio_open: 0
business_hours_end: "11:00"
business_hours_start: " "
city_id: 440100
district_id: 440111
has_one_member: {
avatar_image: "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/u1TuWe8TE9G8ubSxBecU38E9WP8pbG.jpg"
mobile: ""
nickname: "Lily"
uid: 5
username: "Lily"
}
id: 1
latitude: "23.191411"
longitude: "113.266943"
mobile: "15219025049"
operating_state: 0
province_id: 440000
store_introduce: "门店介绍"
store_name: "Joe的店"
street_id: 440111002
thumb: "http://dev3.yunzshop.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg"
uid: 5
}
msg: "获取成功"
result: 1
}
错误时返回:
{
"result": 0,
"msg": "会员不是门店"
}
备注:
- 更多返回错误代码请看首页的错误代码描述