更名为 FAIRSCAN_SURPORT_BY_CYY (FSBC)
Some checks failed
Android CI / build (push) Has been cancelled

- app_name → FSBC
- PC 服务器标题/页面名称 → FSBC
- 日志标签:FairScan → FSBC
- PDF 创建者/邮件标题/诊断报告 → FSBC
- README 重写:新增图传/上传/MinerU/OCRmyPDF/任务面板完整说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MobKBK
2026-06-04 17:13:34 +08:00
parent 1848a88fcf
commit 2cc6fd34eb
9 changed files with 143 additions and 141 deletions

View File

@@ -1,5 +1,5 @@
"""
FairScan PC Server — Streaming, PDF upload & real MinerU task processing.
FAIRSCAN_SURPORT_BY_CYY (FSBC) PC Server
Endpoints:
Streaming:
@@ -41,7 +41,7 @@ from mineru.cli.common import aio_do_parse, read_fn
import ocrmypdf
from loguru import logger
app = FastAPI(title="FairScan PC Server")
app = FastAPI(title="FSBC PC Server")
# ── Configuration ─────────────────────────────────────────────────────────────
@@ -66,7 +66,7 @@ STREAM_PAGE = """\
<html>
<head>
<meta charset="utf-8">
<title>FairScan Stream</title>
<title>FSBC Stream</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@@ -119,7 +119,7 @@ STREAM_PAGE = """\
</head>
<body>
<div class="nav-bar">
<h1>📷 FairScan Live Stream</h1>
<h1>📷 FSBC Live Stream</h1>
<div class="nav-links">
<a href="/" class="active">📷 图传预览</a>
<a href="/dashboard">📊 管理面板</a>
@@ -177,7 +177,7 @@ async def health():
"""Health check endpoint used by Android for connection testing."""
return JSONResponse({
"status": "ok",
"name": "FairScan-PC",
"name": "FSBC-PC",
"features": ["stream", "upload", "tasks"],
"streamStats": {
"framesReceived": stream_stats["frames_received"],
@@ -410,7 +410,7 @@ DASHBOARD_PAGE = """\
<html>
<head>
<meta charset="utf-8">
<title>FairScan Dashboard</title>
<title>FSBC Dashboard</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@@ -482,7 +482,7 @@ DASHBOARD_PAGE = """\
</head>
<body>
<div class="header">
<h1>📊 FairScan Dashboard</h1>
<h1>📊 FSBC Dashboard</h1>
<div class="nav-links">
<a href="/">📷 图传预览</a>
<a href="/dashboard" style="background:#7c8dff22;border-color:#7c8dff;">📊 管理面板</a>
@@ -791,7 +791,7 @@ async def process_with_mineru(task_id: str):
if __name__ == "__main__":
import uvicorn
port = 2026
print(f"🚀 FairScan PC Server starting on http://0.0.0.0:{port}")
print(f"🚀 FSBC Server starting on http://0.0.0.0:{port}")
print(f" Stream: http://localhost:{port}")
print(f" Dashboard: http://localhost:{port}/dashboard")
print(f" Health: http://localhost:{port}/health")