lrf 2 years ago
parent
commit
acd7599bfd
1 changed files with 2 additions and 6 deletions
  1. 2 6
      app/service/matchTeamGroup.js

+ 2 - 6
app/service/matchTeamGroup.js

@@ -203,13 +203,11 @@ class MatchTeamGroupService extends CrudService {
         });
         d.person = parr;
       } else if (person_type === 'TeamApply') {
-        console.log(person);
         // 组队
         const teamApplys = await this.teamApplyModel.find({ _id: person });
         const parr = [];
-        for (const p of parr) {
+        for (const p of person) {
           const r = teamApplys.find(f => ObjectId(f._id).equals(p));
-          console.log(r);
           if (r) {
             const { one_member_name, two_member_name } = r;
             parr.push({ id: p, name: `${one_member_name}-${two_member_name}` });
@@ -236,13 +234,11 @@ class MatchTeamGroupService extends CrudService {
       });
       d.person = parr;
     } else if (person_type === 'TeamApply') {
-      console.log(person);
       // 组队
       const teamApplys = await this.teamApplyModel.find({ _id: person });
       const parr = [];
-      for (const p of parr) {
+      for (const p of person) {
         const r = teamApplys.find(f => ObjectId(f._id).equals(p));
-        console.log(r);
         if (r) {
           const { one_member_name, two_member_name } = r;
           parr.push({ id: p, name: `${one_member_name}-${two_member_name}` });