lrf 2 năm trước cách đây
mục cha
commit
01743bee69
2 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 1
      app/controller/user/config/.user.js
  2. 0 5
      app/service/user/user.js

+ 1 - 1
app/controller/user/config/.user.js

@@ -37,6 +37,6 @@ module.exports = {
     },
   },
   wxAppLogin: {
-    requestBody: ['!openid'],
+    requestBody: ['!id'],
   },
 };

+ 0 - 5
app/service/user/user.js

@@ -12,11 +12,6 @@ class UserService extends CrudService {
     this.coachModel = this.ctx.model.User.Coach;
   }
 
-  async fetch({ openid }) {
-    const res = await this.model.findOne({ openid });
-    return res;
-  }
-
   /**
    * 检查数据重复
    */