Explorar el Código

fix:修改显示文案

zqbao hace 1 año
padre
commit
27365b0e45
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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