|
|
@@ -1,16 +1,12 @@
|
|
|
package com.uas.search.console.controller;
|
|
|
|
|
|
-import java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
-import java.util.Set;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
-import com.uas.message.sms.domain.SmsLog;
|
|
|
-import com.uas.message.sms.service.SmsService;
|
|
|
import com.uas.search.console.schedule.model.TaskInformation;
|
|
|
import com.uas.search.console.schedule.service.TaskService;
|
|
|
|
|
|
@@ -53,22 +49,4 @@ public class ScheduleController {
|
|
|
public boolean isStopped() {
|
|
|
return taskService.isStopped();
|
|
|
}
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private SmsService smsService;
|
|
|
-
|
|
|
- @RequestMapping("/test")
|
|
|
- @ResponseBody
|
|
|
- // TODO 测完后删除
|
|
|
- public void test() {
|
|
|
- Set<String> receivers = new HashSet<>();
|
|
|
- receivers.add("18782417445");
|
|
|
- List<SmsLog> logs = smsService.sendAll("a38cd5c8-8772-48b6-b59d-e8da613ca3b3", receivers,
|
|
|
- new Object[] { "B2C实时更新服务出现问题,正在自动重启实时更新服务" });
|
|
|
- for (SmsLog log : logs) {
|
|
|
- System.out.println(log.getJsonResult());
|
|
|
- System.out.println(log.getErrMsg());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
}
|