Method: WeChat::Bot::Client#logout
- Defined in:
- lib/wechat/bot/client.rb
#logout ⇒ void
This method returns an undefined value.
登出
595 596 597 598 599 600 601 602 603 604 605 606 607 |
# File 'lib/wechat/bot/client.rb', line 595 def logout url = api_url('webwxlogout') params = { "redirect" => 1, "type" => 1, "skey" => store(:skey) } @session.get(url, params: params) @bot.logger.info "用户 [#{@bot.profile.nickname}] 登出成功!" clone! end |