Merge branch 'akun' into develop
正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -50,10 +50,13 @@ class WebSettingAmpLogic extends BaseLogic | @@ -50,10 +50,13 @@ class WebSettingAmpLogic extends BaseLogic | ||
| 50 | //log图处理 | 50 | //log图处理 |
| 51 | $this->param['top_logo'] = str_replace_url($this->param['top_logo'] ?? ''); | 51 | $this->param['top_logo'] = str_replace_url($this->param['top_logo'] ?? ''); |
| 52 | //banner处理 | 52 | //banner处理 |
| 53 | - foreach ($this->param['index_banner'] ?? [] as &$v) { | ||
| 54 | - $v = str_replace_url($v); | 53 | + $index_banner = []; |
| 54 | + if (isset($this->param['index_banner']) && $this->param['index_banner']) { | ||
| 55 | + foreach ($this->param['index_banner'] as $v) { | ||
| 56 | + $index_banner[] = str_replace_url($v); | ||
| 57 | + } | ||
| 55 | } | 58 | } |
| 56 | - $this->param['index_banner'] = Arr::a2s($this->param['index_banner'] ?? []); | 59 | + $this->param['index_banner'] = Arr::a2s($index_banner); |
| 57 | 60 | ||
| 58 | $info = $this->model->read(['project_id' => $this->user['project_id']]); | 61 | $info = $this->model->read(['project_id' => $this->user['project_id']]); |
| 59 | if ($info === false) { | 62 | if ($info === false) { |
-
请 注册 或 登录 后发表评论