正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -154,6 +154,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { | @@ -154,6 +154,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { | ||
| 154 | if ok { | 154 | if ok { |
| 155 | ok, err := sendOrNot.ifSend(param.Index) | 155 | ok, err := sendOrNot.ifSend(param.Index) |
| 156 | if err != nil { | 156 | if err != nil { |
| 157 | + log.Logger.Error("检查短信是否发送" + err.Error()) | ||
| 157 | param.Result = err.Error() | 158 | param.Result = err.Error() |
| 158 | } | 159 | } |
| 159 | sendOk = ok | 160 | sendOk = ok |
| @@ -166,6 +167,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { | @@ -166,6 +167,7 @@ func (notices *notifySms) sendSms(param *domain.LogSms) error { | ||
| 166 | sms := serviceGateway.SmsService{} | 167 | sms := serviceGateway.SmsService{} |
| 167 | err = sms.SendNoticeSms(param.Phone, param.TemplateId, param.Value) | 168 | err = sms.SendNoticeSms(param.Phone, param.TemplateId, param.Value) |
| 168 | if err != nil { | 169 | if err != nil { |
| 170 | + log.Logger.Error("短信发送出错" + err.Error()) | ||
| 169 | param.Result = err.Error() | 171 | param.Result = err.Error() |
| 170 | param.Status = domain.SmsSuccess | 172 | param.Status = domain.SmsSuccess |
| 171 | } else { | 173 | } else { |
-
请 注册 或 登录 后发表评论