浏览代码

用户模块: 修复抛出设备超过登录数时不返回memberId的问题

songfuqiang 1 年之前
父节点
当前提交
ab86a85678

+ 2 - 1
backend-core/src/main/java/cn/kdan/pdf/backend/core/service/impl/AuthServiceImpl.java

@@ -29,6 +29,7 @@ import com.alibaba.fastjson.TypeReference;
 import constant.CommonConstant;
 import enums.ValidStatusEnum;
 import exception.BackendRuntimeException;
+import exception.TooManyDeviceException;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang3.ObjectUtils;
@@ -366,7 +367,7 @@ public class AuthServiceImpl implements AuthService {
         Devices queryDevice;
         try {
             queryDevice = deviceService.selectByMemberId(memberId, loginDevice.getUuid());
-        }catch (BackendRuntimeException e){
+        }catch (TooManyDeviceException e){
             vo.setId(memberId);
             vo.setMessage(e.getMessage());
             return vo;