Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 28, 2020
1 parent ba272a9 commit d62a5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func (mysql *Mysql) DumpSql(filePath string) error {
}
for _, user := range userList {
writer.WriteString(fmt.Sprintf(`
INSERT INTO users(id, username, password, passwordShow, quota, download, upload, useDays, expiryDate) VALUES (%d, '%s','%s','%s', %d, %d, %d, %d, '%s');\n
`, user.ID, user.Username, user.OriginPass, user.Password, user.Quota, user.Download, user.Upload, user.UseDays, user.ExpiryDate))
INSERT INTO users(id, username, password, passwordShow, quota, download, upload, useDays, expiryDate) VALUES (%d, '%s','%s','%s', %d, %d, %d, %d, '%s');
`, user.ID, user.Username, user.OriginPass, user.Password, user.Quota, user.Download, user.Upload, user.UseDays, user.ExpiryDate) + "\n")
}
writer.Flush()
return nil
Expand Down

0 comments on commit d62a5d2

Please sign in to comment.