實(shí)驗(yàn)
你們?cè)谀睦?/p>
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}_$` const url = api.getAuthorizeURL(scope,target,params) console.log(url,":::哈哈哈") ctx.redirect (url) console.log("-----------------")}