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