异常非空判断

This commit is contained in:
2023-09-04 11:25:21 +08:00
parent 217afe5e01
commit 3177b40b4f
2 changed files with 4 additions and 7 deletions

View File

@@ -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();
}