正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -27,10 +27,12 @@ class WebSettingAmpLogic extends BaseLogic | @@ -27,10 +27,12 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 27 | if ($info === false) { | 27 | if ($info === false) { |
| 28 | return $this->success(); | 28 | return $this->success(); |
| 29 | } | 29 | } |
| 30 | + //log图处理 | ||
| 31 | + $info['top_logo'] = getImageUrl($info['top_logo'], $this->user['storage_type'] ?? 0); | ||
| 30 | //banner处理 | 32 | //banner处理 |
| 31 | if (!empty($info['index_banner'])) { | 33 | if (!empty($info['index_banner'])) { |
| 32 | foreach ($info['index_banner'] as &$v) { | 34 | foreach ($info['index_banner'] as &$v) { |
| 33 | - $v = getImageUrl($v, $this->user['project_location'] ?? 0, $this->user['storage_type'] ?? 0); | 35 | + $v = getImageUrl($v, $this->user['storage_type'] ?? 0); |
| 34 | } | 36 | } |
| 35 | } | 37 | } |
| 36 | return $this->success($info); | 38 | return $this->success($info); |
| @@ -45,6 +47,8 @@ class WebSettingAmpLogic extends BaseLogic | @@ -45,6 +47,8 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 45 | public function ampSave() | 47 | public function ampSave() |
| 46 | { | 48 | { |
| 47 | try { | 49 | try { |
| 50 | + //log图处理 | ||
| 51 | + $this->param['top_logo'] = str_replace_url($this->param['top_logo'] ?? ''); | ||
| 48 | //banner处理 | 52 | //banner处理 |
| 49 | foreach ($this->param['index_banner'] ?? [] as &$v) { | 53 | foreach ($this->param['index_banner'] ?? [] as &$v) { |
| 50 | $v = str_replace_url($v); | 54 | $v = str_replace_url($v); |
-
请 注册 或 登录 后发表评论