作者 tangxvhui

调整

... ... @@ -110,11 +110,12 @@ func (notices *notifySms) checkSendSms() error {
}()
logSmsRepo := factory.CreateLogSmsRepository(map[string]interface{}{"transactionContext": transactionContext})
nowTime := time.Now()
// nowDay := dayZeroTime(nowTime)
nowDay := dayZeroTime(nowTime)
_, logSmsList, err := logSmsRepo.Find(map[string]interface{}{
"status": string(domain.SmsWait),
"executeAtEnd": nowTime,
"limit": 1000,
"status": string(domain.SmsWait),
"executeAtEnd": nowTime,
"executeAtBegin": nowDay,
"limit": 1000,
})
if err != nil {
return err
... ...
... ... @@ -4,8 +4,6 @@ import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"time"
... ... @@ -57,8 +55,6 @@ func (ssrv SmsService) SendNoticeSms(phone string, tplId int, tplValues map[stri
jDecoder := json.NewDecoder(resp.Body)
err = jDecoder.Decode(&result)
if err != nil {
bt, _ := io.ReadAll(resp.Body)
fmt.Println(string(bt))
return err
}
if result.Code != 0 {
... ...