Update index.py

pull/632/head
Mr Chen 5 months ago
parent 3504ca24f2
commit 2a60cd981d
  1. 8
      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

Loading…
Cancel
Save