作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -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) {