From 881dcbb1ae8ea92ad41faddbd851e1c58856d295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Thu, 14 May 2026 16:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AF=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zhehekeji/web/service/LightSourceService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/main/java/com/zhehekeji/web/service/LightSourceService.java b/web/src/main/java/com/zhehekeji/web/service/LightSourceService.java index a0e4c2f..a8840ef 100644 --- a/web/src/main/java/com/zhehekeji/web/service/LightSourceService.java +++ b/web/src/main/java/com/zhehekeji/web/service/LightSourceService.java @@ -3,6 +3,7 @@ package com.zhehekeji.web.service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.zhehekeji.web.entity.LightSource; import com.zhehekeji.web.mapper.LightSourceMapper; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -15,6 +16,7 @@ import java.nio.charset.StandardCharsets; import java.util.HashMap; import java.util.List; +@Slf4j @Service public class LightSourceService { @@ -53,6 +55,7 @@ public class LightSourceService { String startCmd = "<1,"+stat+",post>"; byte[]bytes = startCmd.getBytes(StandardCharsets.UTF_8); os.write(bytes); + log.info("发送:{},ip:{}",startCmd, ip); } catch (IOException e) {