Просмотр исходного кода

使用/srv/opensearch/synonyms/pali/ 拼接输出文件路径

visuddhinanda 1 неделя назад
Родитель
Сommit
56bc5903fc
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      api-v13/app/Console/Commands/ExportPaliSynonyms.php

+ 2 - 1
api-v13/app/Console/Commands/ExportPaliSynonyms.php

@@ -56,7 +56,8 @@ class ExportPaliSynonyms extends Command
         $dictId[] = DictApi::getSysDict('robot_compound');
         $dictId[] = DictApi::getSysDict('robot_compound');
 */
 */
         $filename =  $this->option('output');
         $filename =  $this->option('output');
-        $fp = fopen(Str::finish(config('mint.opensearch.config.synonyms_path'), '/') . $filename, 'w') or exit('Unable to open file!');
+        $BASE_PATH = '/srv/opensearch/synonyms/pali/';
+        $fp = fopen($BASE_PATH . $filename, 'w') or exit('Unable to open file!');
 
 
         $parents = UserDict::select('parent')
         $parents = UserDict::select('parent')
             ->whereNotNull('parent')
             ->whereNotNull('parent')