Skip to content

Commit

Permalink
fix: 修复开启ckpool时mg账号保活导致的init failure
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq authored Apr 6, 2024
1 parent 6062e23 commit 7e10d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mg/refresh_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ async def do_account_refresh(user_info):
"interval": 86400
}
if (ref["enable"]):
scheduler.append("migu_refresh_login_pooled_" + users["by"], do_account_refresh, ref["interval"], {"user_info": u})
scheduler.append("migu_refresh_login_pooled_" + u["by"], do_account_refresh, ref["interval"], {"user_info": u})
else:
u = config.read_config("module.mg.user")
ref = config.read_config("module.mg.user.refresh_login")
if (ref["enable"]):
scheduler.append("migu_refresh_login", do_account_refresh, ref["interval"], {"user_info": u})
scheduler.append("migu_refresh_login", do_account_refresh, ref["interval"], {"user_info": u})

0 comments on commit 7e10d98

Please sign in to comment.