From 576fba7d7c54b0576c75f972df428b149453196b Mon Sep 17 00:00:00 2001 From: rogersun Date: Fri, 23 Oct 2026 17:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/utils/client_util_custom.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update/utils/client_util_custom.py b/update/utils/client_util_custom.py index 26c9835..dbb677c 100644 --- a/update/utils/client_util_custom.py +++ b/update/utils/client_util_custom.py @@ -24,7 +24,7 @@ class ClientUtilCustom: self.local_path = os.path.join(BASE_DIR, 'dx', 'client') self.deploy_db_config = {'host': '10.10.0.80', 'port': 3306, 'user': 'cine_readonly', 'password': 'IyzCtV11', 'database': 'yhz_tool'} - self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/'} + self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/', 'host':'10.10.0.38'} self.deploy_id = 0 self.client_data = [] self.client_file_list = [] @@ -149,8 +149,7 @@ class ClientUtilCustom: # 关闭本地文件 local_file.close() target_file = os.path.join('/home/client/', file['name']) - self.upload(self.client_mirror['host'], file_path, target_file, self.client_mirror['username'], - self.client_mirror['password']) + self.upload(self.client_mirror['host'], file_path, target_file) print(f'完成客户端同步: {target_file}') print(self.client_data)