From a69a9774ebc193aef9e89e3a6b4abc2d3fc10f08 Mon Sep 17 00:00:00 2001 From: lyf66 Date: Mon, 25 Aug 2025 10:02:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(autocall):=20=E6=B7=BB=E5=8A=A0=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=91=BC=E5=8F=AB=E5=90=AF=E7=94=A8=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95-=20=E5=9C=A8=20AutoCallCon?= =?UTF-8?q?troller=20=E7=B1=BB=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD=20-=20?= =?UTF-8?q?=E5=BD=93=E5=90=AF=E7=94=A8=E6=88=96=E7=A6=81=E7=94=A8=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=91=BC=E5=8F=AB=E6=97=B6=EF=BC=8C=E4=BC=9A=E5=9C=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=AD=E8=AE=B0=E5=BD=95=E7=9B=B8=E5=BA=94?= =?UTF-8?q?=E4=BF=A1=E6=81=AF-=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=AF=B9=20en?= =?UTF-8?q?able=20=E5=8F=82=E6=95=B0=E7=9A=84=E9=9D=9E=E7=A9=BA=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=EF=BC=8C=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=81=A5?= =?UTF-8?q?=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../whdc/controller/autocall/AutoCallController.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }