test
This commit is contained in:
parent
d915f2fd07
commit
47461360b8
16
sql.go
16
sql.go
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"log"
|
||||
"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 {
|
||||
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
|
||||
,war_date TIMESTAMP NOT NULL
|
||||
,attack SMALLINT UNSIGNED NOT NULL
|
||||
|
Loading…
Reference in New Issue
Block a user