正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
| @@ -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; |
-
请 注册 或 登录 后发表评论