作者 lyh

gx

... ... @@ -216,6 +216,9 @@ class DomainInfoLogic extends BaseLogic
$data = [
'other_domain'=>json_encode($this->param['other_domain']),
'extend_config'=>json_encode($this->param['extend_config']),
'type'=>$this->param['type'],
'private_key' => $this->param['key'] ?? '',
'private_cert' => $this->param['cert'] ?? '',
];
$this->model->edit($data,['id'=>$this->param['id']]);
//生成证书
... ...
... ... @@ -2,6 +2,7 @@
namespace App\Models\Domain;
use App\Helper\Arr;
use App\Models\Base;
/**
... ... @@ -66,5 +67,29 @@ class DomainInfo extends Base
return 'https://'.$info['domain'].'/';
}
/**
* @remark :301跳转扩展字段
* @name :getExtendConfigAttribute
* @author :lyh
* @method :post
* @time :2023/11/6 15:36
*/
public function getExtendConfigAttribute($value)
{
$value = Arr::s2a($value);
return $value;
}
/**
* @remark :域名列表设置
* @name :getOtherDomainAttribute
* @author :lyh
* @method :post
* @time :2023/11/6 15:39
*/
public function getOtherDomainAttribute($value)
{
$value = Arr::s2a($value);
return $value;
}
}
... ...