This commit is contained in:
suyl
2021-09-01 18:50:32 +08:00
parent 5cc922f1c9
commit f562279bf2

View File

@@ -66,6 +66,7 @@ func SendVoiceMsg(mobileList []string, templateCode string, templateParam map[st
TtsCode: tea.String(templateCode),
TtsParam: tea.String(string(utils.MustMarshal(templateParam))),
}
globals.SugarLogger.Debugf("SendVoiceMsg mobile: %s,template: %s ", mobileNum, templateCode)
res, _err := api.VoiceClient.SingleCallByTts(request)
if _err != nil {
errList.AddErr(err)
@@ -151,7 +152,7 @@ func NotifyPickOrder(order *model.GoodsOrder) (err error) {
store.MarketManPhone = "18048531223"
}
if store.BrandIsOpen&model.BrandOpenVoice != 0 && balance >= model.BrandBalanceLimit {
if err = SendVoiceMsg(mobileList, globals.SMSPickOrderTemplate, map[string]interface{}{
if err = SendVoiceMsg(mobileList, globals.SMSVoicePickOrderTemplate, map[string]interface{}{
"tel": store.MarketManPhone,
}); err == nil {
err = updateSth(order, store, model.BrandBillFeeTypeVoice)