移除一些无用的日志

This commit is contained in:
zhl 2021-05-28 15:30:02 +08:00
parent e406aebf40
commit a6c3b1c081

View File

@ -44,7 +44,6 @@ const getTokenFromBody = function (request) {
const zTokenParserPlugin: FastifyPluginAsync = async function (fastify: FastifyInstance, options?: any) { const zTokenParserPlugin: FastifyPluginAsync = async function (fastify: FastifyInstance, options?: any) {
fastify.addHook('preValidation', async (request: FastifyRequest, reply: FastifyReply) => { fastify.addHook('preValidation', async (request: FastifyRequest, reply: FastifyReply) => {
console.log('token parser preValidation')
request['token'] = request['token'] =
getTokenFromHeader(request) || getTokenFromHeader(request) ||
getTokenFromCookie(request) || getTokenFromCookie(request) ||