From 2a60cd981d67977c8dca7bbd8ad0370aa497e965 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 4 Dec 2024 01:37:00 +0800 Subject: [PATCH] Update index.py --- plugins/migration_api/index.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/migration_api/index.py b/plugins/migration_api/index.py index c0d71828c..e4e244f52 100755 --- a/plugins/migration_api/index.py +++ b/plugins/migration_api/index.py @@ -256,9 +256,11 @@ class classApi: start_time = time.time() try: - url = self.__MW_PANEL + '/api/files/upload_segment' - res = self._REQUESTS.post( - url, data=pdata, files=files, timeout=30000) + url = self.__MW_PANEL + '/files/upload_segment' + res = self._REQUESTS.post(url, data=pdata, files=files, headers={ + 'app-id':self.__MW_APP_ID, + 'app-secret':self.__MW_APP_SECRET + },timeout=30000) success_num += 1 err_num = 0