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