Commit b4ef8c04d2040d61dfb9aefcc424910e35778e57
1 parent
dd0243ea
Exists in
master
Fix bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dingtalk/api/sns.rb
... | ... | @@ -16,7 +16,7 @@ module Dingtalk |
16 | 16 | def set_access_token |
17 | 17 | res = http_get("gettoken?appid=#{@app_id}&appsecret=#{@app_secret}") |
18 | 18 | redis.set(ACCESS_TOKEN, res['access_token']) |
19 | - redis.expire(key, 7200) | |
19 | + redis.expire(ACCESS_TOKEN, 7200) | |
20 | 20 | redis.get(ACCESS_TOKEN) |
21 | 21 | end |
22 | 22 | ... | ... |