- onAfsOrderNew都要检查是否已有同号的售后单

This commit is contained in:
gazebo
2019-05-13 15:31:14 +08:00
parent 64cc7797eb
commit c9fcb83e56
2 changed files with 15 additions and 10 deletions

View File

@@ -47,6 +47,7 @@ func (c *PurchaseHandler) onOrderMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi
} else if msg.MsgURL == jdapi.CallbackMsgAfterSaleBillStatus {
retVal = c.OnAfsOrderMsg(msg)
} else {
// 新订单事件,与订单状态有点冲突
if jdapi.StatusIDNewOrder == msg.StatusID {
retVal = c.onOrderNew(msg)
} else if jdapi.OrderStatusAdjust == msg.StatusID {