a
This commit is contained in:
@@ -591,6 +591,10 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
|
||||
if order.VendorID == model.VendorIDJDShop {
|
||||
s.solutionJdsOrder(bill)
|
||||
}
|
||||
//如果是商城的订单, 骑手取货时,需要发短信提醒
|
||||
if bill.Status == model.WaybillStatusDelivering && order.VendorID == model.VendorIDJX && order.OrderType == model.OrderTypeNormal {
|
||||
smsmsg.NotifyJxOrder(order, bill)
|
||||
}
|
||||
//门店发单的门店,需要根据实际运费更新账户(多退少补)
|
||||
if storeDetail, err2 := dao.GetStoreDetail(dao.GetDB(), jxutils.GetSaleStoreIDFromOrder(order), order.VendorID, ""); err2 == nil {
|
||||
if storeDetail.CreateDeliveryType == model.YES {
|
||||
|
||||
@@ -218,3 +218,11 @@ func NotifyNewCourierOrder(bill *model.Waybill) (err error) {
|
||||
}, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
//京西订单配送员取货后,给用户发短信提醒
|
||||
func NotifyJxOrder(order *model.GoodsOrder, bill *model.Waybill) (err error) {
|
||||
err = SendSMSMsg([]string{order.ConsigneeMobile}, globals.SMSSignName, globals.SMSJxOrderDelivering, map[string]interface{}{
|
||||
"phone": bill.CourierMobile,
|
||||
}, order)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user