Пример #1
0
 // 添加笔记本内容
 // [ok]
 public static NoteContent AddNoteContent(NoteContent noteContent)
 {
     noteContent.CreatedTime   = Tools.FixUrlTime(noteContent.CreatedTime);
     noteContent.UpdatedTime   = Tools.FixUrlTime(noteContent.UpdatedTime);
     noteContent.UpdatedUserId = noteContent.UserId;
     InsertNoteContent(noteContent);
     // 更新笔记图片
     NoteImageService.UpdateNoteImages(noteContent.UserId, noteContent.NoteId, "", noteContent.Content);
     return(noteContent);
 }
Пример #2
0
        // 添加笔记本内容
        // [ok]
        public NoteContent AddNoteContent(NoteContent noteContent)
        {
            noteContent.CreatedTime   = Tools.FixUrlTime(noteContent.CreatedTime);
            noteContent.UpdatedTime   = Tools.FixUrlTime(noteContent.UpdatedTime);
            noteContent.UpdatedUserId = noteContent.UserId;
            //todo:在数据库加密的情况下,不进行索引
            if (!this.config.SecurityConfig.DataBaseEncryption)
            {
                UpdataVector(ref noteContent);
            }

            InsertNoteContent(noteContent);
            // 更新笔记图片
            NoteImageService.UpdateNoteImages(noteContent.UserId, noteContent.NoteId, "", noteContent.Content);
            return(noteContent);
        }