From 4d911c31ecbe13b3122dba173937a82a32252057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Mon, 20 Dec 2021 00:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=BD=BB=E5=BE=AEbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getImg.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/getImg.py b/getImg.py index b97a8847..a6dc3acb 100644 --- a/getImg.py +++ b/getImg.py @@ -100,10 +100,11 @@ async def draw_wordcloud(uid,image = None,mode = 2): errorDB(use_cookies,"limit30") elif (raw_data["retcode"] == 10102): return ("当前查询id已经设置了隐私,无法查询!") - return ( - "Api报错,返回内容为:\r\n" - + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" - ) + else: + return ( + "Api报错,返回内容为:\r\n" + + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" + ) else: break @@ -374,10 +375,11 @@ async def draw_abyss0_pic(uid,nickname,image = None,mode = 2,date = "1"): errorDB(use_cookies,"limit30") elif (raw_data["retcode"] == 10102): return ("当前查询id已经设置了隐私,无法查询!") - return ( - "Api报错,返回内容为:\r\n" - + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" - ) + else: + return ( + "Api报错,返回内容为:\r\n" + + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" + ) else: break @@ -664,10 +666,11 @@ async def draw_abyss_pic(uid,nickname,floor_num,image = None,mode = 2,date = "1" errorDB(use_cookies,"limit30") elif (raw_data["retcode"] == 10102): return ("当前查询id已经设置了隐私,无法查询!") - return ( - "Api报错,返回内容为:\r\n" - + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" - ) + else: + return ( + "Api报错,返回内容为:\r\n" + + str(raw_data) + "\r\n出现这种情况可能的UID输入错误 or 不存在" + ) else: break