正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
| @@ -39,6 +39,13 @@ class WebSettingAmpLogic extends BaseLogic | @@ -39,6 +39,13 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 39 | $v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']); | 39 | $v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']); |
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | + //公司主图处理 | ||
| 43 | + $info['company_image'] = Arr::s2a($info['company_image']); | ||
| 44 | + if(!empty($info['company_image'])){ | ||
| 45 | + $info['company_image']['url'] = getImageUrl($info['company_image']['url'], $this->user['storage_type'], $this->user['project_location']); | ||
| 46 | + } | ||
| 47 | + //icon处理 | ||
| 48 | + $info['web_icon'] = getImageUrl($info['web_icon']); | ||
| 42 | return $this->success($info); | 49 | return $this->success($info); |
| 43 | } | 50 | } |
| 44 | 51 | ||
| @@ -65,6 +72,13 @@ class WebSettingAmpLogic extends BaseLogic | @@ -65,6 +72,13 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 65 | } | 72 | } |
| 66 | } | 73 | } |
| 67 | $this->param['index_banner'] = Arr::a2s($index_banner); | 74 | $this->param['index_banner'] = Arr::a2s($index_banner); |
| 75 | + //公司主图处理 | ||
| 76 | + if (isset($this->param['company_image']) && $this->param['company_image']) { | ||
| 77 | + $this->param['company_image']['url'] = str_replace_url($this->param['company_image']['url'] ?? ''); | ||
| 78 | + } | ||
| 79 | + $this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []); | ||
| 80 | + //icon处理 | ||
| 81 | + $this->param['web_icon'] = str_replace_url($this->param['web_icon']); | ||
| 68 | 82 | ||
| 69 | $info = $this->model->read(['project_id' => $this->user['project_id']]); | 83 | $info = $this->model->read(['project_id' => $this->user['project_id']]); |
| 70 | if ($info === false) { | 84 | if ($info === false) { |
-
请 注册 或 登录 后发表评论