...
|
...
|
@@ -154,6 +154,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { |
|
|
if ok {
|
|
|
ok, err := sendOrNot.ifSend(param.Index)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("检查短信是否发送" + err.Error())
|
|
|
param.Result = err.Error()
|
|
|
}
|
|
|
sendOk = ok
|
...
|
...
|
@@ -166,6 +167,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { |
|
|
sms := serviceGateway.SmsService{}
|
|
|
err = sms.SendNoticeSms(param.Phone, param.TemplateId, param.Value)
|
|
|
if err != nil {
|
|
|
log.Logger.Error("短信发送出错" + err.Error())
|
|
|
param.Result = err.Error()
|
|
|
param.Status = domain.SmsSuccess
|
|
|
} else {
|
...
|
...
|
|