From 91a56ff5c5afb8540129077b698041a09b9ab9c1 Mon Sep 17 00:00:00 2001 From: RBAmeto <46624927+RBAmeto@users.noreply.github.com> Date: Thu, 19 Oct 2023 21:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E6=AD=A3=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81=E4=B8=8D=E7=AC=A6=E5=90=88=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=20(#36)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修正错误码不符合使用场景 使无效项有效 * 🚨 `pre-commit-ci`修复格式错误 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- gsuid_core/utils/api/mys/request.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gsuid_core/utils/api/mys/request.py b/gsuid_core/utils/api/mys/request.py index 3c3cfbd..a11a47e 100644 --- a/gsuid_core/utils/api/mys/request.py +++ b/gsuid_core/utils/api/mys/request.py @@ -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(