middleware
muiddleware
function checktoken(){ return async function(ctx,next){ console.log('middleware checktoken'); await next(); } }