|
...
|
...
|
@@ -181,7 +181,10 @@ class TranslateLogic extends BaseLogic |
|
|
|
$textContentArray = array_filter($matches[1], function($item) {
|
|
|
|
return !empty(trim($item));
|
|
|
|
});
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($textContentArray, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// 过滤掉包含逗号加换行的内容
|
|
|
|
$textContentArray = array_filter($textContentArray, function($item) {
|
|
|
|
return strpos($item, ',') === false && strpos($item, PHP_EOL) === false;
|
|
|
|
});
|
|
|
|
$contentData = [];
|
|
|
|
foreach ($textContentArray as $v){
|
|
|
|
$content = trim($v);
|
...
|
...
|
|