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