aa
This commit is contained in:
@@ -162,8 +162,16 @@ func (c *PurchaseHandler) onOrderInfoChangeMsg(vendorOrgCode string, msg *jdapi.
|
|||||||
order.BuyerComment = msg.OrderBuyerRemark
|
order.BuyerComment = msg.OrderBuyerRemark
|
||||||
}
|
}
|
||||||
_, err = dao.UpdateEntity(db, order, "ConsigneeAddress", "ConsigneeName", "ConsigneeMobile", "ConsigneeLat", "ConsigneeLng", "BuyerComment")
|
_, err = dao.UpdateEntity(db, order, "ConsigneeAddress", "ConsigneeName", "ConsigneeMobile", "ConsigneeLat", "ConsigneeLng", "BuyerComment")
|
||||||
if !(order.Status >= model.OrderStatusEndBegin && order.Status <= model.OrderStatusEndEnd) {
|
if order.Status <= model.OrderStatusEndBegin {
|
||||||
weixinmsg.NotifyOrderChanged(order)
|
if order.BusinessType == model.BusinessTypeImmediate {
|
||||||
|
if time.Now().Sub(order.OrderCreatedAt).Hours() <= 1 {
|
||||||
|
weixinmsg.NotifyOrderChanged(order)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if order.ExpectedDeliveredTime.Sub(time.Now()).Hours() >= 1 {
|
||||||
|
weixinmsg.NotifyOrderChanged(order)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return jdapi.SuccessResponse
|
return jdapi.SuccessResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user