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