Skip to content

Commit ff0580c

Browse files
committed
将5003也作为验证码错误
1 parent e380460 commit ff0580c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

handle/ssbq_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def handle_ssbq(player: Player, sign_allow: bool):
6767
False,
6868
)
6969
return f"{player.uid}{data}\n"
70-
elif data["retcode"] == 1034:
70+
elif data["retcode"] in (1034, 5003):
7171
if (
7272
config.rrocr_key or config.third_api or config.ttocr_key
7373
) and sign_allow:

handle/sy_handle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def get_abyss_info(
5353
},
5454
)
5555
).json()
56-
if data["retcode"] == 1034 and k < 2:
56+
if data["retcode"] in (1034, 5003) and k < 2:
5757
k += 1
5858
Logger.info(
5959
"原神深渊战报",
@@ -68,7 +68,7 @@ async def get_abyss_info(
6868
continue
6969
else:
7070
return "遇到验证码,但是过码失败"
71-
elif data["retcode"] == 1034 and k == 2:
71+
elif data["retcode"] in (1034, 5003) and k == 2:
7272
Logger.info(
7373
"原神深渊战报",
7474
"➤➤",
@@ -86,7 +86,7 @@ async def get_abyss_info(
8686
)
8787
return data
8888
else:
89-
return data["message"] + "错误码:" + data["retcode"]
89+
return data["message"] + "错误码:" + str(data["retcode"])
9090

9191

9292
async def update_abyss_info(uid, user_id, abyss_index: str):

0 commit comments

Comments
 (0)