作者 lyh

gx

@@ -168,13 +168,13 @@ class ProofreadingController extends BaseController @@ -168,13 +168,13 @@ class ProofreadingController extends BaseController
168 $textContentArray = $matches[1]; 168 $textContentArray = $matches[1];
169 var_dump($textContentArray); 169 var_dump($textContentArray);
170 die(); 170 die();
171 - $textContentArray = array_filter(, function($item) {  
172 - if(!empty($item)){  
173 - $content = trim($item);  
174 - $trimmedString = preg_replace('/\s+/', ' ', $content);  
175 - $data[] = $trimmedString;  
176 - }  
177 - }); 171 +// $textContentArray = array_filter(, function($item) {
  172 +// if(!empty($item)){
  173 +// $content = trim($item);
  174 +// $trimmedString = preg_replace('/\s+/', ' ', $content);
  175 +// $data[] = $trimmedString;
  176 +// }
  177 +// });
178 $uniqueArray = array_unique($data); 178 $uniqueArray = array_unique($data);
179 $textContentArray = array_values($uniqueArray); 179 $textContentArray = array_values($uniqueArray);
180 return $textContentArray; 180 return $textContentArray;