class WeixinAuthorize::JsTicket::ObjectStore

Public Instance Methods

jsticket() click to toggle source
Calls superclass method
# File lib/weixin_authorize/js_ticket/object_store.rb, line 10
def jsticket
  super
  client.jsticket
end
jsticket_expired?() click to toggle source
# File lib/weixin_authorize/js_ticket/object_store.rb, line 5
def jsticket_expired?
  # 如果当前token过期时间小于现在的时间,则重新获取一次
  client.jsticket_expired_at <= Time.now.to_i
end
refresh_jsticket() click to toggle source
Calls superclass method
# File lib/weixin_authorize/js_ticket/object_store.rb, line 15
def refresh_jsticket
  super
end