This commit is contained in:
shoopea 2019-05-06 22:05:43 +08:00
parent d915f2fd07
commit 47461360b8

4
sql.go
View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"errors"
"log" "log"
"strconv" "strconv"
) )
@ -198,7 +199,6 @@ func getObjSubTypeId(objId int64) (int64, error) {
} }
func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int32, gold int32, stock int32, crit bool, stamina bool) error { func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int32, gold int32, stock int32, crit bool, stamina bool) error {
/*
objSubTypeId, err := getObjSubTypeId(objId) objSubTypeId, err := getObjSubTypeId(objId)
if err != nil { if err != nil {
return err return err
@ -206,7 +206,7 @@ func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int3
if objSubTypeId != objSubTypeMessageUnprocess { if objSubTypeId != objSubTypeMessageUnprocess {
return errors.New("Message is not of type Unknown") return errors.New("Message is not of type Unknown")
} }
/*
obj_id BIGINT UNSIGNED NOT NULL obj_id BIGINT UNSIGNED NOT NULL
,war_date TIMESTAMP NOT NULL ,war_date TIMESTAMP NOT NULL
,attack SMALLINT UNSIGNED NOT NULL ,attack SMALLINT UNSIGNED NOT NULL