Browse Source

免登录的bug

lrf 1 year ago
parent
commit
905a6709ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/teacher.js

+ 2 - 2
app/service/teacher.js

@@ -28,8 +28,8 @@ class TeacherService extends CrudService {
     for (const tea of res) {
       const r = await this.umodel.findOne({ uid: tea._id }, '+passwd');
       if (r) {
-        const { passwd } = r;
-        tea.secret = passwd.secret;
+        // const { passwd } = r;
+        // tea.secret = passwd.secret;
         tea.openid = _.get(r, 'openid');
       }
     }