visuddhinanda 2 лет назад
Родитель
Сommit
b97ce0c0cf
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app/Console/Commands/ImportArticleMap.php

+ 5 - 0
app/Console/Commands/ImportArticleMap.php

@@ -95,7 +95,12 @@ class ImportArticleMap extends Command
                 $dir = $data[1];
                 $dir = $data[1];
                 $title = $data[2];
                 $title = $data[2];
                 $realTitle = "[{$id}]{$title}";
                 $realTitle = "[{$id}]{$title}";
+                $realTitle = mb_substr($realTitle,0,128,'UTF-8');
                 $reference = $data[5];
                 $reference = $data[5];
+
+                $percent = (int)($inputRow*100/6984);
+                $this->info("[{$percent}%] doing ".$realTitle);
+
                 if($this->option('size')){
                 if($this->option('size')){
                     $currDir = 'tipitaka-sarupa-'.$currBlock;
                     $currDir = 'tipitaka-sarupa-'.$currBlock;
                     if($currSize > $this->option('size')){
                     if($currSize > $this->option('size')){