From 31151959ec4316883d1497fd5721e65e134fc9be Mon Sep 17 00:00:00 2001 From: "Mr.Wang" Date: Fri, 14 Jun 2024 16:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E5=A4=87=E7=AE=B1-?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=93=8D=E4=BD=9C=E5=8F=A3=E4=BB=A4=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zc/business/controller/DcDeviceController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java b/zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java index 6dce4b16..2704a549 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcDeviceController.java @@ -15,6 +15,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysConfigService; import com.zc.business.constant.DeviceTypeConstants; import com.zc.business.domain.DcDevice; import com.zc.business.interfaces.OperationLog; @@ -62,6 +63,9 @@ public class DcDeviceController extends BaseController { @Resource private BroadcastController broadcastController; + @Resource + private ISysConfigService configService; + //*********************************设备增删改查****************************************** /** @@ -805,5 +809,13 @@ public class DcDeviceController extends BaseController { } return null; } + /** + * 设备箱-设备操作口令校验 + */ + @GetMapping("/kouling/{secretKey}") + public AjaxResult verifySecretKey(@PathVariable String secretKey) { + String key = configService.selectConfigByKey("sbx-fun-kl");//密钥 + return AjaxResult.success(key.equals(secretKey)); + } }