From ad248777719bef01c4c7528ffe8b19334f63b6a8 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 11 Mar 2025 15:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=8E=B7=E5=8F=96=E5=BE=85=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/shell.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/shell.go b/handler/shell.go index 03cae5e..4d32a2d 100644 --- a/handler/shell.go +++ b/handler/shell.go @@ -2,6 +2,7 @@ package handler import ( "github.com/gin-gonic/gin" + "log" "videoplayer/proto" "videoplayer/service" ) @@ -94,6 +95,7 @@ func (s *ShellHandler) ServerWillRun(c *gin.Context) { if err := c.ShouldBind(&req); err != nil { c.JSON(200, gin.H{"code": proto.ShellUpdateFailed, "message": "参数错误", "data": err.Error()}) } else { + log.Printf("ServerWillRunReq:%s,id:%d", req.Server, id) willRunShells, err2 := service.FindShellWillRunByServer(req.Server, id) if err2 != nil { c.JSON(200, gin.H{"code": proto.ShellUpdateFailed, "message": "获取失败", "data": err2.Error()})