|
@@ -83,7 +83,7 @@ class WeixinController extends Controller {
|
|
|
if (user) {
|
|
|
const token = await this.ctx.service.login.createJwt(user);
|
|
|
if (user.type === '4') {
|
|
|
- const student = await this.ctx.service.fetch(user.uid);
|
|
|
+ const student = await this.ctx.service.student.fetch(user.uid);
|
|
|
const newdata = { planid: student.planid, ...JSON.parse(JSON.stringify(user)) };
|
|
|
const token_ = await this.ctx.service.login.createJwt(newdata);
|
|
|
const to_uri = urljoin(redirect_uri, `?token=${token_}`);
|