Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into lyh-server
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -338,7 +338,10 @@ class ProjectUpdate extends Command | @@ -338,7 +338,10 @@ class ProjectUpdate extends Command | ||
| 338 | //名称去掉特殊符号 | 338 | //名称去掉特殊符号 |
| 339 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); | 339 | $item['ttile'] = $this->special2str($item['ttile'] ?? ''); |
| 340 | //短描述处理换行 | 340 | //短描述处理换行 |
| 341 | - $intro = str_replace("\r\n", "<br>", $item['short_description'] ?? ''); | 341 | + $intro = $item['short_description'] ?? ''; |
| 342 | + if (strpos($intro, "\r\n") !== false) { | ||
| 343 | + $intro = "<p>" . str_replace("\r\n", "</p><p>", $intro) . "</p>"; | ||
| 344 | + } | ||
| 342 | //详情 | 345 | //详情 |
| 343 | $content = $item['content'] ?? ''; | 346 | $content = $item['content'] ?? ''; |
| 344 | try { | 347 | try { |
-
请 注册 或 登录 后发表评论