test deposit

This commit is contained in:
shoopea 2019-08-29 19:47:15 +08:00
parent 4c0bfb9d48
commit e7a6f0bd29

3
job.go
View File

@ -852,7 +852,8 @@ func jobGDeposit(j Job) {
clientSendCWMsg(p.ChatID64, fmt.Sprintf("/g_deposit %s 1", item.Code)) clientSendCWMsg(p.ChatID64, fmt.Sprintf("/g_deposit %s 1", item.Code))
p2 := JobPayloadGDepositForward{ p2 := JobPayloadGDepositForward{
ItemID64: p.ResObjID64[resIdx], ItemID64: p.ResObjID64[resIdx],
Quantity: cwm.Stock[stockIdx].Quantity, Quantity: 1,
//Quantity: cwm.Stock[stockIdx].Quantity,
} }
b2, _ := json.Marshal(p2) b2, _ := json.Marshal(p2)
err = createJobCallback(objSubTypeJobGDepositForward, j.UserID64, objSubTypeMessageGDepositAck, b2, time.Duration(1*time.Minute)) err = createJobCallback(objSubTypeJobGDepositForward, j.UserID64, objSubTypeMessageGDepositAck, b2, time.Duration(1*time.Minute))