添加/修改笔记同步传updatedTime, createdTime

This commit is contained in:
life
2015-11-01 11:05:48 +08:00
parent 580220eee4
commit 377af3e26c
2 changed files with 33 additions and 3 deletions

8
node_modules/api.js generated vendored
View File

@@ -466,7 +466,7 @@ var Api = {
Notebook.getServerNotebookIdByNotebookId(note.NotebookId, function(serverNotebookId) {
if(!serverNotebookId) {
console.error('No serverNotebookId');
console.log(note);
// console.log(note);
callback && callback(false);
return;
}
@@ -480,6 +480,8 @@ var Api = {
IsBlog: note.IsBlog,
Files: note.Files,
FileDatas: note.FileDatas,
CreatedTime: Common.formatDatetime(note.CreatedTime),
UpdatedTime: Common.formatDatetime(note.UpdatedTime)
}
// log('add note');
// log(data);
@@ -495,7 +497,6 @@ var Api = {
console.log('end transfer data');
console.log(data);
try {
needle.post(me.getUrl('note/addNote'), data,
{
@@ -542,7 +543,8 @@ var Api = {
IsBlog: note.IsBlog, // 是否是博客
Files: note.Files,
FileDatas: note.FileDatas,
Tags: note.Tags, // 新添加
Tags: note.Tags, // 新添加,
UpdatedTime: Common.formatDatetime(note.UpdatedTime)
};
// 内容不一样才发内容