From 5e1ba996f548edb23ccb2e0f16b4fcd9a97c7f3d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_aliyun_sms_record.go | 6 +++--- go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/task/svc/svc_aliyun_sms_record.go b/app/task/svc/svc_aliyun_sms_record.go index d53a91e..facef79 100644 --- a/app/task/svc/svc_aliyun_sms_record.go +++ b/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) } diff --git a/go.mod b/go.mod index bdd6377..68ed6ea 100644 --- a/go.mod +++ b/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