|
@@ -15,7 +15,7 @@
|
|
|
var wx_code = getUrlParam('code');
|
|
|
var wx_state = getUrlParam('state');
|
|
|
var userData = '';
|
|
|
- $.get(spiServer+'/user/authorizationLogin?code='+wx_code+'&state='+wx_state+'&mode='+wx_mode, function(r){
|
|
|
+ $.get(spiServer+'/user/login/auth/website?code='+wx_code+'&state='+wx_state+'&mode='+wx_mode, function(r){
|
|
|
if(r.code===0){
|
|
|
console.log(r.data);
|
|
|
userData = {
|
|
@@ -24,10 +24,10 @@
|
|
|
phone: r.data.bindMobile,
|
|
|
name: r.data.name,
|
|
|
userName: r.data.userName,
|
|
|
- userId: r.data.userID,
|
|
|
- spId: r.data.serviceProviderID,
|
|
|
- clubId: r.data.clubID,
|
|
|
- shopId: r.data.shopID,
|
|
|
+ userId: r.data.userId,
|
|
|
+ spId: r.data.serviceProviderId,
|
|
|
+ clubId: r.data.clubId,
|
|
|
+ shopId: r.data.shopId,
|
|
|
userIdentity: r.data.userIdentity,
|
|
|
permission: r.data.userPermission,
|
|
|
token: r.data.token
|