test
This commit is contained in:
parent
ff29f889dc
commit
ebece6e98f
4
items.go
4
items.go
@ -2,7 +2,7 @@ package main
|
||||
|
||||
import ()
|
||||
|
||||
func reloadObjItem(code string, name string, itemTypeID64 int64, weight int64, exchange bool, auction bool) {
|
||||
func reloadObjItem(code string, name string, itemTypeID64 int64, weight int64, exchange string, auction bool) {
|
||||
var objID64 int64
|
||||
objID64 = getSilentObjItemID(code, ``)
|
||||
if objID64 == 0 {
|
||||
@ -17,7 +17,7 @@ func reloadObjItem(code string, name string, itemTypeID64 int64, weight int64, e
|
||||
c.ObjID64 = objID64
|
||||
c.ItemTypeID = itemTypeID64
|
||||
c.Code = code
|
||||
c.Name = append(c.Name, name)
|
||||
c.Names = append(c.Names, name)
|
||||
c.Weight = weight
|
||||
c.Exchange = exchange
|
||||
c.Auction = auction
|
||||
|
6
job.go
6
job.go
@ -921,7 +921,7 @@ func jobGStock(j Job) {
|
||||
} else {
|
||||
w := TGCommand{
|
||||
Type: commandSendMsg,
|
||||
Text: fmt.Sprintf("Unknown weight for item : %s - %s\n", item.Code, item.Name),
|
||||
Text: fmt.Sprintf("Unknown weight for item : %s - %s\n", item.Code, item.Names[0]),
|
||||
ToUserID64: cfg.Bot.Admin,
|
||||
}
|
||||
TGCmdQueue <- w
|
||||
@ -1291,7 +1291,7 @@ func jobVaultUserStatus(j Job) {
|
||||
for i, itemId := range itemList {
|
||||
item, err := getObjItem(itemId)
|
||||
logOnError(err, "jobVaultUserStatus : getObjItem")
|
||||
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Names[0], depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
}
|
||||
out = fmt.Sprintf("%s</code>", out)
|
||||
|
||||
@ -1319,7 +1319,7 @@ func jobVaultUserStatus(j Job) {
|
||||
for i, itemId := range itemList {
|
||||
item, err := getObjItem(itemId)
|
||||
logOnError(err, "jobVaultUserStatus : getObjItem")
|
||||
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Name, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, item.Names[0], depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||
}
|
||||
out = fmt.Sprintf("%s</code>", out)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user