From c47b9e32614b6d326209fa9199ec1ac7536c5383 Mon Sep 17 00:00:00 2001 From: xmengnet <794508986@qq.com> Date: Mon, 7 Jun 2021 20:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker/lsp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/lsp.py b/worker/lsp.py index bd7b688..a3d5d38 100644 --- a/worker/lsp.py +++ b/worker/lsp.py @@ -5,8 +5,7 @@ from config import LOLIKEYS class Ans(StdAns): - AllowGroup = [973510746, 805197917, 343700338, 125733077, 1084566280, - 920863253, 798595664, 655057127, 196268763, 247022495, 474907856, 940333876] + AllowGroup = [874769998,596678277,794290657,204097403] def GETMSG(self): @@ -51,6 +50,7 @@ def getsetu(apikey, keyword=''): url = 'https://api.lolicon.app/setu/' params = { 'apikey': apikey, + 'r18': 0, } if keyword != '': params['keyword'] = keyword @@ -66,7 +66,7 @@ def getsetu(apikey, keyword=''): #h, m = divmod(m, 60) #quota_min_ttl = f'{h}时{m}分{s}秒' if resp['code'] == 0: - quota = resp['quota'] + quota = resp['count'] try: picurl = resp['data'][0]['url'] code = 0