Commit 9b6c0adf authored by 陈志良's avatar 陈志良

测试

parent a3b4d615
......@@ -140,7 +140,8 @@ function loadLevelFromAPI(ent_code,open_id,callback){
if (e) {
console.log(e)
}
if(body && body.data){
console.log(body);
if(body && body.data && body.data[open_id]){
redis.set(key, JSON.stringify(body.data));
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