Commit d70723c001813a1d125f66501151670e5a920ad8

Authored by lanrion
1 parent c9ac5990
Exists in master

js bug fixed

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/qy_wechat_api/api/js.rb
... ... @@ -17,7 +17,7 @@ module QyWechatApi
17 17 def get_jsticket
18 18 cache_key = "jsticket-#{corp_id}"
19 19 Rails.cache.fetch(cache_key, expires_in: 7100.seconds) do
20   - res = http_get(get_jsapi_ticket, {waive_base_url: true})
  20 + res = http_get("/get_jsapi_ticket", {waive_base_url: true})
21 21 ticket = res.result["ticket"]
22 22 if ticket.blank?
23 23 Rails.cache.delete(cache_key)
... ...