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) {
|
||||
var (
|
||||
p JobPayloadVaultVal
|
||||
p2 JobPayloadGetVault
|
||||
b []byte
|
||||
other, part, rec float64
|
||||
p JobPayloadVaultVal
|
||||
p2 JobPayloadGetVault
|
||||
b []byte
|
||||
other, part, rec, price float64
|
||||
)
|
||||
|
||||
err := setJobStart(j.ID64)
|
||||
@ -2651,13 +2651,17 @@ func jobVaultVal(j Job) {
|
||||
item, _ := getObjItem(v.ItemID64)
|
||||
switch item.ItemTypeID {
|
||||
case cacheObjSubType[`item_part`]:
|
||||
part += getObjItemVal(v.ItemID64, v.Quality)
|
||||
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||
part += price
|
||||
case cacheObjSubType[`item_rec`]:
|
||||
rec += getObjItemVal(v.ItemID64, v.Quality)
|
||||
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||
rec += price
|
||||
case cacheObjSubType[`item_other`]:
|
||||
other += getObjItemVal(v.ItemID64, v.Quality)
|
||||
price = getObjItemVal(v.ItemID64, v.Quality)
|
||||
other += price
|
||||
default:
|
||||
}
|
||||
log.Printf("jobVaultVal : %s - %s => %f\n", v.Code, item.Name[0], price)
|
||||
}
|
||||
|
||||
c := TGCommand{
|
||||
|
Loading…
Reference in New Issue
Block a user