Commit 3363b4d2 authored by 陈志良's avatar 陈志良

去除打印并修改获取经验缓存

parent e6914122
...@@ -140,8 +140,7 @@ function loadLevelFromAPI(ent_code,open_id,callback){ ...@@ -140,8 +140,7 @@ function loadLevelFromAPI(ent_code,open_id,callback){
if (e) { if (e) {
console.log(e) console.log(e)
} }
console.log(body); if(body && body.data ){
if(body && body.data && body.data[open_id]){
redis.set(key, body.data); redis.set(key, body.data);
redis.expire(key,2 * 60 ); redis.expire(key,2 * 60 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment