正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | namespace App\Http\Logic\Bside\News; | 3 | namespace App\Http\Logic\Bside\News; |
| 4 | 4 | ||
| 5 | use App\Enums\Common\Code; | 5 | use App\Enums\Common\Code; |
| 6 | +use App\Helper\Arr; | ||
| 6 | use App\Http\Logic\Bside\BaseLogic; | 7 | use App\Http\Logic\Bside\BaseLogic; |
| 7 | use App\Models\News\News; | 8 | use App\Models\News\News; |
| 8 | use App\Models\News\NewsCategory; | 9 | use App\Models\News\NewsCategory; |
| @@ -181,6 +182,9 @@ class NewsLogic extends BaseLogic | @@ -181,6 +182,9 @@ class NewsLogic extends BaseLogic | ||
| 181 | */ | 182 | */ |
| 182 | public function paramProcessing($param) | 183 | public function paramProcessing($param) |
| 183 | { | 184 | { |
| 185 | + if(isset($param['image'])){ | ||
| 186 | + $param['image'] = str_replace_url($param['image'] ?? ''); | ||
| 187 | + } | ||
| 184 | if(isset($this->param['id'])){ | 188 | if(isset($this->param['id'])){ |
| 185 | $param['operator_id'] = $this->user['id']; | 189 | $param['operator_id'] = $this->user['id']; |
| 186 | if(isset($param['category_id']) && !empty($param['category_id'])){ | 190 | if(isset($param['category_id']) && !empty($param['category_id'])){ |
-
请 注册 或 登录 后发表评论