ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获取用户信息 > 根据 `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": "登录已失效,请重新登录" } ~~~