From c799e68150ae4e2e8dcda23933534d90b9f4b81f Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 2 Jan 2020 23:41:00 +0800 Subject: [PATCH] upd --- sql.go | 2 +- workers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql.go b/sql.go index 557bdd5..cadf548 100644 --- a/sql.go +++ b/sql.go @@ -609,7 +609,7 @@ func initDB() { ,obj_msg obm ,obj oi ,obj_msg_item omi - WHERE om.obj_type_id = ` + strconv.Itoa(cacheObjType[`msg`]) + ` + WHERE om.obj_type_id = ` + strconv.FormatInt(cacheObjType[`msg`], 10) + ` AND om.obj_sub_type_id in (` + strconv.FormatInt(cacheObjSubType[`msg_withdraw_rcv`], 10) + `, ` + strconv.FormatInt(cacheObjSubType[`msg_g_deposit_ack`], 10) + `) AND obm.obj_id = om.id AND omi.obj_id = om.id diff --git a/workers.go b/workers.go index 531d1f7..4750179 100644 --- a/workers.go +++ b/workers.go @@ -438,7 +438,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) { err = setObjSubTypeId(objId, cacheObjSubType[`msg`]) } else { clientMsgGoQuestAck(cwm) - _, err = addObjQuest(uid, cwm.QuestTypeID, cwm.Duration, m.Date.UTC()) + _, err = addObjQuest(uid, cwm.QuestTypeID64, cwm.Duration, m.Date.UTC()) } case cacheObjSubType[`msg_duel_fight`]: cwm, err := parseSubTypeMessageDuelFight(m, rule.re)