visuddhinanda 1 месяц назад
Родитель
Сommit
f036d8b3b4
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      api-v12/app/Console/Commands/ExportDiscussion.php

+ 3 - 1
api-v12/app/Console/Commands/ExportDiscussion.php

@@ -11,6 +11,7 @@ class ExportDiscussion extends Command
 {
     /**
      * The name and signature of the console command.
+     * php artisan export:discussion
      */
     protected $signature = 'export:discussion {editor : The editor UID to export discussions for}';
 
@@ -165,8 +166,9 @@ class ExportDiscussion extends Command
                 : trim($translation->content ?? '(无译文内容)');
 
             $this->writeLine("# {$paliContent}\n");
-            $this->writeLine("  - **译文**: {$translationAtTime}");
+            $this->writeLine("  - **历史译文**: {$translationAtTime}");
             $this->writeLine("  - **评论**: " . trim($discussion->title ?? '') . trim($discussion->content ?? ''));
+            $this->writeLine("  - **当前译文**: {$translation->content}");
             $this->writeLine('');
         }