Commit c9ac5990a527c0545948df9ab4188910781992d5
1 parent
6adb6cc4
Exists in
master
修复js sdk api bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/qy_wechat_api/api/js.rb
... | ... | @@ -15,7 +15,7 @@ module QyWechatApi |
15 | 15 | |
16 | 16 | # https://qyapi.weixin.qq.com/cgi-bin/get_jsapi_ticket?access_token=ACCESS_TOKE |
17 | 17 | def get_jsticket |
18 | - cache_key = "jsticket-#{client.redis_key}" | |
18 | + cache_key = "jsticket-#{corp_id}" | |
19 | 19 | Rails.cache.fetch(cache_key, expires_in: 7100.seconds) do |
20 | 20 | res = http_get(get_jsapi_ticket, {waive_base_url: true}) |
21 | 21 | ticket = res.result["ticket"] | ... | ... |