|
...
|
...
|
@@ -179,9 +179,9 @@ class TranslateLogic extends BaseLogic |
|
|
|
$matches = array();
|
|
|
|
preg_match_all($pattern, $strippedContent, $matches);
|
|
|
|
$textContentArray = array_filter($matches[1], function($item) {
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($item, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return !empty(trim($item));
|
|
|
|
});
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($textContentArray, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$contentData = [];
|
|
|
|
foreach ($textContentArray as $v){
|
|
|
|
$content = trim($v);
|
...
|
...
|
|