Commit db0a418b653949410566cf41629f9e77a8c56db6

Authored by ้™†ๆ’
1 parent 0c7dffa7
Exists in master

1

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/mysql/dbmysql.go
... ... @@ -75,7 +75,7 @@ func TestClearData(uid int) (int,error) {
75 75 }
76 76  
77 77 func DoBackUp(uuid string,info string,task string,ach string) error {
78   - cmd := fmt.Sprintf("INSERT into hedaoshi VALUES('%s','%s','%s','%s') ON DUPLICATE KEY UPDATE update info='%s' ,task='%s',ach='%s'", uuid,info,task,ach,info,task,ach)
  78 + cmd := "INSERT into hedaoshi VALUES('"+uuid +"','" + task +"','"+ ach + "') ON DUPLICATE KEY UPDATE update info=" + "'" + info + "', " + "task=" +"'"+ task + "', ach='" + ach +"'"
79 79 //cmd := "INSERT into hedaoshi VALUES(" + uuid + "," + info + "," + task + "," + ach + ")"
80 80 err := ExcuteCmd(cmd)
81 81 if err != nil {
... ...