正在显示
1 个修改的文件
包含
20 行增加
和
0 行删除
| @@ -38,11 +38,21 @@ class WebSettingAmpLogic extends BaseLogic | @@ -38,11 +38,21 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 38 | $v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']); | 38 | $v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']); |
| 39 | } | 39 | } |
| 40 | } | 40 | } |
| 41 | + //首页video处理 | ||
| 42 | + $info['index_video'] = Arr::s2a($info['index_video']); | ||
| 43 | + if (!empty($info['index_video'])) { | ||
| 44 | + $info['index_video']['url'] = getImageUrl($info['index_video']['url'], $this->user['storage_type'], $this->user['project_location']); | ||
| 45 | + } | ||
| 41 | //公司主图处理 | 46 | //公司主图处理 |
| 42 | $info['company_image'] = Arr::s2a($info['company_image']); | 47 | $info['company_image'] = Arr::s2a($info['company_image']); |
| 43 | if (!empty($info['company_image'])) { | 48 | if (!empty($info['company_image'])) { |
| 44 | $info['company_image']['url'] = getImageUrl($info['company_image']['url'], $this->user['storage_type'], $this->user['project_location']); | 49 | $info['company_image']['url'] = getImageUrl($info['company_image']['url'], $this->user['storage_type'], $this->user['project_location']); |
| 45 | } | 50 | } |
| 51 | + //contact主图处理 | ||
| 52 | + $info['contact_image'] = Arr::s2a($info['contact_image']); | ||
| 53 | + if (!empty($info['contact_image'])) { | ||
| 54 | + $info['contact_image']['url'] = getImageUrl($info['contact_image']['url'], $this->user['storage_type'], $this->user['project_location']); | ||
| 55 | + } | ||
| 46 | //icon处理 | 56 | //icon处理 |
| 47 | $info['web_icon'] = getImageUrl($info['web_icon']); | 57 | $info['web_icon'] = getImageUrl($info['web_icon']); |
| 48 | return $this->success($info); | 58 | return $this->success($info); |
| @@ -71,11 +81,21 @@ class WebSettingAmpLogic extends BaseLogic | @@ -71,11 +81,21 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 71 | } | 81 | } |
| 72 | } | 82 | } |
| 73 | $this->param['index_banner'] = Arr::a2s($index_banner); | 83 | $this->param['index_banner'] = Arr::a2s($index_banner); |
| 84 | + //首页video处理 | ||
| 85 | + if (isset($this->param['index_video']) && $this->param['index_video']) { | ||
| 86 | + $this->param['index_video']['url'] = str_replace_url($this->param['index_video']['url'] ?? ''); | ||
| 87 | + } | ||
| 88 | + $this->param['index_video'] = Arr::a2s($this->param['index_video'] ?? []); | ||
| 74 | //公司主图处理 | 89 | //公司主图处理 |
| 75 | if (isset($this->param['company_image']) && $this->param['company_image']) { | 90 | if (isset($this->param['company_image']) && $this->param['company_image']) { |
| 76 | $this->param['company_image']['url'] = str_replace_url($this->param['company_image']['url'] ?? ''); | 91 | $this->param['company_image']['url'] = str_replace_url($this->param['company_image']['url'] ?? ''); |
| 77 | } | 92 | } |
| 78 | $this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []); | 93 | $this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []); |
| 94 | + //contact主图处理 | ||
| 95 | + if (isset($this->param['contact_image']) && $this->param['contact_image']) { | ||
| 96 | + $this->param['contact_image']['url'] = str_replace_url($this->param['contact_image']['url'] ?? ''); | ||
| 97 | + } | ||
| 98 | + $this->param['contact_image'] = Arr::a2s($this->param['contact_image'] ?? []); | ||
| 79 | //icon处理 | 99 | //icon处理 |
| 80 | $this->param['web_icon'] = str_replace_url($this->param['web_icon'] ?? ''); | 100 | $this->param['web_icon'] = str_replace_url($this->param['web_icon'] ?? ''); |
| 81 | //其余参数默认值 | 101 | //其余参数默认值 |
-
请 注册 或 登录 后发表评论