| | |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.domain.model.SmsLoginBody; |
| | | import com.ruoyi.common.core.utils.MapstructUtils; |
| | | import com.ruoyi.common.core.utils.StreamUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.satoken.utils.LoginHelper; |
| | | import com.ruoyi.common.tenant.helper.TenantHelper; |
| | |
| | | // 获取域名 |
| | | String host = new URL(request.getRequestURL().toString()).getHost(); |
| | | // 根据域名进行筛选 |
| | | List<TenantListVo> list = voList.stream().filter(vo -> StringUtils.equals(vo.getDomain(), host)).toList(); |
| | | List<TenantListVo> list = StreamUtils.filter(voList, vo -> StringUtils.equals(vo.getDomain(), host)); |
| | | return R.ok(CollUtil.isNotEmpty(list) ? list : voList); |
| | | } |
| | | |