无标题文章

2018-05-31  本文已影响0人  秦城雨

实验

你们在哪里

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("-----------------")}

上一篇 下一篇

猜你喜欢

热点阅读