From 1d80eb2567575236dbd9d1f5a4e78479e455c8d6 Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Sun, 17 Sep 2023 10:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0=E7=AD=96?= =?UTF-8?q?=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain_admin/api/domain_api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/domain_admin/api/domain_api.py b/domain_admin/api/domain_api.py index c8792607c6..6ef9588825 100644 --- a/domain_admin/api/domain_api.py +++ b/domain_admin/api/domain_api.py @@ -117,8 +117,10 @@ def update_domain_by_id(): after_domain_row = DomainModel.get_by_id(domain_id) - # 域名和端口没改变,就不更新 - if before_domain_row.domain == after_domain_row.domain and before_domain_row.port == after_domain_row.port: + # 域名、端口、SSL加密方式没改变,就不更新 + if before_domain_row.domain == after_domain_row.domain \ + and before_domain_row.port == after_domain_row.port \ + and before_domain_row.ssl_type == after_domain_row.ssl_type: pass else: if after_domain_row.auto_update: @@ -373,7 +375,6 @@ def export_domain_file(): order_prop = request.json.get('order_prop') or 'expire_days' order_type = request.json.get('order_type') or 'ascending' - params = { 'keyword': keyword, 'group_id': group_id,