简要描述:

  • 通过门店ID获取门店信息

请求URL:

plugin.store-cashier.external.store.operation.getStoreById

参数:

参数名 是否必须 类型 说明
store_id int 门店ID

返回示例:

正确时返回:

{
result: 1,
msg: "获取门店信息成功",
data: {
id: 1,
uniacid: 3,
uid: 1,
store_name: "Joe的店",
thumb: "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/05/w50mOuX9bMSDXbhG01GD1g0t9mmuhM.jpg",
category_id: 1,
province_id: 440000,
city_id: 440100,
district_id: 440111,
street_id: 440111002,
address: "百信广场",
longitude: "113.266943",
latitude: "23.191411",
mobile: "15219025049",
store_introduce: "门店介绍",
username: "",
password: "yunzhong",
template_id: "",
salers: {
1: {
openid: "or2pXwV2RQk69uTjrq3NOq6MzjT8",
uid: "1",
nickname: "卡卡",
avatar: "http://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132"
}
},
cashier_id: 9,
created_at: "2017-08-23 18:49:32",
updated_at: "2018-11-22 18:19:03",
deleted_at: null,
business_hours_start: "13:00",
business_hours_end: "18:00",
aptitude_imgs: [
"images/3/2018/05/R3UeemEJ83C32QEruuE8G2iiGHPC83.jpg"
],
dispatch_type: [
"2",
"3"
],
affiche: "343434",
user_uid: 8,
information: "<p>2543543</p>",
is_black: 0,
banner_thumb: "https://dev3.yunzshop.com/attachment/images/3/2018/01/TG4sSS4oaU006z60e5O036GJPg006p.jpeg",
is_hide: 0,
specify_show: 0,
boss_uid: 16,
operating_state: 0,
audio_open: 0,
initials: "G",
full_address: "广东省 广州市 白云区 百信广场",
dispatch: "支持自提、核销、",
average_score: 0,
order_total: 289,
has_one_member: {
uid: 1,
uniacid: 3,
mobile: "18026357601",
email: "",
password: "857841595960aa534536ea81a48f0320",
salt: "x1ncvdRl",
groupid: 3,
credit1: "131736.44",
credit2: "253451.73",
credit3: "0.00",
credit4: "0.00",
credit5: "0.00",
credit6: "0.00",
createtime: 1496216761,
realname: "测试",
nickname: "卡卡",
avatar: "http://thirdwx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
qq: "",
vip: 0,
gender: 2,
birthyear: 2016,
birthmonth: 12,
birthday: 16,
constellation: "",
zodiac: "",
telephone: "18026357601",
idcard: "440281199306263826",
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: "",
pay_password: "",
avatar_image: "https://thirdwx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132"
},
has_one_category: {
id: 1,
uniacid: 3,
sort: 0,
name: "门店分类一",
thumb: "images/3/2017/11/geZz18Gt1Th1bh1vtXq11hxxcDqcC8.jpg",
is_open: 1,
created_at: "2017-08-23 18:40:52",
updated_at: "2018-03-09 09:22:17",
deleted_at: null,
open_name: "开启"
}
}
}

错误时返回:

{
	result: 0,
	msg: "参数错误",
	data: [ ]
}
{
	result: 0,
	msg: "未找到门店",
	data: [ ]
}
  

返回参数说明:

参数名 类型 说明
id int ID
uniacid int 公众号id
uid int 会员ID
store_name string 名店名称
thumb int 门店图片
category_id int 门店分类id
province_id int
city_id int
district_id int
street_id int 街道
address string 详细地址
longitude float 经度
latitude float 纬度
mobile string 手机号
store_introduce string 门店介绍
salers arr 通知人
cashier_id int 收银台ID
business_hours_start string 营业时间
business_hours_end string 营业时间
aptitude_imgs arr 轮播图
dispatch_type arr 配送方式
affiche string 公告
information string 详情
banner_thumb string banner图
initials string 地址首字母

备注:

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