正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -29,7 +29,7 @@ class WebSettingAmpLogic extends BaseLogic | @@ -29,7 +29,7 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 29 | } | 29 | } |
| 30 | //log图处理 | 30 | //log图处理 |
| 31 | $info['top_logo'] = Arr::s2a($info['top_logo']); | 31 | $info['top_logo'] = Arr::s2a($info['top_logo']); |
| 32 | - if(!empty($info['top_logo'])){ | 32 | + if (!empty($info['top_logo'])) { |
| 33 | $info['top_logo']['url'] = getImageUrl($info['top_logo']['url'], $this->user['storage_type'], $this->user['project_location']); | 33 | $info['top_logo']['url'] = getImageUrl($info['top_logo']['url'], $this->user['storage_type'], $this->user['project_location']); |
| 34 | } | 34 | } |
| 35 | //banner处理 | 35 | //banner处理 |
| @@ -41,7 +41,7 @@ class WebSettingAmpLogic extends BaseLogic | @@ -41,7 +41,7 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 41 | } | 41 | } |
| 42 | //公司主图处理 | 42 | //公司主图处理 |
| 43 | $info['company_image'] = Arr::s2a($info['company_image']); | 43 | $info['company_image'] = Arr::s2a($info['company_image']); |
| 44 | - if(!empty($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']); | 45 | $info['company_image']['url'] = getImageUrl($info['company_image']['url'], $this->user['storage_type'], $this->user['project_location']); |
| 46 | } | 46 | } |
| 47 | //icon处理 | 47 | //icon处理 |
| @@ -78,7 +78,7 @@ class WebSettingAmpLogic extends BaseLogic | @@ -78,7 +78,7 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 78 | } | 78 | } |
| 79 | $this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []); | 79 | $this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []); |
| 80 | //icon处理 | 80 | //icon处理 |
| 81 | - $this->param['web_icon'] = str_replace_url($this->param['web_icon']); | 81 | + $this->param['web_icon'] = str_replace_url($this->param['web_icon'] ?? ''); |
| 82 | 82 | ||
| 83 | $info = $this->model->read(['project_id' => $this->user['project_id']]); | 83 | $info = $this->model->read(['project_id' => $this->user['project_id']]); |
| 84 | if ($info === false) { | 84 | if ($info === false) { |
-
请 注册 或 登录 后发表评论