From cfd5a251bcf4fe86b14260d35421bb54494d55fe Mon Sep 17 00:00:00 2001 From: ThebestkillerTBK <2593828650@qq.com> Date: Sun, 1 May 2022 22:13:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=A5=E9=87=8Dbug?= =?UTF-8?q?=EF=BC=9A=E6=97=A0=E6=B3=95=E8=AE=BE=E7=BD=AE=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bili-signature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bili-signature.py b/bili-signature.py index 092b73d..41f8686 100644 --- a/bili-signature.py +++ b/bili-signature.py @@ -9,7 +9,7 @@ from sys import exit from time import sleep -VERSION = '2.2' +VERSION = '2.3' class BilibiliApi(object): #调试模式 @@ -205,7 +205,7 @@ def _exit(signum, frame): fans = api.getFans() if (fans != api.getLastFans()): _sign = sign.getSignature(fans) - api.initParams(sign, cfg['SESSDATA'], cfg['bili_jct']) + api.initParams(_sign, cfg['SESSDATA'], cfg['bili_jct']) print('[%s]当前粉丝数: %d, 将要设置签名 %s' % (getCurrTime(), fans, _sign)) res = api.setSignature().text print('[%s]当前粉丝数: %d, 返回: %s' % (getCurrTime(), fans, res))