~~~[api]
post:/login/index
*string:username#賬號
*string:password#密碼
<<<
success
{
"code": 0,
"msg": "登錄成功",
"url": "http://www.hmoore.net/book/xtuo/truck-pass/edit",
"wait": 3,
"data": {
"id": 1,
"avatar": "/favicon.ico",
"username": "jwj",
"token": "3c618299b4ab2c0d641b6d86f058e94c",
"active_time": "2020-05-21 15:50:31",
"create_time": "2020-05-21 15:50:31"
}
}
<<<
error
{
"code": 1,
"msg": "密碼錯誤",
"url": "javascript:history.back()",
"wait": 3,
"data": null
}
~~~