Browse Source

fix:用户信息保存错误

zqbao 6 months ago
parent
commit
5ac26bdb56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/user.go

+ 1 - 1
services/user.go

@@ -168,7 +168,7 @@ func SaveUserInfo(userId, departmentId int, realName string) (msg string, err er
 		return
 	}
 	updateCols := make([]string, 0)
-	if realName == "" {
+	if user.RealName == "" {
 		if realName == "" {
 			msg = "请输入姓名"
 			return