Bläddra i källkod

在模版中添加 type=m

visuddhinanda 2 år sedan
förälder
incheckning
803a3f7089
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Console/Commands/ImportArticle.php

+ 1 - 1
app/Console/Commands/ImportArticle.php

@@ -83,7 +83,7 @@ class ImportArticle extends Command
                 $title = $data[2];
                 $title = $data[2];
                 $realTitle = "[{$id}]{$title}";
                 $realTitle = "[{$id}]{$title}";
                 $content = str_replace('\n',"\n",$data[4]) ;
                 $content = str_replace('\n',"\n",$data[4]) ;
-                $reference = str_replace(['(',')'],['({{ql|title=','}})'],$data[5]);
+                $reference = str_replace(['(',')'],['({{ql|type=m|title=','}})'],$data[5]);
                 $contentCombine = "{$title}\n\n{$content}\n\n{$reference}";
                 $contentCombine = "{$title}\n\n{$content}\n\n{$reference}";
                 $percent = (int)($inputRow*100/7000);
                 $percent = (int)($inputRow*100/7000);
                 $this->info("[{$percent}%] doing ".$realTitle);
                 $this->info("[{$percent}%] doing ".$realTitle);