fix
This commit is contained in:
parent
9a87728b50
commit
6dd672c462
4
job.go
4
job.go
@ -1407,7 +1407,7 @@ func jobGWithdraw(j Job) {
|
|||||||
logOnError(err, "jobGWithdraw : Unmarshal payload")
|
logOnError(err, "jobGWithdraw : Unmarshal payload")
|
||||||
|
|
||||||
if p.Status == 0 {
|
if p.Status == 0 {
|
||||||
for k, item := range p.Items {
|
for _, item := range p.Items {
|
||||||
id := getSilentObjItemID(item.Code, ``)
|
id := getSilentObjItemID(item.Code, ``)
|
||||||
if id != 0 {
|
if id != 0 {
|
||||||
obj, _ := getObjItem(id)
|
obj, _ := getObjItem(id)
|
||||||
@ -1555,7 +1555,7 @@ func jobGWithdraw(j Job) {
|
|||||||
createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute)
|
createJobCallback(cacheObjSubType[`job_msg_del`], j.UserID64, p2.MsgTypeID64, b2, time.Minute)
|
||||||
clientSendCWMsg(j.UserID64, `/g_stock_other`)
|
clientSendCWMsg(j.UserID64, `/g_stock_other`)
|
||||||
} else {
|
} else {
|
||||||
b, err := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
log.Printf("jobGWithdraw[%d] : got all the info\n%s\n", j.ID64, string(b))
|
log.Printf("jobGWithdraw[%d] : got all the info\n%s\n", j.ID64, string(b))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user