|
@@ -12,6 +12,7 @@ import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
import com.keao.edu.im.api.client.ImFeignService;
|
|
|
import com.keao.edu.im.api.entity.ImResult;
|
|
|
import com.keao.edu.im.api.entity.ImUserModel;
|
|
|
+import com.keao.edu.user.api.client.EduUserFeignService;
|
|
|
import org.apache.commons.collections.MapUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
@@ -122,8 +123,7 @@ public class BaseAuthenticationSuccessEventHandler extends SavedRequestAwareAuth
|
|
|
Map<String,Object> map = new HashMap<>(3);
|
|
|
map.put("password", StringUtils.isEmpty(sysUser.getPassword())?false:true);
|
|
|
map.put("authentication",oAuth2AccessToken);
|
|
|
-
|
|
|
- map.put("tenantId", sysUser.getTenantId());
|
|
|
+ map.put("tenantId", sysUserService.queryUserTenantId(clientId,sysUser.getId()));
|
|
|
|
|
|
response.setContentType("application/json; charset=utf-8");
|
|
|
HttpResponseResult result = new HttpResponseResult(true, HttpStatus.OK.value(), map, "");
|