到家商城的订单发通知消息
+Store.LinkStoreID
This commit is contained in:
@@ -52,18 +52,7 @@ func SendSMSMsg(mobileList []string, signName, templateCode string, templatePara
|
||||
}
|
||||
|
||||
func getOrderNotifyPhone(order *model.GoodsOrder) (phoneList []string) {
|
||||
store := &model.Store{}
|
||||
store.ID = jxutils.GetSaleStoreIDFromOrder(order)
|
||||
if err := dao.GetEntity(dao.GetDB(), store); err == nil {
|
||||
if store.SMSNotify != 0 {
|
||||
for _, v := range []string{store.Tel1, store.Tel2} {
|
||||
if v != "" {
|
||||
phoneList = append(phoneList, v)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return phoneList
|
||||
return dao.GetOrderNotifyPhones(dao.GetDB(), jxutils.GetSaleStoreIDFromOrder(order))
|
||||
}
|
||||
|
||||
func NotifyNewOrder(order *model.GoodsOrder) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user