From d62a5d232dc5611cf2a04914b3d97bdd034b44e6 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Mon, 28 Dec 2020 11:10:30 +0800 Subject: [PATCH] fix bug --- core/tools.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tools.go b/core/tools.go index add74ecc..5cc6a820 100644 --- a/core/tools.go +++ b/core/tools.go @@ -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