test
This commit is contained in:
parent
7c33a323ce
commit
cccd6fc886
4
def.go
4
def.go
@ -178,6 +178,10 @@ const (
|
||||
objSubTypeMessageTimeAck = 322
|
||||
objSubTypeMessageTimeReq = 323
|
||||
objSubTypeMessageGo = 324
|
||||
objSubTypeMessageGoQuest = 325
|
||||
objSubTypeMessageGoArena = 326
|
||||
objSubTypeMessageArena = 327
|
||||
objSubTypeMessageTop = 328
|
||||
objSubTypeJobPillage = 601
|
||||
objSubTypeJobTribute = 602
|
||||
objSubTypeJobStatus = 603
|
||||
|
4
sql.go
4
sql.go
@ -324,6 +324,10 @@ func initDB() {
|
||||
,(` + strconv.Itoa(objSubTypeMessageTimeAck) + `, "time_ack", "Time Acknowledgment", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageTimeReq) + `, "time_req", "Time Request", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageGo) + `, "go", "Go", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageGoQuest) + `, "go_quest", "Go quest", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageGoArena) + `, "go_arena", "Go arena", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageArena) + `, "arena", "Arena", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeMessageTop) + `, "top", "Top", ` + strconv.Itoa(objTypeMessage) + `)
|
||||
,(` + strconv.Itoa(objSubTypeJobPillage) + `, "job_pillage", "Pillage job", ` + strconv.Itoa(objTypeJob) + `)
|
||||
,(` + strconv.Itoa(objSubTypeJobTribute) + `, "job_tribute", "Tribute job", ` + strconv.Itoa(objTypeJob) + `)
|
||||
,(` + strconv.Itoa(objSubTypeJobWithdrawal) + `, "job_withdraw", "Withdrawal job", ` + strconv.Itoa(objTypeJob) + `)
|
||||
|
12
workers.go
12
workers.go
@ -144,6 +144,18 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
||||
case objSubTypeMessageQuest:
|
||||
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(Quest)")
|
||||
case objSubTypeMessageGoQuest:
|
||||
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(GoQuest)")
|
||||
case objSubTypeMessageArena:
|
||||
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(Arena)")
|
||||
case objSubTypeMessageGoArena:
|
||||
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(GoArena)")
|
||||
case objSubTypeMessageTop:
|
||||
err = setObjSubTypeId(objId, objSubTypeMessageQuest)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId(Top)")
|
||||
case objSubTypeMessageAuctionAnnounce:
|
||||
cwm := ChatWarsMessageAuctionAnnounce{
|
||||
ObjID64: objId,
|
||||
|
Loading…
Reference in New Issue
Block a user