From c9ac5990a527c0545948df9ab4188910781992d5 Mon Sep 17 00:00:00 2001 From: lanrion Date: Wed, 8 Apr 2015 10:22:12 +0800 Subject: [PATCH] 修复js sdk api bug --- lib/qy_wechat_api/api/js.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/qy_wechat_api/api/js.rb b/lib/qy_wechat_api/api/js.rb index 497ee82..64efe16 100644 --- a/lib/qy_wechat_api/api/js.rb +++ b/lib/qy_wechat_api/api/js.rb @@ -15,7 +15,7 @@ module QyWechatApi # https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKE def get_jsticket - cache_key = "jsticket-#{client.redis_key}" + cache_key = "jsticket-#{corp_id}" Rails.cache.fetch(cache_key, expires_in: 7100.seconds) do res = http_get(get_jsapi_ticket, {waive_base_url: true}) ticket = res.result["ticket"] -- libgit2 0.21.0