Skip to content

Commit

Permalink
优化提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Apr 13, 2020
1 parent 238976b commit bd0dece
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, &quota, &download, &upload); err != nil {
fmt.Println(err)
return nil
}
return &User{ID: id, Username: username, Password: originPass, Download: download, Upload: upload, Quota: quota}
Expand Down

0 comments on commit bd0dece

Please sign in to comment.