This commit is contained in:
shoopea 2020-01-02 23:40:06 +08:00
parent ff4866c7bf
commit f22c79bcd4

2
obj.go
View File

@ -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()