文档
测试
POST
/login

接口描述

用户登录

请求参数

参数名
类型
描述
必填
appid
String
小程序 appSecret
必填
secret
String
小程序 appSecret
必填
js_code
String
登录时获取的 code
必填

响应参数

参数名
类型
描述
必填
status
String
ok/username or password error
必填
customerID
varchar
顾客账号
必填
memLength
int
会员剩余时长
必填
resStatus
int
订座状态 0(当前未订座) 1(当前已经订座中)
必填

说明 / 示例

服务器需要使用++GET https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code++接口进行用户登录返回唯一标识openid,通过唯一标识确定顾客后返回数据。 初次登录时要未为用户新建customerID等信息