Browse Source

fix:修改显示文案

zqbao 10 months ago
parent
commit
27365b0e45
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/user.go

+ 2 - 1
controllers/user.go

@@ -148,7 +148,8 @@ func (this *UserController) Add() {
 	if curTime.Before(validEndTime) {
 		user.Status = 2
 	} else {
-		user.Status = 0
+		br.Msg = "有效期截至时间必须大于当前时间"
+		return
 	}
 
 	user.RealName = req.RealName