监控接口移除token

This commit is contained in:
zhangwei 2025-06-18 18:15:31 +08:00
parent 11a3bed106
commit a32cd79157
1 changed files with 0 additions and 10 deletions

View File

@ -2,7 +2,6 @@ package core
import (
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils"
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
@ -18,15 +17,6 @@ func ScreenPageTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
result.ParamErrorResult(r, w, err)
return
}
token := r.Header.Get("Authorization")
// 获取用户信息
jccUserInfo, err := utils.ParseTokenWithoutVerify(token)
if err != nil {
result.ParamErrorResult(r, w, err)
return
}
req.UserId = jccUserInfo.Id
req.UserName = jccUserInfo.UserName
l := core.NewScreenPageTaskLogic(r.Context(), svcCtx)
resp, err := l.ScreenPageTask(&req)
result.HttpResult(r, w, resp, err)