lrf402788946 4 年 前
コミット
578292d875
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/controller/weixin.js

+ 2 - 2
app/controller/weixin.js

@@ -83,8 +83,8 @@ class WeixinController extends Controller {
           if (user.type === '4') {
             // 学生
             // 检查学生是否已退出,学生表的isComming是不是2,如果是2 就跳到别的地方提示您已退出
-            console.log(`uid=>${uid}`);
-            const stu = await this.ctx.service.student.fetch({ id: uid });
+            console.log(`uid=>${user.uid}`);
+            const stu = await this.ctx.service.student.fetch({ id: user.uid });
             console.log(`student:=->${stu}`);
             if (stu) {
               const { isComming } = stu;