lrf402788946 4 年 前
コミット
197b76802b
1 ファイル変更1 行追加4 行削除
  1. 1 4
      app/service/user.js

+ 1 - 4
app/service/user.js

@@ -78,13 +78,10 @@ class UserService extends CrudService {
 
   // 学生绑定
   async bind(data) {
-    const { openid, id_number, mobile, passwd, unionid } = data;
+    const { openid, id_number, mobile,  unionid } = data;
     assert(openid && id_number && mobile, '缺少部分信息项');
     let user = await this.model.findOne({ mobile });
     if (user) {
-      if (user.passwd.secret !== passwd) {
-        throw new BusinessError(ErrorCode.BAD_PASSWORD);
-      }
       user.openid = openid;
       user.unionid = unionid;
       await user.save();