瀏覽代碼

修改msg返回â

hongxuan 3 年之前
父節點
當前提交
209b717607
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/partial/SystemController.go

+ 1 - 1
controllers/partial/SystemController.go

@@ -270,7 +270,7 @@ func System_AddUser(c *entitys.CtrlContext) {
 	//查找login_id是否存在
 	//查找login_id是否存在
 	exit, _ := c.PlatformDbEngine.Table(new(sysmodel.SysUser)).Where("login_id = ? and del_flag = ?", user.LoginId, 0).Exist()
 	exit, _ := c.PlatformDbEngine.Table(new(sysmodel.SysUser)).Where("login_id = ? and del_flag = ?", user.LoginId, 0).Exist()
 	if exit {
 	if exit {
-		c.Ctx.JSON(200, sysmodel.SysReturn{500, "login_id exit", nil})
+		c.Ctx.JSON(200, sysmodel.SysReturn{500, "账号已存在", nil})
 		return
 		return
 	}
 	}
 	user_id := c.Ctx.GetString("user_id")
 	user_id := c.Ctx.GetString("user_id")