将获取待运行数据接口日志输出

This commit is contained in:
junleea 2025-03-11 15:14:38 +08:00
parent a164def0cd
commit ad24877771
1 changed files with 2 additions and 0 deletions

View File

@ -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()})