作者 lyh
@@ -226,6 +226,17 @@ class DomainInfoLogic extends BaseLogic @@ -226,6 +226,17 @@ class DomainInfoLogic extends BaseLogic
226 } 226 }
227 } 227 }
228 228
  229 + $amp_extend_config = [];
  230 + $amp_unique_extend = [];
  231 + if(isset($this->param['amp_extend_config']) && $this->param['amp_extend_config']){
  232 + foreach ($this->param['amp_extend_config'] as $ka=>$va){
  233 + if(!in_array($va['origin'],$amp_unique_extend)){
  234 + $amp_unique_extend[] = $va['origin'];
  235 + $amp_extend_config[] = $va;
  236 + }
  237 + }
  238 + }
  239 +
229 //保存301跳转数据+其他域名 240 //保存301跳转数据+其他域名
230 $data = [ 241 $data = [
231 'other_domain'=>json_encode(array_filter($this->param['other_domain'] ?? [])), 242 'other_domain'=>json_encode(array_filter($this->param['other_domain'] ?? [])),
@@ -236,6 +247,7 @@ class DomainInfoLogic extends BaseLogic @@ -236,6 +247,7 @@ class DomainInfoLogic extends BaseLogic
236 'is_https' => $this->param['is_https'] ?? 0, 247 'is_https' => $this->param['is_https'] ?? 0,
237 'amp_status' => $this->param['amp_status'] ?? 0, 248 'amp_status' => $this->param['amp_status'] ?? 0,
238 'amp_type' => $this->param['amp_type'] ?? 0, 249 'amp_type' => $this->param['amp_type'] ?? 0,
  250 + 'amp_extend_config'=>json_encode($amp_extend_config),
239 'amp_private_key' => $this->param['amp_key'] ?? '', 251 'amp_private_key' => $this->param['amp_key'] ?? '',
240 'amp_private_cert' => $this->param['amp_cert'] ?? '', 252 'amp_private_cert' => $this->param['amp_cert'] ?? '',
241 'not_allow_country'=>json_encode(array_filter($this->param['not_allow_country'] ?? [])), 253 'not_allow_country'=>json_encode(array_filter($this->param['not_allow_country'] ?? [])),