mirror of
https://github.com/lanqian528/chat2api.git
synced 2026-06-05 21:03:53 +08:00
v1.7.6-beta3 fix bugs
This commit is contained in:
parent
89212d9327
commit
d63c5a844c
@ -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:
|
||||
|
||||
@ -1 +1 @@
|
||||
v1.7.6-beta2
|
||||
v1.7.6-beta3
|
||||
Loading…
Reference in New Issue
Block a user