From 1cfed43f594f553b3ca3b7cf755dcf0bb8fc1662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=BE=89?= <2830717623@qq.com> Date: Sat, 13 Jun 2026 16:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BD=A6=E9=98=9F=E9=95=BF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/UserDriverEnterpriseApplicationService.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mhd-user-center/src/main/java/com/mhd/user/application/service/UserDriverEnterpriseApplicationService.java b/mhd-user-center/src/main/java/com/mhd/user/application/service/UserDriverEnterpriseApplicationService.java index 98b1cd0fa..471218ff2 100644 --- a/mhd-user-center/src/main/java/com/mhd/user/application/service/UserDriverEnterpriseApplicationService.java +++ b/mhd-user-center/src/main/java/com/mhd/user/application/service/UserDriverEnterpriseApplicationService.java @@ -568,6 +568,15 @@ public class UserDriverEnterpriseApplicationService { public Map captainAuth(UserDriverEnterpriseDo userDriverEnterpriseDo) { LoginUser loginUser = SecurityUtils.getLoginUser(); Map result = new HashMap<>(); + if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserAccount())) { + throw new ServiceException("用户账号不能为空"); + } + if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserName())) { + throw new ServiceException("用户姓名不能为空"); + } + if (org.apache.commons.lang3.StringUtils.isBlank(userDriverEnterpriseDo.getUserPhone())) { + throw new ServiceException("用户电话不能为空"); + } // 1. 前置检查:如果用户已存在,检查是否已加入其他车队 performPreChecks(userDriverEnterpriseDo);