mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 09:20:43 +08:00
优化 Cookie 中仅签到账号的显示状态
This commit is contained in:
parent
0b19935e06
commit
982455f1a6
@ -892,10 +892,13 @@ def get_user_info():
|
|||||||
"is_active": account.is_active
|
"is_active": account.is_active
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
|
# 检查是否有移动端参数
|
||||||
|
has_mparam = bool(account.mparam)
|
||||||
user_info_list.append({
|
user_info_list.append({
|
||||||
"index": idx,
|
"index": idx,
|
||||||
"nickname": "",
|
"nickname": "",
|
||||||
"is_active": False
|
"is_active": False,
|
||||||
|
"has_mparam": has_mparam
|
||||||
})
|
})
|
||||||
|
|
||||||
return jsonify({"success": True, "data": user_info_list})
|
return jsonify({"success": True, "data": user_info_list})
|
||||||
|
|||||||
@ -252,7 +252,7 @@
|
|||||||
<div v-for="(value, index) in formData.cookie" :key="index" class="input-group mb-2">
|
<div v-for="(value, index) in formData.cookie" :key="index" class="input-group mb-2">
|
||||||
<div class="input-group-prepend" v-if="userInfoList[index]">
|
<div class="input-group-prepend" v-if="userInfoList[index]">
|
||||||
<span class="input-group-text" :style="userInfoList[index].nickname ? (userInfoList[index].is_active ? 'color: var(--dark-text-color);' : 'color: red;') : 'color: var(--dark-text-color);'">
|
<span class="input-group-text" :style="userInfoList[index].nickname ? (userInfoList[index].is_active ? 'color: var(--dark-text-color);' : 'color: red;') : 'color: var(--dark-text-color);'">
|
||||||
{{ userInfoList[index].nickname || '未登录' }}
|
{{ userInfoList[index].nickname || (userInfoList[index].has_mparam ? '仅签到' : '未登录') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group-prepend" v-else>
|
<div class="input-group-prepend" v-else>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user