test
This commit is contained in:
parent
1e8a1f9825
commit
341c5ef535
18
job.go
18
job.go
@ -2606,10 +2606,10 @@ func jobCheckVaultLimit(j Job) {
|
|||||||
|
|
||||||
func jobVaultVal(j Job) {
|
func jobVaultVal(j Job) {
|
||||||
var (
|
var (
|
||||||
p JobPayloadVaultVal
|
p JobPayloadVaultVal
|
||||||
p2 JobPayloadGetVault
|
p2 JobPayloadGetVault
|
||||||
b []byte
|
b []byte
|
||||||
other, part, rec float64
|
other, part, rec, price float64
|
||||||
)
|
)
|
||||||
|
|
||||||
err := setJobStart(j.ID64)
|
err := setJobStart(j.ID64)
|
||||||
@ -2651,13 +2651,17 @@ func jobVaultVal(j Job) {
|
|||||||
item, _ := getObjItem(v.ItemID64)
|
item, _ := getObjItem(v.ItemID64)
|
||||||
switch item.ItemTypeID {
|
switch item.ItemTypeID {
|
||||||
case cacheObjSubType[`item_part`]:
|
case cacheObjSubType[`item_part`]:
|
||||||
part += getObjItemVal(v.ItemID64, v.Quality)
|
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||||
|
part += price
|
||||||
case cacheObjSubType[`item_rec`]:
|
case cacheObjSubType[`item_rec`]:
|
||||||
rec += getObjItemVal(v.ItemID64, v.Quality)
|
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||||
|
rec += price
|
||||||
case cacheObjSubType[`item_other`]:
|
case cacheObjSubType[`item_other`]:
|
||||||
other += getObjItemVal(v.ItemID64, v.Quality)
|
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||||
|
other += price
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
log.Printf("jobVaultVal : %s - %s => %f\n", v.Code, item.Name[0], price)
|
||||||
}
|
}
|
||||||
|
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
|
Loading…
Reference in New Issue
Block a user