lrf il y a 2 ans
Parent
commit
b25fea2c11
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -62,7 +62,7 @@ class UserService extends CrudService {
     const user = await this.model.findById(user_id);
     if (!user) throw new BusinessError(ErrorCode.USER_NOT_EXIST, '未找到比赛模块用户信息');
     const { openid } = user;
-    const obj = { user_id, parent_id, type: '2', openid };
+    const obj = { user_id: user._id, parent_id, type: '2', openid };
     return this.bindJudge(obj);
   }
 }