[TOC]
* * * * *
### WeEngine Android、IOS Member api
#### 個人中心
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"id": "", //用戶ID
"avatar": "", //用戶頭像
"nickname": "", //用戶昵稱
"moneytext": "余額", //余額名稱
"credittext": "積分", //積分名稱
"credit1": "0.00", //用戶積分
"credit2": "9980.10", //用戶余額
"levelurl": "",
"levelname": "普通會員", //用戶等級
"statics": {
"order_0": "0", //待付款
"order_1": "0", //待發貨
"order_2": "1", //待收貨
"order_4": "0", //退換貨
"cart": "0", //購物車
"favorite": "0", //關注
"coupon": "0" //優惠券
},
"url": ""
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 個人詳情
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.info
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"member": {
"id": "4600",
"uniacid": "4",
"uid": "0",
"groupid": "0",
"level": "0",
"agentid": "0",
"openid": "wap_user_4_13053237223",
"realname": "測試",
"mobile": "13053237223",
"pwd": "927bbbe7d93bf2ac5f25f071aff3e2ba",
"weixin": "shineky",
"content": null,
"createtime": "1508123138",
"agenttime": "0",
"status": "0",
"isagent": "0",
"clickcount": "0",
"agentlevel": "0",
"noticeset": null,
"nickname": "shinkey",
"credit1": "6.00",
"credit2": "9979.10",
"birthyear": "2017",
"birthmonth": "11",
"birthday": "2017-11-11",
"gender": "0",
"avatar": "https://127.0.0.1/attachment/images/4/2017/11/emlElMe8YZxgf1B1Xw71F1ee8XwbA1.jpg",
"province": "北京市",
"city": "北京轄區",
"area": "",
"childtime": "0",
"inviter": "0",
"agentnotupgrade": "0",
"agentselectgoods": "0",
"agentblack": "0",
"fixagentid": "0",
"diymemberid": "0",
"diymemberfields": null,
"diymemberdata": null,
"diymemberdataid": "0",
"diycommissionid": "0",
"diycommissionfields": null,
"diycommissiondata": null,
"diycommissiondataid": "0",
"isblack": "0",
"username": "",
"commission_total": "0.00",
"endtime2": "0",
"ispartner": "0",
"partnertime": "0",
"partnerstatus": "0",
"partnerblack": "0",
"partnerlevel": "0",
"partnernotupgrade": "0",
"diyglobonusid": "0",
"diyglobonusdata": null,
"diyglobonusfields": null,
"isaagent": "0",
"aagentlevel": "0",
"aagenttime": "0",
"aagentstatus": "0",
"aagentblack": "0",
"aagentnotupgrade": "0",
"aagenttype": "0",
"aagentprovinces": null,
"aagentcitys": null,
"aagentareas": null,
"diyaagentid": "0",
"diyaagentdata": null,
"diyaagentfields": null,
"salt": "nvnnvc6ycBC5Nbge",
"mobileverify": "1",
"mobileuser": "0",
"carrier_mobile": "0",
"isauthor": "0",
"authortime": "0",
"authorstatus": "0",
"authorblack": "0",
"authorlevel": "0",
"authornotupgrade": "0",
"diyauthorid": "0",
"diyauthordata": null,
"diyauthorfields": null,
"authorid": "0",
"comefrom": "app_mobile",
"openid_qq": null,
"openid_wx": null,
"diymaxcredit": "0",
"maxcredit": "0",
"datavalue": "",
"openid_wa": null,
"nickname_wechat": "",
"avatar_wechat": "",
"updateaddress": "1",
"membercardid": "",
"membercardcode": "",
"membershipnumber": "",
"membercardactive": "0"
},
"url": "https://127.0.0.1"
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 更新資料
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.info.submit
*string:openid=默認值#openid
*string:realname=默認值#姓名
*string:mobile=默認值#手機號
*string:nickname=默認值#昵稱
string:avatar=默認值#頭像
string:weixin=默認值#微信號
string:birth=默認值#生日 年月日(1970-01-01)
string:city=默認值# 省 市 (安徽-合肥)
<<<
success
{
"status": 1,
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 頭像上傳
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=util.uploader.appupload
*string:openid=默認值#openid
<<<
success
{
"status": 1,
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~