|
...
|
...
|
@@ -39,6 +39,13 @@ class WebSettingAmpLogic extends BaseLogic |
|
|
|
$v['url'] = getImageUrl($v['url'], $this->user['storage_type'], $this->user['project_location']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//公司主图处理
|
|
|
|
$info['company_image'] = Arr::s2a($info['company_image']);
|
|
|
|
if(!empty($info['company_image'])){
|
|
|
|
$info['company_image']['url'] = getImageUrl($info['company_image']['url'], $this->user['storage_type'], $this->user['project_location']);
|
|
|
|
}
|
|
|
|
//icon处理
|
|
|
|
$info['web_icon'] = getImageUrl($info['web_icon']);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -65,6 +72,13 @@ class WebSettingAmpLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->param['index_banner'] = Arr::a2s($index_banner);
|
|
|
|
//公司主图处理
|
|
|
|
if (isset($this->param['company_image']) && $this->param['company_image']) {
|
|
|
|
$this->param['company_image']['url'] = str_replace_url($this->param['company_image']['url'] ?? '');
|
|
|
|
}
|
|
|
|
$this->param['company_image'] = Arr::a2s($this->param['company_image'] ?? []);
|
|
|
|
//icon处理
|
|
|
|
$this->param['web_icon'] = str_replace_url($this->param['web_icon']);
|
|
|
|
|
|
|
|
$info = $this->model->read(['project_id' => $this->user['project_id']]);
|
|
|
|
if ($info === false) {
|
...
|
...
|
|