liangyali / passport-wechat

Passport strategy for authenticating with Wechat
158 stars 51 forks source link

req 的对象不存 get 方法 #25

Open lawrence-peng opened 5 years ago

lawrence-peng commented 5 years ago

https://github.com/liangyali/passport-wechat/blob/48e3ea4706a9604fa13f91f0300767119080d32f/lib/strategy.js#L145

在 egg-passport 插件中,他传的是 ctx.req ,而不是 ctx,这行代码应该找到最兼容的方案。