## 獲取用戶信息
~~~[api]
post:/index/User/userinfo
varchar:user_sid=680130509534c15893e3603bd782d3cb #登錄密鑰
int:user_uid=1#登錄的該用戶id
<<<
success
{
"code": 1,
"msg": "獲取成功",
"data": {
"id": 1, //用戶id
"nickname": "B$boy", //微信昵稱
"mid": 10001, //會員id
"name": "小哈", //會員名字
"phone": "12345678912", //會員手機
"balance": "870", //余額
"point": "64", //積分
"discount": "100%", //折扣
"city": "中國-江西-贛州", //通訊地址
"sex": 1, //性別
"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIoyT5lUnfCSicNIib24AuLSJMjZ65bH0fTf9PiczvVvKyMe1ArszH8KYgZepVUYDouaO5GtLqqMoZOw/132", //頭像
"openid": "oa5Zy54LOmX1sA7fb64KBWKbJ_1w",
"status": 1,
"istrue": 1,
"money": "0.00", //余額
"role": 1, //0=店員;1=顧客;2=店長
"integral": 0
}
}
<<<
error
{
"code": 0,
"msg": "未登錄",
"url": "/index/login/index.html"
}
~~~