From bd0deceef62752ba8217282194d7b7520661add4 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Mon, 13 Apr 2020 11:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/mysql.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/mysql.go b/core/mysql.go index b3c58232..59a3fc38 100644 --- a/core/mysql.go +++ b/core/mysql.go @@ -173,7 +173,6 @@ func (mysql *Mysql) GetUserByName(name string) *User { ) row := db.QueryRow(fmt.Sprintf("SELECT * FROM users WHERE username='%s'", name)) if err := row.Scan(&id, &username, &originPass, "a, &download, &upload); err != nil { - fmt.Println(err) return nil } return &User{ID: id, Username: username, Password: originPass, Download: download, Upload: upload, Quota: quota}