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

16
sql.go
View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"errors"
"log" "log"
"strconv" "strconv"
) )
@ -198,15 +199,14 @@ 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)
if err != nil {
return err
}
if objSubTypeId != objSubTypeMessageUnprocess {
return errors.New("Message is not of type Unknown")
}
/* /*
objSubTypeId, err := getObjSubTypeId(objId)
if err != nil {
return err
}
if objSubTypeId != objSubTypeMessageUnprocess {
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