订单提醒统计
This commit is contained in:
@@ -2,6 +2,7 @@ package smsmsg
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
aliyunsmsclient "github.com/KenmyZhang/aliyun-communicate"
|
||||
dyvmsapiclient "github.com/alibabacloud-go/dyvmsapi-20170525-2.0.2/client"
|
||||
"github.com/alibabacloud-go/tea/tea"
|
||||
@@ -124,9 +125,9 @@ func NotifyPickOrder(order *model.GoodsOrder) (err error) {
|
||||
}
|
||||
if store.SMSNotify != 0 && store.IsOrder == model.NO && store.ID != model.MatterStoreID && store.ID != model.JdShopMainStoreID && len(mobileList) > 0 {
|
||||
switch store.SMSNotify {
|
||||
case 1:
|
||||
case model.NotifyTypeSMS:
|
||||
err = SendSMSMsg(mobileList, globals.SMSSignName, globals.SMSPickOrderTemplate, nil, order)
|
||||
case 2:
|
||||
case model.NotifyTypeVoice:
|
||||
if store.MarketManPhone == "" {
|
||||
store.MarketManPhone = "18048531223"
|
||||
}
|
||||
@@ -135,6 +136,10 @@ func NotifyPickOrder(order *model.GoodsOrder) (err error) {
|
||||
})
|
||||
}
|
||||
}
|
||||
if err == nil {
|
||||
order.NotifyType = int(store.SMSNotify)
|
||||
partner.CurOrderManager.UpdateOrderFields(order, []string{"NotifyType"})
|
||||
}
|
||||
//}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user