## 获取用户信息
> 根据 `tosat` 字段,判读是否需要显示 `msg` 字段的信息
~~~[api]
post:/api/user/info
<<<
success
{
"code": 1,
"msg": "今天首次登录,获得8积分",
"result": {
"id": 1,
"username": "麦当劳",
"points": 33,
"nickname": "jwj",
"gender": 1,
"city": "中国-广东-韶关",
"avatar": "https://wx.qlogo.cn/mmopen/vi_32/u6Gia41XAHjr73jkNyCaqsN89h7t1hdGibu1467kjCEJQnI9Za8C2dxL7Do8yUtmSibJ9qD4lvaEe05abPvibFbYKg/132",
"signin": "2018-09-07",
"status": 1,
"group": 1
},
"toast": true
}
<<<
success
{
"code": 1,
"msg": "获取成功",
"result": {
"id": 1,
"username": "麦当劳",
"points": "33",
"nickname": "jwj",
"gender": 1,
"city": "中国-广东-韶关",
"avatar": "https://wx.qlogo.cn/mmopen/vi_32/u6Gia41XAHjr73jkNyCaqsN89h7t1hdGibu1467kjCEJQnI9Za8C2dxL7Do8yUtmSibJ9qD4lvaEe05abPvibFbYKg/132",
"signin": "2018-09-07",
"status": 1,
"group": 1
},
"toast": false
}
<<<
error
{
"code": 0,
"msg": "登录已失效,请重新登录"
}
~~~