🎨 修正错误码不符合使用场景 (#36)

* 修正错误码不符合使用场景 

 使无效项有效

* 🚨 `pre-commit-ci`修复格式错误

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
RBAmeto 2023-10-19 21:31:51 +08:00 committed by GitHub
parent ccf1a0bcba
commit 91a56ff5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,10 @@ class BaseMysApi:
# 针对1034做特殊处理
if retcode == 1034:
if _ == 1:
if (
not core_plugins_config.get_config('MysPass').data
or _ == 1
):
if uid and self.is_sr:
new_fp = await self.generate_fp_by_uid(uid)
await GsUser.update_data_by_uid_without_bot_id(