1.授权登入
~~~[api]
post:https://admin.nineopen.com/wx/url
url#跳转地址
<<<
success
{
"status": 0,
"message": "success",
"data": []
}
<<<
error
~~~
2.静默登入
~~~[api]
post:https://admin.nineopen.com/wx/url2
url#跳转地址
<<<
success
{
"status": 0,
"message": "success",
"data": []
}
<<<
error
~~~
3.用户登入
~~~[api]
post:https://admin.nineopen.com/wx/login
code#
<<<
success
{
"status": 0,
"message": "success",
"data": [
"unionid": "oGwVH0lqS5-u2ts2Z2s1zCUjQWeM",
"openid": "odZYy1pktjHBjRkc1figVYu5fZTQ",
"phone": null,
"card_top": null,
"card_over": null,
"nickname": "ms",
"headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTI1ADRncLTtVib1xoOMdw3iazicrUX4Qt7ynyeib8QQnk1IFoianVFNShgA7MEgSXsCnvXyXu0Dxn7Zlbw/132",
"area_id": null,
"home_address": null,
"latitude": null,
"longitude": null,
"wallet": 0,
"last_time": "2019-03-13 14:29:14",
"login_count": 1,
"role": {
"shop": -1,
"colonel": -1,
"express1": -1,
"express2":-1,
"have_address": -1
},
"state": 0,
"state_id": null,
"create_time": "2019-03-13 14:29:14"
]
}
注释:"role": {
"shop": -1,
"colonel": -1,
"express1": -1,
"express2": -1,
"have_address": -1,
"is_permit":-1
},-1=>角色未完善资料,0=>待审核,1=>审核通过,2=>审核未通过(第一次完善资料后的审核结果);
have_address:-1=>未填写,1=>已填写
注释2:state:0未审核1待审核2审核通过3审核未通过(用户认证审核结果)
注释3:is_permit:-1未上传0待审核1审核通过2审核未通过(营业执照审核结果)
<<<
error
~~~
4.微信jsdk配置参数
~~~[api]
post:https://admin.nineopen.com/wx/config
url#
<<<
success
{
"status": 0,
"message": "success",
"data": [
"status": 0,
"message": "success",
"data": [
"appId": "wxa5ed04228937e0fc",
"timestamp": 1552617514,
"nonceStr": "0ba5aa4f474f49c944ad268a01a87be0",
"signature": "dda75ac175ecf03275da8ebf779af337dc8545cf"
]
}
<<<
error
~~~
5.获取微信基础token
~~~[api]
post:https://admin.nineopen.com/wx/token
<<<
success
'19_xcK94QpCvWJ8fENXpKqzbyKw8Eo9KpWyagx_ydWQPikxN8BOraRj-d77LAZ0zDbX6ymtsEcqDpA0IZCYk5of-PFIal0Hi_-QQwsR0jp6nlFDTlfELhJON-DnxpJqRB8Rf9Ndz2A3sIhNanfmEAPiAGAXTI'
<<<
error
~~~