|
|
|
@@ -9,6 +9,8 @@ import com.iformall.service.CUserTokenService; |
|
|
|
import com.iformall.service.cuser.CUserServiceFactory; |
|
|
|
import com.iformall.utils.Constant; |
|
|
|
import com.iformall.utils.RedisCacheUtils; |
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -54,6 +56,9 @@ public class CUserTokenServiceImpl implements CUserTokenService { |
|
|
|
|
|
|
|
if(null == baseUser) { |
|
|
|
baseUser = cuserFactory.getCUserService(getPlat(token)).getByToken(token); |
|
|
|
if (StringUtils.isBlank(baseUser.getTenantId())) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_SERVER_ERROR.getCode(),"baseUser has no tenantinfo."); |
|
|
|
} |
|
|
|
setCache(token,baseUser); |
|
|
|
} |
|
|
|
return baseUser; |
|
|
|
|