Skip to content

Commit

Permalink
Fix:Add default value for login and exit call back
Browse files Browse the repository at this point in the history
  • Loading branch information
isanwenyu committed Jun 15, 2023
1 parent d43fb73 commit da47386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions channel/wechat/wechat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def qrCallback(uuid, status, qrcode):


# 退出回调
def exitCallback(userName):
def exitCallback(userName = None):
logger.debug("exitCallback: {}".format(userName))

try:
Expand All @@ -119,7 +119,7 @@ def exitCallback(userName):
pass

# 登录成功回调
def loginCallback(userName):
def loginCallback(userName = None):
logger.debug("loginCallback: {}".format(userName))
try:
send_markdown_msg(f'[{userName}] LOGIN SUCCESS!')
Expand Down

0 comments on commit da47386

Please sign in to comment.