Skip to content

Commit

Permalink
Merge pull request #24 from gakkiyomi/develop
Browse files Browse the repository at this point in the history
🔧 修复领取活跃度奖励报错
  • Loading branch information
gakkiyomi authored Jun 6, 2023
2 parents 9318ebd + bce1e33 commit a302a48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def console_input(api: FishPi):
else:
print('今日还未签到,摸鱼也要努力呀!')
elif msg == '#reward':
if api.get_yesterday_reward()['sum'] == -1:
reward = api.get_yesterday_reward()['sum']
if reward == -1:
print('你已经领取过昨日活跃度奖励了')
else:
print('领取昨日活跃度奖励 积分: ' +
str(api.user.get_liveness_info()['sum']))
print(f'领取昨日活跃度奖励 积分: {reward}')
elif msg == '#liveness':
print('当前活跃度: ' +
str(api.user.get_liveness_info()['liveness']))
Expand Down

0 comments on commit a302a48

Please sign in to comment.