实验
你们在哪里
export async function redirect(ctx,next) { const target = config.SITE_ROOT_URL + '/oauth' const scope = 'snsapi_userinfo' //snsapi_base snsapi_userinfo const {a,b} = ctx.query const params = `${a}_${b}` const url = api.getAuthorizeURL(scope,target,params) console.log(url,":::哈哈哈") ctx.redirect (url) console.log("-----------------")}