feat: EveryPublish Web 管理端重构与全平台发布接入
- 新增 React + TDesign 管理端(sau_web_react),替代历史 Vue 前端 - 后端接入 11 平台登录/发布(视频+图文),check_cookie 扩展全平台 - 异步发布任务 + 实时进度监控 + 发布日志 - Open API 开放体系(API Key 鉴权 + 7 个开放接口 + API 文档页) - 账号单/批量校验与批量删除 - 全局配置(登录方式 + 发布静默模式) - 统一浏览器为系统 Chrome,品牌文案统一为 EveryPublish
This commit is contained in:
@@ -116,6 +116,31 @@ async def check_cookie(type, file_path):
|
||||
# 快手
|
||||
case 4:
|
||||
return await cookie_auth_ks(Path(BASE_DIR / "cookiesFile" / file_path))
|
||||
case 5:
|
||||
from uploader.bilibili_uploader.runtime import run_biliup_command
|
||||
account_file = Path(BASE_DIR / "cookiesFile" / file_path)
|
||||
if not account_file.exists():
|
||||
return False
|
||||
result = run_biliup_command(["-u", str(account_file), "renew"])
|
||||
return result.returncode == 0
|
||||
case 6:
|
||||
from uploader.baijiahao_uploader.main import cookie_auth as baijiahao_cookie_auth
|
||||
return await baijiahao_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case 7:
|
||||
from uploader.alipay_uploader.main import cookie_auth as alipay_cookie_auth
|
||||
return await alipay_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case 8:
|
||||
from uploader.weibo_uploader.main import cookie_auth as weibo_cookie_auth
|
||||
return await weibo_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case 9:
|
||||
from uploader.hupu_uploader.main import cookie_auth as hupu_cookie_auth
|
||||
return await hupu_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case 10:
|
||||
from uploader.youtube_uploader.main import cookie_auth as youtube_cookie_auth
|
||||
return await youtube_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case 11:
|
||||
from uploader.tk_uploader.main_chrome import cookie_auth as tiktok_cookie_auth
|
||||
return await tiktok_cookie_auth(str(Path(BASE_DIR / "cookiesFile" / file_path)))
|
||||
case _:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user