v1.7.6-beta3 fix bugs

This commit is contained in:
lanqian528 2024-12-09 09:57:10 +08:00
parent 89212d9327
commit d63c5a844c
2 changed files with 5 additions and 8 deletions

View File

@ -151,20 +151,17 @@ async def chatgpt_account_check(access_token):
auth_info.update({"accounts_info": accounts_info})
account_ordering = accounts_info.get("account_ordering", [])
is_deactivated = None
is_deactivated = True
plan_type = None
team_ids = []
for account in account_ordering:
this_is_deactivated = accounts_info['accounts'].get(account, {}).get("account", {}).get("is_deactivated",
False)
this_is_deactivated = accounts_info['accounts'].get(account, {}).get("account", {}).get("is_deactivated", False)
this_plan_type = accounts_info['accounts'].get(account, {}).get("account", {}).get("plan_type", "free")
if this_is_deactivated and is_deactivated is None:
is_deactivated = True
else:
if not this_is_deactivated:
is_deactivated = False
if "team" in this_plan_type:
if "team" in this_plan_type and not this_is_deactivated:
plan_type = this_plan_type
team_ids.append(account)
elif plan_type is None:

View File

@ -1 +1 @@
v1.7.6-beta2
v1.7.6-beta3