From 08ad39c8c1cca1ff1331f3ba667485e5c6b5a56a Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Tue, 2 Jun 2020 11:52:13 +0800 Subject: [PATCH] 提亀 --- src/mysql/dbmysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mysql/dbmysql.go b/src/mysql/dbmysql.go index 39b8772..4745d97 100644 --- a/src/mysql/dbmysql.go +++ b/src/mysql/dbmysql.go @@ -86,13 +86,13 @@ func TestClearData(uid int) (int,error) { func DoAddGold(uuid,gold,love int) error { for i:=0;i<10;i++ { tablename := "b_base_data_0" + strconv.Itoa(i) - cmd := "update " + tablename + "set coin = " + strconv.Itoa(gold) + " where user_id= " + strconv.Itoa(uuid) + cmd := "update " + tablename + " set coin = " + strconv.Itoa(gold) + " where user_id= " + strconv.Itoa(uuid) err := ExcuteCmd(cmd) if err != nil { logger.Error("DoAddGold err=%v,cmd=%v",err,cmd) return err } - cmd = "update " + tablename + "set love_exp = " + strconv.Itoa(love) + " where user_id= " + strconv.Itoa(uuid) + cmd = "update " + tablename + " set love_exp = " + strconv.Itoa(love) + " where user_id= " + strconv.Itoa(uuid) err = ExcuteCmd(cmd) if err != nil { logger.Error("DoAddGold err=%v,cmd=%v",err,cmd) -- libgit2 0.21.0