From ceb41fef6841084910cf1c82bff9a2557aa4e0ff Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 20 Oct 2023 01:40:38 +0800 Subject: [PATCH] Update index.py --- plugins/migration_api/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/migration_api/index.py b/plugins/migration_api/index.py index 9641df639..2d8fd706e 100755 --- a/plugins/migration_api/index.py +++ b/plugins/migration_api/index.py @@ -404,8 +404,8 @@ class classApi: write_log("|-正在解压文件到目录[{}]...".format(dpath)) self.write_speed('done', '正在解压') - self.send('/files/unzip', {"sfile": zip_dst, "dfile": dpath, - "type": "tar", "coding": "UTF-8", "password": "undefined"}) + self.send('/files/uncompress', + {"sfile": zip_dst, "dfile": dpath, 'path': dpath}) self.send('/files/exec_shell', {"shell": "rm -f " + zip_dst, "path": "/www"}, 30) return True