diff --git a/bot.go b/bot.go index 159e4db..12b92bd 100644 --- a/bot.go +++ b/bot.go @@ -659,10 +659,10 @@ func botGDepositAll(m *tb.Message) { p.ResObjID64 = append(p.ResObjID64, getObjItemID(`24`, `Purified Powder`)) p.ResObjID64 = append(p.ResObjID64, getObjItemID(`31`, `Rope`)) - list := getSQLListID64(`select o.id from obj o where o.obj_sub_type_id = ` + strconv(objSubTypeItemRecipe) + `;`) + list := getSQLListID64(fmt.Sprintf("select o.id from obj o where o.obj_sub_type_id = %d;", objSubTypeItemRecipe)) p.ResObjID64 = append(p.ResObjID64, list...) - list = getSQLListID64(`select o.id from obj o where o.obj_sub_type_id = ` + strconv(objSubTypeItemPart) + `;`) + list = getSQLListID64(fmt.Sprintf("select o.id from obj o where o.obj_sub_type_id = %d;", objSubTypeItemPart)) p.ResObjID64 = append(p.ResObjID64, list...) /*