切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
7492cd6a925efd76b552e4b447be32f7ce73ac9a
1 个父辈
351f91f7
调整
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
8 行删除
pkg/application/notify/sms.go
pkg/infrastructure/serviceGateway/httplib_sms_service.go
pkg/application/notify/sms.go
查看文件 @
7492cd6
...
...
@@ -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
...
...
pkg/infrastructure/serviceGateway/httplib_sms_service.go
查看文件 @
7492cd6
...
...
@@ -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
{
...
...
请
注册
或
登录
后发表评论