|
@@ -1,5 +1,6 @@
|
|
|
package com.example.demo.demos.web.service.impl;
|
|
package com.example.demo.demos.web.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -46,9 +47,10 @@ public class EcsInfoServiceImpl extends ServiceImpl<EcsInfoMapper, EcsInfo> impl
|
|
|
if (!list.isEmpty()) {
|
|
if (!list.isEmpty()) {
|
|
|
for (String number : Constants.SEND_MSG_NUMBER) {
|
|
for (String number : Constants.SEND_MSG_NUMBER) {
|
|
|
list.forEach(i -> {
|
|
list.forEach(i -> {
|
|
|
- String str = "{\"name\": \""+i.getUrl()+"\"}";
|
|
|
|
|
|
|
+ JSONObject entries = new JSONObject();
|
|
|
|
|
+ entries.set("name",i.getUrl());
|
|
|
try {
|
|
try {
|
|
|
- SMSUtil.sendMsg(number,"天目智能科技","SMS_475345133",str);
|
|
|
|
|
|
|
+ SMSUtil.sendMsg(number,"天目智能科技","SMS_475345133",entries.toString());
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.error("短信发送失败:{}",e);
|
|
log.error("短信发送失败:{}",e);
|
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|