- ebai vendorStatus
This commit is contained in:
@@ -270,6 +270,7 @@ func (c *PurchaseHandler) callbackMsg2Status(msg *ebaiapi.CallbackMsg) (orderSta
|
|||||||
msgType := utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["type"]))
|
msgType := utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["type"]))
|
||||||
cancelType := utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["cancel_type"]))
|
cancelType := utils.Int64ToStr(utils.MustInterface2Int64(msg.Body["cancel_type"]))
|
||||||
orderStatus.Remark = utils.Interface2String(msg.Body["cancel_reason"])
|
orderStatus.Remark = utils.Interface2String(msg.Body["cancel_reason"])
|
||||||
|
orderStatus.VendorStatus = msg.Cmd + "-" + msgType
|
||||||
if additionReason := utils.Interface2String(msg.Body["addition_reason"]); additionReason != "" {
|
if additionReason := utils.Interface2String(msg.Body["addition_reason"]); additionReason != "" {
|
||||||
orderStatus.Remark += ",额外原因:" + additionReason
|
orderStatus.Remark += ",额外原因:" + additionReason
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user