forked from JointCloud/pcm-coordinator
监控接口移除token
This commit is contained in:
parent
11a3bed106
commit
a32cd79157
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue