订单新消息修改

This commit is contained in:
苏尹岚
2020-05-25 10:23:53 +08:00
parent 429c252997
commit 350feaf265
3 changed files with 44 additions and 20 deletions

View File

@@ -80,10 +80,20 @@ func NotifyOrderCanceled(order *model.GoodsOrder) (err error) {
}
func isPushSMS(order *model.GoodsOrder) bool {
stores, _ := dao.GetStoreList(dao.GetDB(), []int{order.StoreID}, nil, nil, nil, "")
storeID := 0
if order.StoreID == 0 {
storeID = order.JxStoreID
} else {
storeID = order.StoreID
}
stores, _ := dao.GetStoresMapList(dao.GetDB(), []int{order.VendorID}, []int{storeID}, nil, model.StoreStatusAll, model.StoreIsSyncAll, "")
if len(stores) > 0 {
if stores[0].SMSNotifyMark == model.NO {
return true
if stores[0].IsOrder == model.NO {
if storeID == model.MatterStoreID {
return false
} else {
return true
}
} else {
return false
}