正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -217,6 +217,9 @@ class NewsLogic extends BaseLogic | @@ -217,6 +217,9 @@ class NewsLogic extends BaseLogic | ||
| 217 | $matches = []; | 217 | $matches = []; |
| 218 | preg_match_all($pattern, $text, $matches); | 218 | preg_match_all($pattern, $text, $matches); |
| 219 | $updatedSources = $this->saveBase64Images($matches[1]); | 219 | $updatedSources = $this->saveBase64Images($matches[1]); |
| 220 | + if($this->user['project_id'] == 1618){ | ||
| 221 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($updatedSources, true) . PHP_EOL, FILE_APPEND); | ||
| 222 | + } | ||
| 220 | if(!empty($updatedSources)){ | 223 | if(!empty($updatedSources)){ |
| 221 | foreach($updatedSources as $k => $v){ | 224 | foreach($updatedSources as $k => $v){ |
| 222 | $text = str_replace($v, $k, $text); | 225 | $text = str_replace($v, $k, $text); |
-
请 注册 或 登录 后发表评论