lrf 3 年之前
父节点
当前提交
c02e781faa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/service/statistics.js

+ 1 - 0
app/service/statistics.js

@@ -62,6 +62,7 @@ class StatisticsService extends CrudService {
     let score = 0; // 积分
     for (const match of list) {
       const { red_id, blue_id, red_branch, blue_branch } = match;
+      if (!red_branch && !blue_branch) continue;
       let teamInMatch = 'blue';
       if (red_id === team_id) teamInMatch = 'red';
       else if (blue_id === team_id) teamInMatch = 'blue';