Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Jul 12, 2018
1 parent 3fc4f7c commit 9e7883c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion sdk/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ var gh=((((ga*ga)>>>17)+ga*gb)>>>15)+gb*gb;var gl=(((gx&4294901760)*gx)|0)+(((gx
values: opt.data
};
}

//console.log(JSON.stringify(opt))
api.ajax(opt, function(res, err) {
//console.log(JSON.stringify(res))
handleRes(res);
Expand Down
35 changes: 19 additions & 16 deletions sdk/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,22 +208,25 @@ define(function(require, exports, module) {
});
return hasResolved;
};
if (typeof(callback) === 'function' && checkPreget()) {
return callback();
}
$.each(preGetList, function(i, e) {
app.ajax({
url: e.url,
data: e.data,
success: function(res) {
resolved();
if (res) {
app.storage.val(e.key, res);
}
},
error: function() {}
});
});
if(checkPreget()){
if (typeof(callback) === 'function') {
return callback();
}
}else{
$.each(preGetList, function(i, e) {
app.ajax({
url: e.url,
data: e.data,
success: function(res) {
resolved();
if (res) {
app.storage.val(e.key, res);
}
},
error: function() {}
});
});
}
};


Expand Down

0 comments on commit 9e7883c

Please sign in to comment.