|
...
|
...
|
@@ -209,10 +209,21 @@ class DomainInfoLogic extends BaseLogic |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$extend_config = [];
|
|
|
|
$unique_extend = [];
|
|
|
|
if(isset($this->param['extend_config']) && $this->param['extend_config']){
|
|
|
|
foreach ($this->param['extend_config'] as $k=>$v){
|
|
|
|
if(!in_array($v['origin'],$unique_extend)){
|
|
|
|
$unique_extend[] = $v['origin'];
|
|
|
|
$extend_config[] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//保存301跳转数据+其他域名
|
|
|
|
$data = [
|
|
|
|
'other_domain'=>json_encode(array_filter($this->param['other_domain'] ?? [])),
|
|
|
|
'extend_config'=>json_encode(array_filter($this->param['extend_config'] ?? [])),
|
|
|
|
'extend_config'=>json_encode($extend_config),
|
|
|
|
'type'=>$this->param['type'],
|
|
|
|
'private_key' => $this->param['key'] ?? '',
|
|
|
|
'private_cert' => $this->param['cert'] ?? '',
|
...
|
...
|
|