diff --git a/app/run.py b/app/run.py index abe6ed3..92502cf 100644 --- a/app/run.py +++ b/app/run.py @@ -2088,10 +2088,13 @@ def get_user_info(): account = Quark(cookie, idx) account_info = account.init() if account_info: + # 检查是否有移动端参数 + has_mparam = bool(account.mparam) user_info_list.append({ "index": idx, "nickname": account_info["nickname"], - "is_active": account.is_active + "is_active": account.is_active, + "has_mparam": has_mparam }) else: # 检查是否有移动端参数 diff --git a/app/templates/index.html b/app/templates/index.html index a5009f4..539c794 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -3067,9 +3067,19 @@ // 有昵称且账号激活 if (userInfo.nickname && userInfo.is_active) { if (userInfo.has_mparam) { - return "账号已登录,支持转存和签到"; + // 第一个账号支持转存和签到,其他账号只支持签到 + if (userInfo.index === 0) { + return "账号已登录,支持转存和签到"; + } else { + return "账号已登录,仅支持签到功能"; + } } else { - return "账号已登录,仅支持转存功能"; + // 第一个账号支持转存,其他账号不支持任何功能 + if (userInfo.index === 0) { + return "账号已登录,仅支持转存功能"; + } else { + return "账号已登录,不支持转存和签到"; + } } }