From a9537d3a643c5655d71cf76ad6e0ff3b1d025846 Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Fri, 21 Jul 2023 23:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9B=B4=E6=96=B0icp?= =?UTF-8?q?=E5=A4=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain_admin/api/domain_info_api.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/domain_admin/api/domain_info_api.py b/domain_admin/api/domain_info_api.py index a80254203a..7f3bffd146 100644 --- a/domain_admin/api/domain_info_api.py +++ b/domain_admin/api/domain_info_api.py @@ -291,6 +291,20 @@ def update_all_domain_icp_of_user(): # async_task_service.submit_task(fn=domain_info_service.update_all_domain_icp_of_user, user_id=current_user_id) +def update_domain_row_icp(): + """ + 更新当前域名icp信息 + :return: + """ + current_user_id = g.user_id + + domain_info_id = request.json['domain_info_id'] + + row = DomainInfoModel.get_by_id(domain_info_id) + + domain_info_service.update_domain_row_icp(row) + + def import_domain_info_from_file(): """ 从文件导入域名 @@ -545,7 +559,12 @@ def get_icp(): 查询icp信息 """ domain = request.json['domain'] - res = icp_util.get_icp(domain) + + # 解析域名 + resolve_domain = domain_util.parse_domain(domain) + + res = icp_util.get_icp(resolve_domain) + res['resolve_domain'] = resolve_domain return res