文档
测试

测试登录(用于获取token无需对接)

POST
{{host}}addons/shopro/user/accountLogin

请求参数

参数名
类型
描述
必填
account
string
示例:cGoCRVYrOTHQhzkbLuUi
必填
password
int
示例:123456
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:Logged in successful
必填
time
string
示例:1606725897
必填
data
object
数据字典
必填
userinfo
object
数据字典
必填
id
int
示例:2
必填
username
string
示例:cGoCRVYrOTHQhzkbLuUi
必填
nickname
string
示例:柚夏
必填
mobile
string
示例:19980467793
必填
avatar
string
示例:https://thirdwx.qlogo.cn/mmopen/vi_32/7oeSn8UOiaewNQFuANVzIicuzsawPbZnT9tDr5s683zBiaGR78IqDFHV3Uc5qCyt7uBrwtrh24o2pGXvapia7w2j9w/132
必填
score
int
示例:112
必填
token
string
示例:f5926518-ccb2-4aed-aa39-b7d3949a80c9
必填
user_id
int
示例:2
必填
createtime
int
示例:1606725898
必填
expiretime
int
示例:1609317898
必填
expires_in
int
示例:2592000
必填
code
int
示例:1
必填
msg
string
示例:Logged in successful
必填
time
string
示例:1606728197
必填
data
object
数据字典
必填
userinfo
object
数据字典
必填
id
int
示例:2
必填
username
string
示例:cGoCRVYrOTHQhzkbLuUi
必填
nickname
string
示例:柚夏
必填
mobile
string
示例:19980467793
必填
avatar
string
示例:https://thirdwx.qlogo.cn/mmopen/vi_32/7oeSn8UOiaewNQFuANVzIicuzsawPbZnT9tDr5s683zBiaGR78IqDFHV3Uc5qCyt7uBrwtrh24o2pGXvapia7w2j9w/132
必填
score
int
示例:247
必填
token
string
示例:a02163d3-e64f-4712-b984-320c79960277
必填
user_id
int
示例:2
必填
createtime
int
示例:1606728197
必填
expiretime
int
示例:1609320197
必填
expires_in
int
示例:2592000
必填

说明 / 示例

```{ "code": 1, "msg": "Logged in successful", "time": "1606728197", "data": { "userinfo": { "id": 2, "username": "cGoCRVYrOTHQhzkbLuUi", "nickname": "柚夏", "mobile": "19980467793", "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/7oeSn8UOiaewNQFuANVzIicuzsawPbZnT9tDr5s683zBiaGR78IqDFHV3Uc5qCyt7uBrwtrh24o2pGXvapia7w2j9w/132", "score": 247, "token": "a02163d3-e64f-4712-b984-320c79960277", "user_id": 2, "createtime": 1606728197, "expiretime": 1609320197, "expires_in": 2592000 } } } ```