[用户平台][缓存]实现刷新和预热

This commit is contained in:
刘祥超
2020-12-23 21:24:48 +08:00
parent 803d0c6344
commit ed34a387c7
7 changed files with 56 additions and 5 deletions

View File

@@ -191,7 +191,7 @@ func (this *NodeService) NodeStream(server pb.NodeService_NodeStreamServer) erro
// 向节点发送命令
func (this *NodeService) SendCommandToNode(ctx context.Context, req *pb.NodeStreamMessage) (*pb.NodeStreamMessage, error) {
// 校验请求
_, _, err := rpcutils.ValidateRequest(ctx, rpcutils.UserTypeAdmin)
_, _, err := this.ValidateAdminAndUser(ctx, 0, 0)
if err != nil {
return nil, err
}