Update index.py

This commit is contained in:
Mr Chen 2024-12-04 01:37:00 +08:00
parent 3504ca24f2
commit 2a60cd981d
1 changed files with 5 additions and 3 deletions

View File

@ -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