From 032d6f341f43488d0a430e6fcb2da5ba67e2eda4 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Thu, 05 Sep 2024 02:45:43 +0800
Subject: [PATCH] 1

---
 src/main/java/project/web/api/LocalUserController.java |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/src/main/java/project/web/api/LocalUserController.java b/src/main/java/project/web/api/LocalUserController.java
index cc54158..f394e85 100644
--- a/src/main/java/project/web/api/LocalUserController.java
+++ b/src/main/java/project/web/api/LocalUserController.java
@@ -439,13 +439,7 @@
 				}
 			}
 			
-			// 邮箱
-			if ("2".equals(type)) {
-				if(!isValidEmail(username)) {
-					throw new BusinessException("not a valid Email!");
-				}
-			}
-			
+
 			// 用户名
 			if ("3".equals(type)) {
 				if(!isValidUsername(username)) {
@@ -464,7 +458,7 @@
 			reg.setPassword(password);
 			reg.setSafeword("000000");
 			reg.setReco_usercode(usercode);
-
+			this.localUserService.saveRegisterNoVerifcode(reg, type);
 			SecUser  secUser = this.secUserService.findUserByLoginName(username);
 			
 			project.log.Log log = new project.log.Log();
@@ -693,13 +687,7 @@
 					throw new BusinessException("not a valid Phone!");
 				}
 			}
-			
-			// 邮箱
-			if ("2".equals(type)) {
-				if(!isValidEmail(username)) {
-					throw new BusinessException("not a valid Email!");
-				}
-			}
+
 			
 			// 用户名
 			if ("3".equals(type)) {

--
Gitblit v1.9.3