From 982455f1a6c393f995f56ea7baa521826d6aed4b Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Thu, 22 May 2025 01:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Cookie=20=E4=B8=AD?= =?UTF-8?q?=E4=BB=85=E7=AD=BE=E5=88=B0=E8=B4=A6=E5=8F=B7=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 5 ++++- app/templates/index.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/run.py b/app/run.py index 58c77b0..82e16b0 100644 --- a/app/run.py +++ b/app/run.py @@ -892,10 +892,13 @@ def get_user_info(): "is_active": account.is_active }) else: + # 检查是否有移动端参数 + has_mparam = bool(account.mparam) user_info_list.append({ "index": idx, "nickname": "", - "is_active": False + "is_active": False, + "has_mparam": has_mparam }) return jsonify({"success": True, "data": user_info_list}) diff --git a/app/templates/index.html b/app/templates/index.html index dd1845b..664f447 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -252,7 +252,7 @@
- {{ userInfoList[index].nickname || '未登录' }} + {{ userInfoList[index].nickname || (userInfoList[index].has_mparam ? '仅签到' : '未登录') }}