From 13a0e3a9def312bf337fa851ab6fe9e9436c1f63 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 30 Aug 2019 11:10:04 +0800 Subject: [PATCH] udpate g deposit all --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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...) /*