diff --git a/src/main/java/com/whdc/controller/autocall/AutoCallController.java b/src/main/java/com/whdc/controller/autocall/AutoCallController.java index 2f0163f..8738e55 100644 --- a/src/main/java/com/whdc/controller/autocall/AutoCallController.java +++ b/src/main/java/com/whdc/controller/autocall/AutoCallController.java @@ -10,6 +10,7 @@ import com.whdc.service.autocall.AutoCallApiService; import com.whdc.service.autocall.AutoCallTaskService2; import com.whdc.utils.AICCHelper; import com.whdc.utils.ResultJson; +import lombok.extern.slf4j.Slf4j; import org.apache.poi.util.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -28,6 +29,7 @@ import java.util.List; */ @RestController @RequestMapping("/autocall") +@Slf4j public class AutoCallController { @Autowired private AutoCallApiService autoCallApiService; @@ -82,7 +84,15 @@ public class AutoCallController { @GetMapping("/setEnable") public ResultJson setEnable(@RequestParam("enable") Boolean enable) { + if (enable == null) { + return ResultJson.error("参数错误"); + } configMapper.setEnable(enable); + if (enable) { + log.info("启用智能呼叫"); + } else { + log.info("禁用智能呼叫"); + } return ResultJson.ok(true); }