Merge branch 'feature-0.9.2'

This commit is contained in:
life
2015-11-20 16:29:52 +08:00
3 changed files with 13 additions and 2 deletions

View File

@@ -1 +1 @@
{"version":"0.9.1","updatedTime":"2015-11-15T07:21:51.505Z"}
{"version":"0.9.2","updatedTime":"2015-11-20T07:21:51.505Z"}

9
node_modules/note.js generated vendored
View File

@@ -590,6 +590,13 @@ var Note = {
// 从服务器上获取内容
getNoteContentFromServer: function (serverNoteId, callback) {
var me = this;
if (!serverNoteId) {
callback(false);
return;
}
if (!Api) {
Api = require('api');
}
Api.getNoteContent(serverNoteId, function(noteContent) {
// 同步到本地
if(Common.isOk(noteContent)) {
@@ -694,7 +701,7 @@ var Note = {
console.error(doc.length + '. ..');
}
console.log('note length: ' + doc.length + '. ..');
if(err || !doc) {
if(err || !doc || !doc.length) {
log('getNoteByServerNoteId 不存在' + noteId);
callback && callback(false);
} else {

4
node_modules/sync.js generated vendored
View File

@@ -926,6 +926,10 @@ var Sync = {
me._syncInfo.note.changeNeedAdds.push(note);
cb();
}
// 防止其它原因导致失败 not image
else {
cb();
}
}
// 更新失败了, 服务器返回异常
else {