lrf402788946 4 tahun lalu
induk
melakukan
b0e220a8a5
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

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