|
@@ -468,7 +468,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
@@ -468,7 +468,7 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
468
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
468
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
469
|
}
|
469
|
}
|
470
|
var user = map[string]interface{}{
|
470
|
var user = map[string]interface{}{
|
471
|
- "userId": 0,
|
471
|
+ "userId": resultUser.UserBaseID,
|
472
|
//"userOpenId": fmt.Sprintf("%v",resultUser.UserBaseID),
|
472
|
//"userOpenId": fmt.Sprintf("%v",resultUser.UserBaseID),
|
473
|
"userInfo": map[string]interface{}{
|
473
|
"userInfo": map[string]interface{}{
|
474
|
"userName": resultUser.UserInfo.UserName,
|
474
|
"userName": resultUser.UserInfo.UserName,
|
|
@@ -497,8 +497,9 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
|
@@ -497,8 +497,9 @@ func (svr AuthService) getUserInfo(operator domain.Operator) (interface{}, error |
497
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
497
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
498
|
}
|
498
|
}
|
499
|
var user = map[string]interface{}{
|
499
|
var user = map[string]interface{}{
|
500
|
- "userId": resultUser.UserId,
|
|
|
501
|
- //"userOpenId": fmt.Sprintf("%v",resultUser.UserBaseId),
|
500
|
+ "userId": resultUser.UserBaseId,
|
|
|
501
|
+ //"publicUserId":fmt.Sprintf("%v",resultUser.UserBaseId),
|
|
|
502
|
+ "userCode": resultUser.UserCode,
|
502
|
"userInfo": map[string]interface{}{
|
503
|
"userInfo": map[string]interface{}{
|
503
|
"userName": resultUser.UserInfo.UserName,
|
504
|
"userName": resultUser.UserInfo.UserName,
|
504
|
"userPhone": resultUser.UserInfo.Phone,
|
505
|
"userPhone": resultUser.UserInfo.Phone,
|
|
@@ -643,7 +644,7 @@ loopUser1: |
|
@@ -643,7 +644,7 @@ loopUser1: |
643
|
}
|
644
|
}
|
644
|
|
645
|
|
645
|
// 个人登录
|
646
|
// 个人登录
|
646
|
- if len(userSearchResult.Users) == 0 {
|
647
|
+ if !currentOrgIsOK { //|| len(userSearchResult.Users) == 0
|
647
|
userBase, err := creationUserGateway.AuthUserBaseInfo(allied_creation_user.ReqAuthUserBase{
|
648
|
userBase, err := creationUserGateway.AuthUserBaseInfo(allied_creation_user.ReqAuthUserBase{
|
648
|
Account: loginToken.Account,
|
649
|
Account: loginToken.Account,
|
649
|
})
|
650
|
})
|