Преглед изворни кода

错题本api 返回字段优化

yemeishu пре 14 часа
родитељ
комит
2a4b969ad3
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Services/MistakeBookService.php

+ 2 - 2
app/Services/MistakeBookService.php

@@ -705,12 +705,12 @@ class MistakeBookService
             'next_review_at' => $mistake->next_review_at?->toISOString(),
             'error_type' => $mistake->error_type,
             'error_type_label' => $mistake->error_type_label,
-            // 【移除】kp_ids、source、source_label、knowledge_point、explanation 字段
+            // 【移除】kp_ids、source、source_label、knowledge_point 字段
             // 'kp_ids' => $mistake->kp_ids,
             // 'source' => $mistake->source,
             // 'source_label' => $mistake->source_label,
             // 'knowledge_point' => $mistake->knowledge_point,
-            // 'explanation' => $mistake->explanation,
+            'explanation' => $mistake->explanation,
             'skill_ids' => $mistake->skill_ids,
             'difficulty' => $mistake->difficulty,
             'difficulty_level' => $mistake->difficulty_level,