This commit is contained in:
suyl
2021-08-27 17:12:07 +08:00
parent e708776c29
commit 118d4247a0

View File

@@ -68,7 +68,7 @@ func SendVoiceMsg(mobileList []string, templateParam map[string]interface{}) (er
if _err != nil {
errList.AddErr(err)
}
if res.Body.Code != tea.String("OK") {
if *res.Body.Code != "OK" {
globals.SugarLogger.Debugf("SendVoiceMsg mobileNum:%s failed with response:%s", mobileNum, utils.Format4Output(res, true))
errList.AddErr(fmt.Errorf(*res.Body.Message))
}
@@ -128,6 +128,7 @@ func NotifyPickOrder(order *model.GoodsOrder) (err error) {
case model.NotifyTypeSMS:
err = SendSMSMsg(mobileList, globals.SMSSignName, globals.SMSPickOrderTemplate, nil, order)
case model.NotifyTypeVoice:
globals.SugarLogger.Debugf("NotifyPickOrder orderID: %s , smsNotify :%d", order.VendorOrderID, store.SMSNotify)
if store.MarketManPhone == "" {
store.MarketManPhone = "18048531223"
}