Browse Source

推送

master
huangjiajun 1 week ago
parent
commit
5e1ba996f5
2 changed files with 4 additions and 4 deletions
  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 View File

@@ -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 View File

@@ -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…
Cancel
Save