正在显示
2 个修改的文件
包含
28 行增加
和
0 行删除
| @@ -216,6 +216,9 @@ class DomainInfoLogic extends BaseLogic | @@ -216,6 +216,9 @@ class DomainInfoLogic extends BaseLogic | ||
| 216 | $data = [ | 216 | $data = [ |
| 217 | 'other_domain'=>json_encode($this->param['other_domain']), | 217 | 'other_domain'=>json_encode($this->param['other_domain']), |
| 218 | 'extend_config'=>json_encode($this->param['extend_config']), | 218 | 'extend_config'=>json_encode($this->param['extend_config']), |
| 219 | + 'type'=>$this->param['type'], | ||
| 220 | + 'private_key' => $this->param['key'] ?? '', | ||
| 221 | + 'private_cert' => $this->param['cert'] ?? '', | ||
| 219 | ]; | 222 | ]; |
| 220 | $this->model->edit($data,['id'=>$this->param['id']]); | 223 | $this->model->edit($data,['id'=>$this->param['id']]); |
| 221 | //生成证书 | 224 | //生成证书 |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | 2 | ||
| 3 | namespace App\Models\Domain; | 3 | namespace App\Models\Domain; |
| 4 | 4 | ||
| 5 | +use App\Helper\Arr; | ||
| 5 | use App\Models\Base; | 6 | use App\Models\Base; |
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| @@ -66,5 +67,29 @@ class DomainInfo extends Base | @@ -66,5 +67,29 @@ class DomainInfo extends Base | ||
| 66 | return 'https://'.$info['domain'].'/'; | 67 | return 'https://'.$info['domain'].'/'; |
| 67 | } | 68 | } |
| 68 | 69 | ||
| 70 | + /** | ||
| 71 | + * @remark :301跳转扩展字段 | ||
| 72 | + * @name :getExtendConfigAttribute | ||
| 73 | + * @author :lyh | ||
| 74 | + * @method :post | ||
| 75 | + * @time :2023/11/6 15:36 | ||
| 76 | + */ | ||
| 77 | + public function getExtendConfigAttribute($value) | ||
| 78 | + { | ||
| 79 | + $value = Arr::s2a($value); | ||
| 80 | + return $value; | ||
| 81 | + } | ||
| 69 | 82 | ||
| 83 | + /** | ||
| 84 | + * @remark :域名列表设置 | ||
| 85 | + * @name :getOtherDomainAttribute | ||
| 86 | + * @author :lyh | ||
| 87 | + * @method :post | ||
| 88 | + * @time :2023/11/6 15:39 | ||
| 89 | + */ | ||
| 90 | + public function getOtherDomainAttribute($value) | ||
| 91 | + { | ||
| 92 | + $value = Arr::s2a($value); | ||
| 93 | + return $value; | ||
| 94 | + } | ||
| 70 | } | 95 | } |
-
请 注册 或 登录 后发表评论