异常非空判断
This commit is contained in:
@@ -108,9 +108,6 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, User> impleme
|
||||
addSendMessage(phone,vcode,msgTemplate,sendSmsResponse);
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
if (Objects.isNull(sendSmsResponse)){
|
||||
throw new BusinessException(UserResponseEnum.MESSAGE_SEND_FAIL);
|
||||
}
|
||||
return sendSmsResponse.getCode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user