v0.2.7: 修复Redis连接 + 启动管理后台
- 修复Redis认证 (配置密码) - 启动Python管理后台 (端口9531, 15个功能开关) - 统一版本号 0.2.7 - 更新docker-compose.yml (镜像版本/Redis URL/Admin服务)
This commit is contained in:
16
cloudsearch_transfer/adapter/pan123/credential.py
Normal file
16
cloudsearch_transfer/adapter/pan123/credential.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""123云盘凭证管理 v1.0.0 — Cookie直传"""
|
||||
|
||||
|
||||
class Pan123CredentialManager:
|
||||
def __init__(self, config):
|
||||
self.config = config
|
||||
|
||||
def validate(self) -> bool:
|
||||
return bool(self.config.cookie and len(self.config.cookie) >= 30)
|
||||
|
||||
def get_headers(self) -> dict:
|
||||
return {
|
||||
"Cookie": self.config.cookie,
|
||||
"Referer": "https://www.123pan.com/",
|
||||
"Origin": "https://www.123pan.com",
|
||||
}
|
||||
Reference in New Issue
Block a user