From f108ee64112e11f780728deec023027ec05c2286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=8A=E9=9F=AC?= <1075983130@qq.com> Date: Thu, 3 Dec 2026 21:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BF=A1=E5=8F=B7=E8=B5=B0?= =?UTF-8?q?=E6=89=B9=E6=AC=A1+=E5=9B=9E=E6=89=A7(=E4=B8=8E=E7=9C=9F?= =?UTF-8?q?=E5=AE=9E=E4=BF=A1=E5=8F=B7=E5=90=8C=E9=93=BE=E8=B7=AF,?= =?UTF-8?q?=E6=AF=8F=E5=8F=B0=E6=B5=8B=E8=AF=95=E6=9C=BA=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E6=89=B9=E6=AC=A1,push=5Ftype=3Dtest)=EF=BC=9B=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=BB=9F=E8=AE=A1=E5=A2=9E=E5=8A=A0=E8=A7=A6=E8=BE=BE?= =?UTF-8?q?=E7=8A=B6=E6=80=81(=E5=B7=B2=E8=A7=A6=E8=BE=BE/=E7=AD=89?= =?UTF-8?q?=E5=BE=85=E5=9B=9E=E6=89=A7/=E8=B6=85=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E5=9B=9E=E6=89=A7/=E5=A4=B1=E8=B4=A5)=E3=80=81=E9=80=81?= =?UTF-8?q?=E8=BE=BE=E5=BB=B6=E8=BF=9F=E3=80=81=E5=90=8E=E7=AB=AF=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F(K=E7=BA=BF=E6=94=B6=E7=9B=98=E2=86=92=E5=8F=91?= =?UTF-8?q?=E5=87=BA)=EF=BC=9B=E7=AE=A1=E7=90=86=E9=A1=B5=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=B1=95=E7=A4=BA=EF=BC=9B=E9=99=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/admin.html | 35 +++++--- server/app/db.py | 5 ++ server/app/notify/push.py | 43 ++++++++- server/app/routers/admin.py | 117 ++++++++++++++++++++---- server/tests/test_push_stats.py | 154 ++++++++++++++++++++++++++++++++ 5 files changed, 323 insertions(+), 31 deletions(-) create mode 100644 server/tests/test_push_stats.py diff --git a/server/app/admin.html b/server/app/admin.html index 735f821..01d16c3 100644 --- a/server/app/admin.html +++ b/server/app/admin.html @@ -73,12 +73,13 @@

测试信号(只发给专属测试机,不影响正式用户)

- 需先在测试机的新版 App(构建时注入 XL_TESTER=1)上登录 + 只发专属测试机;与真实信号同一条链路,结果可在下方「推送收发统计」查看

推送收发统计

+
「成功」只代表极光接单;手机是否真正收到以回执为准。发出 2 分钟仍无回执标为「超时未回执」。