- 如果JdOrderStatusAdjust消息到达,之前没有定单信息,正常处理(当成新定单)
This commit is contained in:
@@ -100,7 +100,7 @@ func (c *OrderController) OrderStatus(order *jdapi.JDOrderMsg) *jdapi.JDCallback
|
||||
if created, _, err := db.ReadOrCreate(rec, "Jdorderid"); err == nil {
|
||||
order.Id = rec.Id
|
||||
if created {
|
||||
if order.StatusId != jdapi.JdOrderStatusNew {
|
||||
if order.StatusId != jdapi.JdOrderStatusNew && order.StatusId != jdapi.JdOrderStatusAdjust {
|
||||
globals.SugarLogger.Warnf("order:%v get before create", order)
|
||||
oldStatusId := order.StatusId
|
||||
order.StatusId = jdapi.JdOrderStatusNew
|
||||
|
||||
Reference in New Issue
Block a user