正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -179,9 +179,9 @@ class TranslateLogic extends BaseLogic | @@ -179,9 +179,9 @@ class TranslateLogic extends BaseLogic | ||
| 179 | $matches = array(); | 179 | $matches = array(); |
| 180 | preg_match_all($pattern, $strippedContent, $matches); | 180 | preg_match_all($pattern, $strippedContent, $matches); |
| 181 | $textContentArray = array_filter($matches[1], function($item) { | 181 | $textContentArray = array_filter($matches[1], function($item) { |
| 182 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($item, true) . PHP_EOL, FILE_APPEND); | ||
| 183 | return !empty(trim($item)); | 182 | return !empty(trim($item)); |
| 184 | }); | 183 | }); |
| 184 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($textContentArray, true) . PHP_EOL, FILE_APPEND); | ||
| 185 | $contentData = []; | 185 | $contentData = []; |
| 186 | foreach ($textContentArray as $v){ | 186 | foreach ($textContentArray as $v){ |
| 187 | $content = trim($v); | 187 | $content = trim($v); |
-
请 注册 或 登录 后发表评论