zhou.xiaoning 4 lat temu
rodzic
commit
ef333945e4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      models/account.go

+ 1 - 1
models/account.go

@@ -1084,7 +1084,7 @@ func UpdateUserAccountStatus(userID, accountStatus int) error {
 	// Loginaccount表的状态为1-正常;2-冻结(停用);3-无效(注销)
 	loginStatus := 1
 	if accountStatus == 6 {
-		userStatus = 2
+		loginStatus = 2
 	}
 	Loginaccount := Loginaccount{Loginstatus: int32(loginStatus)}
 	if _, err := engine.Table("LOGINACCOUNT").