This commit is contained in:
阿沐 2024-02-24 14:35:48 +08:00
parent 743a2b2f53
commit 341c9f0e4e
2 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ public class SysThirdLoginConfigServiceImpl extends BaseServiceImpl<SysThirdLogi
.eq(SysThirdLoginConfigEntity::getOpenType, openType));
if (config == null) {
throw new ServerException("找到第三方登录配置");
throw new ServerException("配置第三方登录,请配置后再尝试");
}
AuthRequest authRequest = switch (ThirdLoginEnum.toEnum(openType)) {

View File

@ -1,9 +1,9 @@
package net.maku.system.service.impl;
import com.aliyun.oss.ServiceException;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.AllArgsConstructor;
import me.zhyd.oauth.model.AuthUser;
import net.maku.framework.common.exception.ServerException;
import net.maku.framework.mybatis.service.impl.BaseServiceImpl;
import net.maku.system.convert.SysThirdLoginConvert;
import net.maku.system.dao.SysThirdLoginDao;
@ -54,9 +54,9 @@ public class SysThirdLoginServiceImpl extends BaseServiceImpl<SysThirdLoginDao,
SysThirdLoginEntity entity = baseMapper.selectOne(Wrappers.<SysThirdLoginEntity>lambdaQuery()
.eq(SysThirdLoginEntity::getOpenType, openType).eq(SysThirdLoginEntity::getOpenId, openId));
if (entity == null) {
throw new ServiceException("还未绑定用户,请先绑定用户");
throw new ServerException("还未绑定用户,请先绑定用户");
}
return entity.getUserId();
}
}