Commit 08ad39c8c1cca1ff1331f3ba667485e5c6b5a56a

Authored by 陆恒
1 parent c7ebd49d
Exists in master

提交

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/mysql/dbmysql.go
... ... @@ -86,13 +86,13 @@ func TestClearData(uid int) (int,error) {
86 86 func DoAddGold(uuid,gold,love int) error {
87 87 for i:=0;i<10;i++ {
88 88 tablename := "b_base_data_0" + strconv.Itoa(i)
89   - cmd := "update " + tablename + "set coin = " + strconv.Itoa(gold) + " where user_id= " + strconv.Itoa(uuid)
  89 + cmd := "update " + tablename + " set coin = " + strconv.Itoa(gold) + " where user_id= " + strconv.Itoa(uuid)
90 90 err := ExcuteCmd(cmd)
91 91 if err != nil {
92 92 logger.Error("DoAddGold err=%v,cmd=%v",err,cmd)
93 93 return err
94 94 }
95   - cmd = "update " + tablename + "set love_exp = " + strconv.Itoa(love) + " where user_id= " + strconv.Itoa(uuid)
  95 + cmd = "update " + tablename + " set love_exp = " + strconv.Itoa(love) + " where user_id= " + strconv.Itoa(uuid)
96 96 err = ExcuteCmd(cmd)
97 97 if err != nil {
98 98 logger.Error("DoAddGold err=%v,cmd=%v",err,cmd)
... ...