Method: WeChat::Bot::Client#update_notice_status
- Defined in:
- lib/wechat/bot/client.rb
#update_notice_status ⇒ Object
更新通知状态(关闭手机提醒通知)
需要解密参数 Code 的值的作用,目前都用的是 3
217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/wechat/bot/client.rb', line 217 def update_notice_status url = "#{store(:index_url)}/webwxstatusnotify?lang=zh_CN&pass_ticket=#{store(:pass_ticket)}" params = params_base_request.merge({ "Code" => 3, "FromUserName" => @bot.profile.username, "ToUserName" => @bot.profile.username, "ClientMsgId" => }) r = @session.post(url, json: params) r end |