From f22c79bcd41c0e8ad8fc783b1ba6c8d504bc462c Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 2 Jan 2020 23:40:06 +0800 Subject: [PATCH] upd --- obj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj.go b/obj.go index 7779b1d..8cd4a5f 100644 --- a/obj.go +++ b/obj.go @@ -647,7 +647,7 @@ func addObjXP(userID64 int64, expNow int64, expLvl int64, level int64, date time } res, err := tx.Exec(`INSERT INTO obj (obj_type_id, obj_sub_type_id) - VALUES (` + strconv.FormatInt(codeObjType[`xp`], 10) + `,` + strconv.FormatInt(codeObSubjType[`xp`], 10) + `);`) + VALUES (` + strconv.FormatInt(cacheObjType[`xp`], 10) + `,` + strconv.FormatInt(cacheObSubjType[`xp`], 10) + `);`) logOnError(err, "addObjXP : exec insert obj") if err != nil { err2 := tx.Rollback()