update code

This commit is contained in:
lychang
2025-11-20 02:27:22 +08:00
parent 8ff1b80be6
commit bf7ec6737d
10 changed files with 229 additions and 243 deletions

View File

@@ -25,7 +25,7 @@ class BaseFileManager(ABC):
if headers is None:
headers = {}
resp = requests.put(url, data=raw, headers=headers)
if resp.status_code != 201 or resp.status_code != 200:
if resp.status_code not in [201, 200]:
return {}
return resp.json()