WO2017080198A1 - 便签更新方法及装置 - Google Patents

便签更新方法及装置 Download PDF

Info

Publication number
WO2017080198A1
WO2017080198A1 PCT/CN2016/084666 CN2016084666W WO2017080198A1 WO 2017080198 A1 WO2017080198 A1 WO 2017080198A1 CN 2016084666 W CN2016084666 W CN 2016084666W WO 2017080198 A1 WO2017080198 A1 WO 2017080198A1
Authority
WO
WIPO (PCT)
Prior art keywords
note
local
highest version
user
cloud server
Prior art date
Application number
PCT/CN2016/084666
Other languages
English (en)
French (fr)
Inventor
陈余文
卢璞
周双全
李晓凤
Original Assignee
乐视控股(北京)有限公司
乐视致新电子科技(天津)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视致新电子科技(天津)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/242,418 priority Critical patent/US20170134364A1/en
Publication of WO2017080198A1 publication Critical patent/WO2017080198A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • the embodiments of the present invention relate to the field of data update technologies, and in particular, to a method and an apparatus for updating a note.
  • the notes are usually in the form of a client app. You can also view the notes through the user login on the web. In addition, both the web and the client can edit the notes. If the notes are edited separately on the web or client, The end can not know the data of the opposite end of the note. In the case of a small amount of data, it can be viewed through one-to-one comparison, and the web end and the client's note data are kept consistent, but as the new sticky note data increases, if it is updated or When editing a local note, if it is not updated or edited on the opposite side of the note data, the difference between the web and the client's note data is large, and the user wants to query a note, and it is not clear where the note is. In the case of editing at one end, it is necessary to perform separate queries at both ends, which reduces the efficiency of the user in viewing the data of the note.
  • the purpose of the application is to provide a method and device for updating a note to improve The efficiency of the user's access to the data of the note.
  • an embodiment of the present application provides a method for updating a note, including:
  • the first login terminal receives a first instruction of the user to trigger the acquisition of the note
  • the highest version of the note is sent to the cloud server by the second login terminal, and the note with the closest time to the current time is sent.
  • An embodiment of the present application further provides a note update device, including:
  • a receiving module configured to receive a first instruction of the user to trigger the acquisition of the note
  • a sending module configured to send, according to the first instruction, a request for acquiring a highest version of the note corresponding to the identifier of the first login terminal to the cloud server, so that the cloud server searches for the highest corresponding to the identifier a version of the note, and sending the highest version of the note to the first login terminal;
  • the receiving module is further configured to receive the highest version of the note
  • a comparison module configured to compare the highest version of the note with the local note
  • a determining module configured to determine whether to update the local note according to the comparison result
  • the highest version of the note is sent to the cloud server by the second login terminal, and the note with the closest time to the current time is sent.
  • An embodiment of the present application further provides a user equipment, including: a processor, a memory, a communication interface, and a bus; wherein
  • the processor, the memory, and the communication interface complete each other through the bus Communication
  • the communication interface is used for information transmission between the user equipment and the user and the cloud server;
  • the processor is configured to invoke logic instructions in the memory to perform the following methods:
  • the highest version of the note is sent to the cloud server by another user equipment, and the note with the closest time to the current time is sent.
  • An embodiment of the present application also provides a computer program, including program code, for performing the following operations:
  • the highest version of the note is sent to the cloud server by another user equipment, and the note with the closest time to the current time is sent.
  • Embodiments of the present application also provide a storage medium for storing a computer program as described above.
  • the method and device for updating a note provided by the embodiment of the present application, when the user opens the page of the note or triggers the operation of refreshing the page, the first login terminal acquires the identifier corresponding to the identifier of the first login terminal to the cloud server according to the operation of the user.
  • the highest version of the note when the first login terminal compares the highest version of the note with the local note to determine whether to update the local note, the method compares the obtained version of the note with the local note, and the first login terminal
  • the note is updated so that the data of the first login terminal and the note of the second login terminal are consistent, which improves the efficiency of the user to view the note data.
  • FIG. 1 is a schematic flowchart of a method for updating a note provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for updating a note provided by another embodiment of the present application.
  • FIG. 3 is a schematic diagram of a note in a first login terminal according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a device for updating a note provided by an embodiment of the present application.
  • FIG. 5 is a structural block diagram of a user equipment according to an embodiment of the present application.
  • the first login terminal in the embodiment of the present application can be understood as a client application set in a terminal, such as a mobile phone, and can also be understood as a browser.
  • the first login terminal can be understood as a web terminal
  • the second login terminal of the first login terminal is understood as a client App.
  • the methods in this embodiment are applicable to the web terminal.
  • the first login terminal and the second login terminal are not described in detail in this embodiment.
  • FIG. 1 is a schematic flowchart of a method for updating a note provided by an embodiment of the present application. As shown in FIG. 1 , the method includes the following steps:
  • the first login terminal receives a first instruction of the user to trigger the acquisition of the note.
  • the first login terminal in this embodiment is a web terminal or a client. In this embodiment, only the first login terminal is taken as an example for detailed description. Of course, the method in this embodiment is also applicable to the second login terminal.
  • the first login terminal is displayed with a note. Before the display, the user needs to open the first login terminal by using a username and a password to obtain a note.
  • the first instruction can be understood as the user just opens the first login terminal. The triggering is triggered by the user clicking the right button on the web to refresh the page or the user is triggered by the user's sliding gesture or the like.
  • the edited note is stored in the cloud server by the first login terminal (web side) and the second login terminal (client side), wherein if the first login terminal obtains a note from the cloud server, the highest version is The note is sent to the cloud server by the second login terminal, and the note with the closest time to the current time is sent; Conversely, if the second login terminal obtains a note from the cloud server, the highest version of the note is sent to the cloud server by the first login terminal, and the note with the closest time to the current time is sent.
  • the first login terminal receives the highest version of the note, compares the highest version of the note with the local note, and determines whether to update the local note according to the comparison result.
  • the first login terminal is configured with a local label, but the local label in the above step S103 can be understood as the local label of the end of the first instruction for acquiring the note triggered by the user in step S101.
  • the web terminal receives the first instruction of the user to trigger the acquisition of the note, and the local label in step S103 can be understood as a label local to the web end.
  • the first login terminal acquires the highest version of the note corresponding to the identifier of the first login terminal to the cloud server according to the operation of the user, and the first login terminal at this time
  • the method compares the highest version of the obtained note with the local note, and updates the note of the first login terminal, so that the first login terminal and the first The data of the notes of the second login terminal is consistent, which improves the efficiency of the user to view the data of the note.
  • step S103 it is determined whether to update the local note, including the steps not shown in FIG. 1:
  • the first login terminal updates the local note according to the highest version of the note when the highest version of the note is inconsistent with the local note, and displays the updated local note to the user.
  • the highest version of the note is compared with the local note, so that the web end and the client's note are kept in sync at the same time.
  • the user does not edit the local note on the web side, but edits the local note on the client.
  • the client sends the edited local note to the cloud server, and the cloud server will Then send the client-edited note to the web, so that the web and the client's notes are kept in sync.
  • S1032 The first login terminal does not update the local note when the highest version of the note is consistent with the local note, and displays the local note to the user.
  • FIG. 2 is a schematic flowchart diagram of a method for updating a note provided by an embodiment of the present application. As shown in FIG. 2, the method includes the following steps:
  • the first login terminal receives a first instruction of the user to trigger the acquisition of the note.
  • the first login terminal sends, according to the first instruction, a request for acquiring a highest version of the note corresponding to the identifier of the first login terminal to the cloud server, so that the cloud server searches for the identifier. Corresponding to the highest version of the note, and sending the highest version of the note to the first login terminal.
  • the first login terminal receives the highest version of the note, and compares the highest version of the note with the local note.
  • step S204 Determine, according to the comparison result, whether to update the local note, if no, execute step S205, otherwise perform step S206.
  • the local note is not updated, and the local note is displayed to the user.
  • the method further includes:
  • the first login terminal receives a second instruction triggered by the user to edit the local note.
  • the second instruction can be understood as the operation of the user on the note, as shown in FIG. 3, for example, creating a new note operation, deleting a note operation, creating a new note holder operation, and deleting a note holder operation.
  • creating a new note operation for example, creating a new note operation, deleting a note operation, creating a new note holder operation, and deleting a note holder operation.
  • moving the note in a certain note holder to another note holder or the like is not limited in this embodiment.
  • the user can create a new custom sticky note folder and delete it, rename it, etc., and the notes that are not in any custom grouping will be included in the default note folder for the user to manage uniformly; the user can all of the notes list.
  • the number of notes in the list of the note holders can be changed in real time, which better reminds the user of the operation status and greatly improves the efficiency of the user management notes; for a single note, the user can also In the edit state, it is instantly moved to the corresponding custom note folder; all the notes containing the picture in the note content are marked for special display, so that the user can quickly find the corresponding note.
  • the method further includes:
  • the search keyword corresponding to the search instruction is obtained, and the search keyword is matched with the name of the note in the preset database;
  • the preset database stores the name of the note that the user has browsed.
  • first login terminal web side
  • second login terminal client side
  • search mark function which allows the user to quickly retrieve all the notes containing the keyword in the note content by means of finding keywords. Highlighting the keyword display further improves the efficiency of the user's operation of the target note.
  • step S207 after receiving the second instruction, the user-edited note is recorded and saved, and the security of the user-edited note data is secured.
  • step S2071 The first login terminal monitors whether the local note is in an edit state. If yes, step S2072 is performed; otherwise, step S2073 is performed.
  • S2072 save a local note currently in an edit state every preset time period, and send the local note of the edit state to the cloud server;
  • the preset time period can be understood as 2s, 5s, etc., which is not limited in this embodiment.
  • the first login terminal sends the edited local note to the cloud server for storage according to the second instruction.
  • the note may include a note folder, a note list, and a note details, wherein the note holder supports new creation, deletion, and custom name. All notes and default note folders are always present. As with custom note folders, the number of notes included in the current note folder is displayed. The list of notes supports new creation, deletion, and movement. Notes containing images and notes that are not stored in the cloud will be prompted by the user in the list. When the note is moved, the user can drag the mouse to the corresponding note folder to complete; the note details, the content area supports text, expression input and picture insertion, etc., the picture has a unified border around, and the subsequent support will drag. A note pad can be selected from the notes details.
  • the above notes include three times to record user data to ensure user data security. The first time, when the details of the notes change, the second time, the latest content is automatically synchronized and saved every 2 seconds; the third time, when the editing state is exited.
  • FIG. 4 is a schematic structural diagram of a device for updating a note provided by an embodiment of the present application. As shown in FIG. 4, the device includes:
  • the receiving module 41 is configured to receive a first instruction of the user to trigger the acquisition of the note
  • the sending module 42 is configured to send, according to the first instruction, a request for acquiring a highest version of the note corresponding to the identifier of the first login terminal to the cloud server, so that the cloud server searches for the identifier corresponding to the identifier The highest version of the note, and Sending the highest version of the note to the first login terminal;
  • the receiving module 41 is further configured to receive the highest version of the note
  • the comparing module 43 is configured to compare the highest version of the note with the local note
  • a determining module 44 configured to determine, according to the comparison result, whether to update the local note
  • the highest version of the note is sent to the cloud server by the second login terminal, and the note with the closest time to the current time is sent.
  • the determining module 44 is configured to: when the highest version of the note is inconsistent with the local note, update the local note according to the highest version of the note;
  • the device also includes what is not shown in Figure 4:
  • a display module for presenting the updated local notes to the user.
  • the determining module 44 is further configured to: when the highest version of the note is consistent with the local note, the local note is not updated;
  • a display module for presenting local notes to the user.
  • the receiving module 41 is further configured to receive a second instruction triggered by the user to edit the local note
  • the sending module 42 is further configured to send the edited local note to the cloud server for storage.
  • the device further comprises a not shown in FIG. 4:
  • a monitoring module configured to monitor whether the local note is in an edit state
  • the sending module 42 is configured to save a local note currently in an edit state every preset time period when the monitoring module monitors that the local note is in an edit state, and send the edited local note to the local note Cloud server
  • the sending module 42 is further configured to: when the receiving module receives an instruction triggered by the user to exit the editing state, save the local note currently in the editing state, and send the edited local note to the cloud server .
  • the device further comprises a not shown in FIG. 2:
  • An obtaining module configured to acquire a keyword corresponding to the search instruction when receiving a search instruction of the user on an interface displayed to the user's note;
  • a matching module configured to match the search keyword with a name of a note in a preset database
  • the obtaining module is further configured to obtain a name of the keyword included in the name of the note, and highlight a keyword in a name including the keyword;
  • the display module is further configured to display the name to a user
  • the preset database stores the name of the note that the user has browsed.
  • the foregoing apparatus has a one-to-one correspondence with the foregoing method, and the specific implementation details of the foregoing method are also applicable to the foregoing apparatus. The specific implementation details of the foregoing apparatus are not described in detail in this embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • FIG. 5 is a structural block diagram of a user equipment according to another embodiment of the present application.
  • the user equipment includes: a processor 501, a memory 502, a communication interface 503, and a bus 504;
  • the processor 501, the memory 502, and the communication interface 503 complete communication with each other through the bus 504;
  • the communication interface 503 is used for information transmission between the smart TV and the router and the second terminal;
  • the processor 501 is configured to invoke logic instructions in the memory to perform the following methods:
  • the highest version of the note is sent to the cloud server by another user equipment, and the note with the closest time to the current time is sent.
  • Another embodiment of the present application also discloses a computer program, including program code, for performing the following operations:
  • the highest version of the note is sent to the cloud server by another user equipment, and the note with the closest time to the current time is sent.
  • Another embodiment of the present application also discloses a storage medium for storing a computer program as described above.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供一种便签更新方法及装置,该方法包括:第一登录终端接收用户触发的获取便签的第一指令;第一登录终端根据第一指令向云端服务器发送用于获取与第一登录终端的标识对应的最高版本的便签的请求,第一登录终端接收最高版本的便签,将最高版本的便签与本地便签进行比较,根据比较结果,确定是否更新本地便签。其中,最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最近的便签。该方法通过获取的最高版本的便签与本地便签进行比较,对第一登录终端的便签进行更新,使得第一登录终端与第二登录终端的便签的数据一致,提高了用户查阅便签数据的效率。

Description

便签更新方法及装置
交叉引用
本申请引用于2015年11月09日提交的专利名称为“便签更新方法及装置”的第2015107578445号中国专利申请。
技术领域
本申请实施例涉及数据更新技术领域,尤其涉及一种便签更新方法及装置。
背景技术
便签,曾是人们随手记录生活点滴的小工具,电子便签给便签更多的想象空间和趣味性,人们除了可以在便签里书写文字之外,还可以插入图片、添加表情等操作,图片的多样化需求也与日俱增。如今随着智能设备和移动互联网的普及,用户使用电子便签的需求与日俱增,使用频率和使用量也越来越大。
便签一般是以客户端App的形式存在,还可以在Web端通过用户登录查看便签,另外Web端和客户端均可以对便签进行编辑,如果在Web端或客户端对便签单独进行编辑时,两端均无法获知对端的便签数据,在数据量少的情况下,可以通过一一对比进行查看,并保持Web端与客户端的便签数据一致,但是随着新增便签数据的增多,如果在更新或编辑本地便签时,不是在对端的便签数据上进行更新或编辑的情况下,会导致Web端和客户端的便签数据差别较大,而用户想要查询某一便签,且不清楚该便签是在哪一端编辑的情况下,需要在两端分别进行查询,降低了用户查阅便签数据的效率。
发明内容
本申请的目的在于,提供一种便签更新方法及装置,用以提高 用户查阅便签数据的效率。
为实现上述发明目的,本申请的实施例提供了一种便签更新方法,包括:
第一登录终端接收用户触发的获取便签的第一指令;
根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端;
所述第一登录终端接收所述最高版本的便签,将所述最高版本的便签与本地便签进行比较,根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请的实施例还提供了一种便签更新装置,包括:
接收模块,用于接收用户触发的获取便签的第一指令;
发送模块,用于根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端;
所述接收模块,还用于接收所述最高版本的便签;
比较模块,用于将所述最高版本的便签与本地便签进行比较;
确定模块,用于根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请的实施例还提供了一种用户设备,包括:处理器、存储器、通信接口和总线;其中,
所述处理器、存储器、通信接口通过所述总线完成相互间的 通信;
所述通信接口用于该用户设备与用户、云端服务器之间的信息传输;
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法:
接收用户触发的获取便签的第一指令;
根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请的实施例还提供了一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:
接收用户触发的获取便签的第一指令;
根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请的实施例还提供了一种存储介质,用于存储如上面所述的计算机程序。
本申请实施例提供的一种便签更新方法及装置,用户在打开便签的页面或触发刷新页面的操作时,第一登录终端会根据用户的操作向云端服务器获取与第一登录终端的标识对应的最高版本的便签,这时第一登录终端通过将最高版本的便签与本地便签进行比较,确定是否更新本地便签,该方法通过获取的最高版本的便签与本地便签进行比较,对第一登录终端的便签进行更新,使得第一登录终端与第二登录终端的便签的数据一致,提高了用户查阅便签数据的效率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例提供的便签更新方法的流程示意图;
图2为本申请另一实施例提供的便签更新方法的流程示意图;
图3为本申请一实施例提供的在第一登录终端中的便签的示意图;
图4为本申请一实施例提供的便签更新装置的结构示意图;
图5为本申请一实施例提供的用户设备的结构框图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在说明本实施例的方法之前,首先对第一登录终端进行详细说明,本申请实施例中的第一登录终端可以理解为设置在终端例如手机中的客户端App,还可以理解为浏览器中的Web终端,在阅读本申请实施例时,可以将第一登录终端理解为Web终端,第一登录终端的对端第二登录终端理解为客户端App,当然本实施例中的方法均适用于第一登录终端和第二登录终端,本实施例不再进行详细说明。
图1示出了本申请实施例提供的便签更新方法的流程示意图,如图1所示,该方法包括以下步骤:
S101、第一登录终端接收用户触发的获取便签的第一指令。
本实施例中的第一登录终端为Web端或客户端。本实施例仅以第一登录终端为例进行详细说明,当然本实施例中的方法也适用于第二登录终端。
可理解的是在第一登录终端展示有便签,在展示之前需要用户通过用户名和密码等方式打开第一登录终端,以获取便签,其中第一指令可以理解为用户在刚打开第一登录终端时触发的或者是用户在第一登录终端长时间查看时,通过在Web端点击右键刷新页面或者是在客户端通过用户的下滑手势等触发的,本实施例不对其进行限定。
S102、根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端。
云端服务器中会存储有第一登录终端(Web端)和第二登录终端(客户端)在编辑后的便签,其中,如果在第一登录终端向云端服务器获取便签时,则所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签; 相反的,如果在第二登录终端向云端服务器获取便签时,则所述最高版本的便签为第一登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
S103、所述第一登录终端接收所述最高版本的便签,将所述最高版本的便签与本地便签进行比较,根据比较结果,确定是否更新所述本地便签。
上述第一登录终端均设置有本地标签,但是上述步骤S103中的本地标签可以理解为步骤S101中接收用户触发的获取便签的第一指令的一端的本地标签。例如,在步骤S101中是Web端接收用户触发的获取便签的第一指令,则步骤S103中的本地标签可以理解为Web端本地的标签。
上述方法中用户在打开便签的页面或触发刷新页面的操作时,第一登录终端会根据用户的操作向云端服务器获取与第一登录终端的标识对应的最高版本的便签,这时第一登录终端通过将最高版本的便签与本地便签进行比较,确定是否更新本地便签,该方法通过获取的最高版本的便签与本地便签进行比较,对第一登录终端的便签进行更新,使得第一登录终端和第二登录终端的便签的数据一致,提高了用户查阅便签数据的效率。
上述步骤S103中根据比较结果,确定是否更新所述本地便签,包括图1中未示出的步骤:
S1031、所述第一登录终端在所述最高版本的便签与本地便签不一致时,根据所述最高版本的便签更新所述本地便签,并将更新后的本地便签展示给用户。
上述步骤S103中将最高版本的便签与本地便签进行比较,使得Web端和客户端的便签时时的保持同步。例如,用户未在Web端对本地便签进行编辑,而在客户端对本地便签进行编辑,这时客户端会将编辑后的本地便签发送给云端服务器,云端服务器将 再将客户端编辑的便签发送给Web端,这样Web端与客户端的便签保持了同步。
在另一种可实现的方式中,还包括图1中未示出的以下步骤:
S1032、所述第一登录终端在所述最高版本的便签与本地便签一致时,不对所述本地便签进行更新,并将本地便签展示给用户。
下面通过具体的实施例对上述方法进行详细说明。
图2示出了本申请实施例提供的便签更新方法的流程示意图,如图2所示,该方法包括以下步骤:
S201、第一登录终端接收用户触发的获取便签的第一指令。
S202、所述第一登录终端根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端。
S203、所述第一登录终端接收所述最高版本的便签,将所述最高版本的便签与本地便签进行比较。
S204、根据比较结果,判断是否更新所述本地便签,如果否,则执行步骤S205,否则执行步骤S206。
S205、不对所述本地便签进行更新,并将本地便签展示给用户。
S206、根据所述最高版本的便签更新所述本地便签,并将更新后的本地便签展示给用户。
在上述步骤S205和S206将本地便签展示给用户之后,所述方法还包括:
S207、所述第一登录终端接收用户触发的编辑所述本地便签的第二指令;
第二指令可以理解为用户对便签的操作,如图3所示,例如新建便签操作、删除便签操作、新建便签夹操作、删除便签夹操 作、将某一便签夹内的便签移至另一便签夹等,本实施例不对其进行限定。
例如用户可新建自定义便签夹,并对其做删除、重命名等操作,未在任何自定义分组的便签会被收入在默认便签夹中,供用户统一管理;用户可以对便签列表中的所有便签多选、移动到自定义分组中,便签夹列表中的便签数量可以即时的变化,更好提醒用户操作状态的同时也极大的提高了用户管理便签的效率;对于单一便签,用户也可以在编辑状态即时的移动到对应的自定义便签夹中;所有便签内容中包含图片的便签标记出来特殊显示,以方便用户快速找到对应的便签。
此外,在上述步骤S205和S206将本地便签展示给用户之后,所述方法还包括:
在展示给用户便签的界面上,接收到用户的搜索指令时,获取所述搜索指令对应的关键词,将所述搜索关键词与预设数据库中的便签的名称进行匹配;
获取所述便签的名称中包含所述关键词的名称,将包含所述关键词的名称中的关键词高亮显示,并向用户展示所述名称;
其中,所述预设数据库中存储有所述用户已浏览的便签的名称。
可以理解为第一登录终端(Web端)和第二登录终端(客户端)还具有搜索标记功能,可以让用户快速通过查找关键词的方式,检索所有便签内容中包含该关键词的便签,并高亮标记该关键词显示,进一步提高了用户操作目标便签的效率。
在步骤S207中,在接收到第二指令后,通过下述情况记录保存用户编辑的便签,保障了用户编辑的便签数据的安全。
S2071、所述第一登录终端监测所述本地便签是否处于编辑状态,若是,则执行步骤S2072;否则,执行步骤S2073。
S2072、每隔预设时间段保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器;
另外还有一种情况是,在便签数据有变化时,直接保存变化后的便签。
预设时间段可以理解为2s,5s等,本实施例不对其进行限定。
S2073、若接收到用户触发的退出编辑状态的指令,则保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器。
S208、所述第一登录终端根据所述第二指令将编辑后的本地便签发送至云端服务器进行存储。
上述方法中便签可以包括便签夹,便签列表以及便签详情,其中便签夹,支持新建、删除、自定义名称。全部便签和默认便签夹始终存在,和自定义便签夹一样均显示当前便签夹中包含的便签数量;便签列表,支持新建、删除和移动。包含图片的便签和没有同步存储在云端的便签都会在列表中通过标注的方式给用户进行提示。移动便签时用户拖动鼠标到对应便签夹即可完成;便签详情,内容区域支持文字、表情输入和图片插入等,图片有统一的边框围绕,后续会支持拖动。便签详情中可选择便签夹。上述便签包括了3次记录用户数据,保障用户数据安全。第1次,便签详情内容有变化时;第2次,每2秒自动同步并保存最新内容;第3次,退出编辑状态时。
图4示出了本申请实施例提供的一种便签更新装置的结构示意图,如图4所示,该装置包括:
接收模块41,用于接收用户触发的获取便签的第一指令;
发送模块42,用于根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并 将所述最高版本的便签发送至所述第一登录终端;
所述接收模块41,还用于接收所述最高版本的便签;
比较模块43,用于将所述最高版本的便签与本地便签进行比较;
确定模块44,用于根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签
在本实施例的一个优选的实施方式中,所述确定模块44,用于在所述最高版本的便签与本地便签不一致时,根据所述最高版本的便签更新所述本地便签;
所述装置还包括图4中未示出的:
展示模块,用于将更新后的本地便签展示给用户。
在本实施例的一个优选的实施方式中,所述确定模块44,还用于在所述最高版本的便签与本地便签一致时,不对所述本地便签进行更新;
展示模块,用于将本地便签展示给用户。
在本实施例的一个优选的实施方式中,所述接收模块41,还用于接收用户触发的编辑所述本地便签的第二指令;
所述发送模块42,还用于将编辑后的本地便签发送至云端服务器进行存储。
在本实施例的一个优选的实施方式中,所述装置还包括图4中未示出的:
监测模块,用于监测所述本地便签是否处于编辑状态;
所述发送模块42,用于在所述监测模块监测所述本地便签处于编辑状态时,每隔预设时间段保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器;
所述发送模块42,还用于在所述接收模块接收到用户触发的退出编辑状态的指令时,保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器。
在本实施例的一个优选的实施方式中,所述装置还包括图2中未示出的:
获取模块,用于在展示给用户便签的界面上,接收到用户的搜索指令时,获取所述搜索指令对应的关键词;
匹配模块,用于将所述搜索关键词与预设数据库中的便签的名称进行匹配;
所述获取模块,还用于获取所述便签的名称中包含所述关键词的名称,将包含所述关键词的名称中的关键词高亮显示;
所述展示模块,还用于向用户展示所述名称;
其中,所述预设数据库中存储有所述用户已浏览的便签的名称。
需要说明的是,上述装置与上述方法是一一对应的,上述方法的具体实施细节同样适用于上述装置,本实施例不再对上述装置的具体实施细节进行详细说明。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质 上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
图5示出本申请另一实施例提供的用户设备的结构框图。
参照图5,所述用户设备包括:处理器(processor)501、存储器(memory)502、通信接口(Communications Interface)503和总线504;其中,
所述处理器501、存储器502、通信接口503通过所述总线504完成相互间的通信;
所述通信接口503用于该智能电视与路由器、第二终端之间的信息传输;
所述处理器501用于调用所述存储器中的逻辑指令,以执行如下方法:
接收用户触发的获取便签的第一指令;
根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请另一实施例还公开了一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:
接收用户触发的获取便签的第一指令;
根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
本申请另一实施例还公开了一种存储介质,用于存储如前所述的计算机程序。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本申请的实施例的技术方案,而非对其限制;尽管参照前述各实施例对本申请的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请的实施例各实施例技术方案的范围。

Claims (13)

  1. 一种便签更新方法,其特征在于,包括:
    第一登录终端接收用户触发的获取便签的第一指令;
    所述第一登录终端根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端;
    所述第一登录终端接收所述最高版本的便签,将所述最高版本的便签与本地便签进行比较,根据比较结果,确定是否更新所述本地便签;
    其中,所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
  2. 根据权利要求1所述的方法,其特征在于,所述根据比较结果,确定是否更新所述本地便签,包括:
    所述第一登录终端在所述最高版本的便签与本地便签不一致时,根据所述最高版本的便签更新所述本地便签,并将更新后的本地便签展示给用户;
    或者,
    所述第一登录终端在所述最高版本的便签与本地便签一致时,不对所述本地便签进行更新,并将本地便签展示给用户。
  3. 根据权利要求2所述的方法,其特征在于,在将本地便签展示给用户之后,所述方法还包括:
    所述第一登录终端接收用户触发的编辑所述本地便签的第二指令;
    所述第一登录终端根据所述第二指令将编辑后的本地便签发送至云端服务器进行存储。
  4. 根据权利要求3所述的方法,其特征在于,所述第一登录终端接收所述第二指令之后,所述方法还包括:
    所述第一登录终端监测所述本地便签是否处于编辑状态;
    若是,则每隔预设时间段保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器;
    若接收到用户触发的退出编辑状态的指令,则保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器。
  5. 根据权利要求2所述的方法,其特征在于,在将本地便签展示给用户之后,所述方法还包括:
    在展示给用户便签的界面上,接收到用户的搜索指令时,获取所述搜索指令对应的关键词,将所述搜索关键词与预设数据库中的便签的名称进行匹配;
    获取所述便签的名称中包含所述关键词的名称,将包含所述关键词的名称中的关键词高亮显示,并向用户展示所述名称;
    其中,所述预设数据库中存储有所述用户已浏览的便签的名称。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第一登录终端为Web端或客户端。
  7. 一种便签更新装置,其特征在于,包括:
    接收模块,用于接收用户触发的获取便签的第一指令;
    发送模块,用于根据所述第一指令向云端服务器发送用于获取与所述第一登录终端的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述第一登录终端;
    所述接收模块,还用于接收所述最高版本的便签;
    比较模块,用于将所述最高版本的便签与本地便签进行比较;
    确定模块,用于根据比较结果,确定是否更新所述本地便签;
    其中,所述最高版本的便签为第二登录终端向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
  8. 根据权利要求7所述的装置,其特征在于,所述确定模块, 用于在所述最高版本的便签与本地便签不一致时,根据所述最高版本的便签更新所述本地便签;
    展示模块,用于将更新后的本地便签展示给用户;
    或者,
    所述确定模块,还用于在所述最高版本的便签与本地便签一致时,不对所述本地便签进行更新;
    展示模块,用于将本地便签展示给用户。
  9. 根据权利要求8所述的装置,其特征在于,所述接收模块,还用于接收用户触发的编辑所述本地便签的第二指令;
    所述发送模块,还用于将编辑后的本地便签发送至云端服务器进行存储。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    监测模块,用于监测所述本地便签是否处于编辑状态;
    所述发送模块,用于在所述监测模块监测所述本地便签处于编辑状态时,每隔预设时间段保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器;
    所述发送模块,还用于在所述接收模块接收到用户触发的退出编辑状态的指令时,保存当前处于编辑状态的本地便签,并将所述编辑状态的本地便签发送至所述云端服务器。
  11. 一种用户设备,其特征在于,包括:处理器、存储器、通信接口和总线;其中,
    所述处理器、存储器、通信接口通过所述总线完成相互间的通信;
    所述通信接口用于该用户设备与用户、云端服务器之间的信息传输;
    所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法:
    接收用户触发的获取便签的第一指令;
    根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
    还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
    其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
  12. 一种计算机程序,其特征在于,包括程序代码,所述程序代码用于执行如下操作:
    接收用户触发的获取便签的第一指令;
    根据所述第一指令向云端服务器发送用于获取与所述用户设备的标识对应的最高版本的便签的请求,以使所述云端服务器查找与所述标识对应的最高版本的便签,并将所述最高版本的便签发送至所述用户设备;
    还用于接收所述最高版本的便签;以及将所述最高版本的便签与本地便签进行比较;并根据比较结果,确定是否更新所述本地便签;
    其中,所述最高版本的便签为另一用户设备向所述云端服务器发送的,且发送时间与当前时间最接近的便签。
  13. 一种存储介质,其特性在与,用于存储如权利要求12所述的计算机程序。
PCT/CN2016/084666 2015-11-09 2016-06-03 便签更新方法及装置 WO2017080198A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/242,418 US20170134364A1 (en) 2015-11-09 2016-08-19 Note update method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510757844.5 2015-11-09
CN201510757844.5A CN105871970A (zh) 2015-11-09 2015-11-09 便签更新方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/242,418 Continuation US20170134364A1 (en) 2015-11-09 2016-08-19 Note update method and device

Publications (1)

Publication Number Publication Date
WO2017080198A1 true WO2017080198A1 (zh) 2017-05-18

Family

ID=56624210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084666 WO2017080198A1 (zh) 2015-11-09 2016-06-03 便签更新方法及装置

Country Status (2)

Country Link
CN (1) CN105871970A (zh)
WO (1) WO2017080198A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782635A (zh) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 数据处理方法和装置、存储介质和电子装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269112A (zh) * 2016-12-30 2018-07-10 北京国双科技有限公司 广告创意的更新方法及装置
CN107291931B (zh) * 2017-06-30 2020-08-18 珠海格力电器股份有限公司 一种便签的生成方法、装置及用户终端

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968347A (zh) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 浏览器便签实时同步的方法及实现便签实时同步的浏览器
CN102968345A (zh) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 便签实时同步方法及装置
CN103002054A (zh) * 2012-12-25 2013-03-27 北京百度网讯科技有限公司 基于网络的笔记共享方法、系统和云端服务器
CN103841167A (zh) * 2012-11-27 2014-06-04 中国移动通信集团公司 一种用户数据同步方法及设备
US20140172799A1 (en) * 2012-12-19 2014-06-19 Box, Inc. Method and apparatus for synchronization of items with read-only permissions in a cloud-based environment
CN104219283A (zh) * 2014-08-06 2014-12-17 上海爱数软件有限公司 基于云存储的文件按需下载和自动同步方法及其装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153335A1 (en) * 2008-12-12 2010-06-17 Microsoft Corporation Synchronizing multiple classes with disparate schemas in the same collection
CN102724328B (zh) * 2012-06-29 2016-11-09 北京奇虎科技有限公司 稍后阅读客户端刷新方法、系统及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968347A (zh) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 浏览器便签实时同步的方法及实现便签实时同步的浏览器
CN102968345A (zh) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 便签实时同步方法及装置
CN103841167A (zh) * 2012-11-27 2014-06-04 中国移动通信集团公司 一种用户数据同步方法及设备
US20140172799A1 (en) * 2012-12-19 2014-06-19 Box, Inc. Method and apparatus for synchronization of items with read-only permissions in a cloud-based environment
CN103002054A (zh) * 2012-12-25 2013-03-27 北京百度网讯科技有限公司 基于网络的笔记共享方法、系统和云端服务器
CN104219283A (zh) * 2014-08-06 2014-12-17 上海爱数软件有限公司 基于云存储的文件按需下载和自动同步方法及其装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782635A (zh) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 数据处理方法和装置、存储介质和电子装置
CN111782635B (zh) * 2020-06-29 2024-04-05 京东科技控股股份有限公司 数据处理方法和装置、存储介质和电子装置

Also Published As

Publication number Publication date
CN105871970A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
US11354328B2 (en) Shared folder backed integrated workspaces
US20220147489A1 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
US20200175223A1 (en) Animating Edits to Documents
AU2014384636B2 (en) Systems and methods for ephemeral eventing
US9311326B2 (en) Virtual file system for automated data replication and review
CN105872168A (zh) 通讯录更新方法及装置
US20170134364A1 (en) Note update method and device
WO2017080198A1 (zh) 便签更新方法及装置
US20140236657A1 (en) Method and device for processing user generated content
KR20140103409A (ko) 마인드웹 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16863379

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16863379

Country of ref document: EP

Kind code of ref document: A1