Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Jul 18, 2018
1 parent a846bff commit 82add39
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions sdk/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1225,19 +1225,23 @@ var gh=((((ga*ga)>>>17)+ga*gb)>>>15)+gb*gb;var gl=(((gx&4294901760)*gx)|0)+(((gx
var handleRes = function(res, fromSnap) {
if (res) {
//json格式异常处理
if(opt.dataType==="json" && res.split){
try{
res = JSON.parse(res);
}catch(e){
console.log(e.msg)
if(opt.dataType==="json"){
if(res.split){
try{
res = JSON.parse(res);
}catch(e){
console.log(e.msg)
}
}
//快照处理
if(opt.snapshoot){
if(!fromSnap && isEqual(res, app.storage.val(urlkey))){
res.snapshootEqual = true;
}
}
}
//快照处理
//存储快照
if(opt.snapshoot){
if(!fromSnap && isEqual(res, app.storage.val(urlkey))){
res.snapshootEqual = true;
}
//存储快照
app.storage.val(urlkey, res);
}
typeof(tempSucc)==='function' && tempSucc(res);
Expand Down

0 comments on commit 82add39

Please sign in to comment.