合并分支 'akun' 到 'master'
Akun 查看合并请求 !457
正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -60,24 +60,22 @@ class EditDomainBt implements ShouldQueue | @@ -60,24 +60,22 @@ class EditDomainBt implements ShouldQueue | ||
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | //编辑主站 | 62 | //编辑主站 |
| 63 | - $rewrite = $domain_info['extend_config'] ? json_decode($domain_info['extend_config'], true) : []; | ||
| 64 | - $other_domain = $domain_info['other_domain'] ? json_decode($domain_info['other_domain'], true) : []; | ||
| 65 | if ($domain_info['type'] == 2) { | 63 | if ($domain_info['type'] == 2) { |
| 66 | $api_url = 'http://' . $server_info['init_domain'] . '/api/setSsl'; | 64 | $api_url = 'http://' . $server_info['init_domain'] . '/api/setSsl'; |
| 67 | $api_param = [ | 65 | $api_param = [ |
| 68 | 'domain' => $domain_info['domain'], | 66 | 'domain' => $domain_info['domain'], |
| 69 | 'private_key' => $domain_info['private_key'], | 67 | 'private_key' => $domain_info['private_key'], |
| 70 | 'cert' => $domain_info['private_cert'], | 68 | 'cert' => $domain_info['private_cert'], |
| 71 | - 'rewrite' => $rewrite, | ||
| 72 | - 'other_domain' => $other_domain, | 69 | + 'rewrite' => $domain_info['extend_config'], |
| 70 | + 'other_domain' => $domain_info['other_domain'], | ||
| 73 | 'is_https' => $domain_info['is_https'] | 71 | 'is_https' => $domain_info['is_https'] |
| 74 | ]; | 72 | ]; |
| 75 | } else { | 73 | } else { |
| 76 | $api_url = 'http://' . $server_info['init_domain'] . '/api/applySsl'; | 74 | $api_url = 'http://' . $server_info['init_domain'] . '/api/applySsl'; |
| 77 | $api_param = [ | 75 | $api_param = [ |
| 78 | 'domain' => $domain_info['domain'], | 76 | 'domain' => $domain_info['domain'], |
| 79 | - 'rewrite' => $rewrite, | ||
| 80 | - 'other_domain' => $other_domain, | 77 | + 'rewrite' => $domain_info['extend_config'], |
| 78 | + 'other_domain' => $domain_info['other_domain'], | ||
| 81 | 'is_https' => $domain_info['is_https'] | 79 | 'is_https' => $domain_info['is_https'] |
| 82 | ]; | 80 | ]; |
| 83 | } | 81 | } |
-
请 注册 或 登录 后发表评论