发送短信修改
This commit is contained in:
@@ -138,7 +138,6 @@ func NotifyNewUserOrder(order *model.GoodsOrder) (err error) {
|
|||||||
SMSMark: model.NO,
|
SMSMark: model.NO,
|
||||||
}
|
}
|
||||||
err = dao.CreateEntity(db, uoSMSc)
|
err = dao.CreateEntity(db, uoSMSc)
|
||||||
if uoSMS.SMSMark != model.YES {
|
|
||||||
err = SendSMSMsg([]string{uoSMS.Mobile}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{
|
err = SendSMSMsg([]string{uoSMS.Mobile}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{
|
||||||
"tel": storeTel,
|
"tel": storeTel,
|
||||||
}, nil)
|
}, nil)
|
||||||
@@ -147,7 +146,6 @@ func NotifyNewUserOrder(order *model.GoodsOrder) (err error) {
|
|||||||
uoSMS.TotalCount++
|
uoSMS.TotalCount++
|
||||||
_, err = dao.UpdateEntity(db, uoSMS, "SMSMark", "TotalCount")
|
_, err = dao.UpdateEntity(db, uoSMS, "SMSMark", "TotalCount")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if uoSMS.SMSMark != model.YES {
|
if uoSMS.SMSMark != model.YES {
|
||||||
err = SendSMSMsg([]string{uoSMS.Mobile}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{
|
err = SendSMSMsg([]string{uoSMS.Mobile}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{
|
||||||
|
|||||||
Reference in New Issue
Block a user