rabin 7 tahun lalu
induk
melakukan
287903a0f5
1 mengubah file dengan 12 tambahan dan 10 penghapusan
  1. 12 10
      task/src/Info.php

+ 12 - 10
task/src/Info.php

@@ -236,17 +236,19 @@ class Info extends Base
 
             $result['total_score'] = $result['report_score'] + $result['group_score'];
 
-            if ($result['report_score'] >= 0) {
-                $result['report'] = '个人已完成 '.$result['report_num'].' 项任务报告,获得 <em>'.$result['report_score'].' ' . $this->data['config']['score_name'] . '</em>';
-            }
-            
-            if ($result['group_score'] >= 0) {
-                $result['group'] = '组员已完成 '.$result['group_report_num'].' 项任务报告,贡献 <em>'.$result['group_score'].' ' . $this->data['config']['score_name'] . '</em>';
-            }
             
-            if ($result['total_score'] >= 0) {
-                $result['total'] = '合计获得 <strong>'.$result['total_score'].'</strong> ' . $this->data['config']['score_name'];
-            }
+        }
+
+        if ($result['report_score'] >= 0) {
+            $result['report'] = '个人已完成 '.$result['report_num'].' 项任务报告,获得 <em>'.$result['report_score'].' ' . $this->data['config']['score_name'] . '</em>';
+        }
+        
+        if ($result['group_score'] >= 0) {
+            $result['group'] = '组员已完成 '.$result['group_report_num'].' 项任务报告,贡献 <em>'.$result['group_score'].' ' . $this->data['config']['score_name'] . '</em>';
+        }
+        
+        if ($result['total_score'] >= 0) {
+            $result['total'] = '合计获得 <strong>'.$result['total_score'].'</strong> ' . $this->data['config']['score_name'];
         }
 
         return $result;