Skip to content

Commit

Permalink
修复严重bug:无法设置签名
Browse files Browse the repository at this point in the history
  • Loading branch information
hexadecimal233 committed May 1, 2022
1 parent c26df86 commit cfd5a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bili-signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sys import exit
from time import sleep

VERSION = '2.2'
VERSION = '2.3'

class BilibiliApi(object):
#调试模式
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit cfd5a25

Please sign in to comment.