瀏覽代碼

推送

tmp
huangjiajun 1 周之前
父節點
當前提交
5e1ba996f5
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +3
    -3
      app/task/svc/svc_aliyun_sms_record.go
  2. +1
    -1
      go.mod

+ 3
- 3
app/task/svc/svc_aliyun_sms_record.go 查看文件

@@ -82,7 +82,7 @@ WHERE %s GROUP BY u.id ORDER BY u.id asc %s
if uids == "" {
return
}
arg := md.AliyunSmsRecordFundData{Phone: uids, Title: data.Title, Content: data.Content}
arg := md.AliyunSmsRecordFundData{Phone: uids, Title: data.Title, Content: data.Content, Code: data.SmsCode}
if len(userList) < 1000 {
arg.Id = utils.IntToStr(data.Id)
}
@@ -125,7 +125,7 @@ func commSmsSend(eg *xorm.Engine, ch *rabbit.Channel, data model.AliyunSmsRecord
if uids == "" {
return
}
arg := md.AliyunSmsRecordFundData{Phone: uids, Title: data.Title, Content: data.Content}
arg := md.AliyunSmsRecordFundData{Phone: uids, Title: data.Title, Content: data.Content, Code: data.SmsCode}
if len(userList) < 1000 {
arg.Id = utils.IntToStr(data.Id)
}
@@ -147,7 +147,7 @@ func MoreSmsSend(eg *xorm.Engine, ch *rabbit.Channel, data model.AliyunSmsRecord
tmpUser := make([]string, 0)
for k, v := range userList {
if len(tmpUser) == 1000 || (k+1 >= len(userList) && len(tmpUser) < 1000) {
arg := md.AliyunSmsRecordFundData{Phone: strings.Join(tmpUser, ","), Title: data.Title, Content: data.Content}
arg := md.AliyunSmsRecordFundData{Phone: strings.Join(tmpUser, ","), Title: data.Title, Content: data.Content, Code: data.SmsCode}
if k+1 >= len(userList) {
arg.Id = utils.IntToStr(data.Id)
}


+ 1
- 1
go.mod 查看文件

@@ -32,7 +32,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241212120727-3681308aeb14
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241213070558-a1f0ce782dff
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241212140020-c99f60b4f868
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5


Loading…
取消
儲存