Commit 4552bbd1 authored by liuxinjun's avatar liuxinjun

修复getFromServer的非json的bug

parent d8b7cf28
......@@ -1617,7 +1617,16 @@ var sdk = {
}else
{
//获取到数据
callbackFunction(JSON.parse(cacheData));
console.log("cacheData->"+cacheData);
try
{
cacheData = JSON.parse(cacheData);
} catch (e) {
console.error("sdk json 转换异常");
}
callbackFunction(cacheData);
}
},
......
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