技术领域technical field
本发明涉及网络技术领域,特别是涉及一种数据分享方法及装置、移动终端。The invention relates to the field of network technology, in particular to a data sharing method and device, and a mobile terminal.
背景技术Background technique
随着网络技术的不断发展,存储用户数据的方式已逐渐从硬件存储(如移动硬盘、U盘)转变为云端服务器存储。用户可以通过移动终端内的云端服务器应用程序随时随地地将用户数据存储在云端服务器中,用户也可以将云端服务器中的用户数据分享给其他用户。目前用户将数据分享给其他用户时,需要将个人云端服器账号和密码发送给其他用户,其他用户通过该账号和密码登陆才可以获得用户数据。但是这种方式会让其他用户看到全部用户数据,使得用户数据存在安全隐患,同时也给分享数据带来不便。With the continuous development of network technology, the way of storing user data has gradually changed from hardware storage (such as mobile hard disk, U disk) to cloud server storage. The user can store the user data in the cloud server anytime and anywhere through the cloud server application program in the mobile terminal, and the user can also share the user data in the cloud server with other users. At present, when users share data with other users, they need to send their personal cloud server account number and password to other users, and other users can log in through this account number and password to obtain user data. However, this method will allow other users to see all user data, making user data a security risk, and it also brings inconvenience to sharing data.
发明内容Contents of the invention
本发明提供一种数据分享方法及装置、移动终端,以解决现有的数据分享方法使用户数据存在安全隐患的技术问题。The invention provides a data sharing method and device, and a mobile terminal to solve the technical problem that the existing data sharing method causes potential safety hazards in user data.
本发明提供一种数据分享方法,其包括:The present invention provides a data sharing method, which includes:
获取用户数据及与其相对应的标识信息并同步至云端服务器;Obtain user data and its corresponding identification information and synchronize to the cloud server;
发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared; and
接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link to the terminal of the target user.
本发明还提供一种数据分享装置,其包括:The present invention also provides a data sharing device, which includes:
获取单元,用于获取用户数据及与其相对应的标识信息并同步至云端服务器;An acquisition unit, configured to acquire user data and corresponding identification information and synchronize them to the cloud server;
发送单元,用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及A sending unit, configured to send a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared; and
接收发送单元,用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The receiving and sending unit is configured to receive the data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
本发明又提供一种移动终端,其包括存储有可执行程序代码的存储器;与所述存储器耦合的处理器;所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明提供的任意一种所述数据分享方法。The present invention further provides a mobile terminal, which includes a memory storing executable program codes; a processor coupled to the memory; the processor invokes the executable program codes stored in the memory to execute the present invention Any one of the data sharing methods provided.
相比于现有技术,本发明提供一种数据分享方法及装置、移动终端。该分享方法通过将用户数据和与其相对应的标识信息同步至云端服务器,再发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据。该数据分享方法可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性。Compared with the prior art, the present invention provides a data sharing method and device, and a mobile terminal. The sharing method synchronizes the user data and the corresponding identification information to the cloud server, and then sends a data sharing request carrying the identification information of the user data to be shared to the cloud server. When the cloud server receives the identification information of the user data to be shared After the data sharing link is generated, the data sharing link is sent to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. In the data sharing method, the target user can only browse the user data to be shared, but cannot view other user data, thereby improving the security of the user data.
附图说明Description of drawings
图1为本发明的数据分享系统的场景示意图。FIG. 1 is a schematic diagram of a scene of the data sharing system of the present invention.
图2为本发明的数据分享方法的第一优选实施例的流程图。Fig. 2 is a flow chart of the first preferred embodiment of the data sharing method of the present invention.
图3为本发明的数据分享方法的第二优选实施例的流程图。FIG. 3 is a flow chart of the second preferred embodiment of the data sharing method of the present invention.
图4为本发明的数据分享装置的第一优选实施例的结构示意图。Fig. 4 is a schematic structural diagram of the first preferred embodiment of the data sharing device of the present invention.
图5为本发明的数据分享装置的第二优选实施例的结构示意图。FIG. 5 is a schematic structural diagram of a second preferred embodiment of the data sharing device of the present invention.
图6为本发明的移动终端的结构示意图。FIG. 6 is a schematic structural diagram of the mobile terminal of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明中的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。例如,在不脱离本发明的范围的情况下,可以将第一控件称为第二控件,且类似地,可将第二控件称为第一控件。第一控件与第二控件两者都是控件,但其不是同一控件。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms 'first', 'second', etc. in the present invention may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first control could be termed a second control, and, similarly, a second control could be termed a first control, without departing from the scope of the present invention. Both the first control and the second control are controls, but they are not the same control. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion.
本发明实施例提供的数据分享系统主要包括数据分享装置以及云端服务器,其中,该数据分享装置具体可以集成在如平板电脑,手机等移动终端中,该服务器与移动终端可通过有线或无线网络进行连接。The data sharing system provided by the embodiment of the present invention mainly includes a data sharing device and a cloud server, wherein the data sharing device can be integrated into mobile terminals such as tablet computers and mobile phones, and the server and the mobile terminal can be connected through a wired or wireless network. connect.
请参考图1,图1为本发明提供的数据分享系统的场景示意图,该数据分享装置具体集成在手机中,主要用于获取分享用户的用户数据及与其相对应的标识信息并同步至云端服务器;发送数据分享请求,并接收数据分享链接;再将所述数据分享链接发送至目标用户的移动终端。Please refer to Figure 1, Figure 1 is a schematic diagram of the scene of the data sharing system provided by the present invention, the data sharing device is specifically integrated in the mobile phone, and is mainly used to obtain the user data of the sharing user and the corresponding identification information and synchronize it to the cloud server ; Send a data sharing request and receive a data sharing link; then send the data sharing link to the mobile terminal of the target user.
另外,如图1所示,该数据分享系统还可以包括云端服务器,存储有大量分享用户的用户数据及其相对应的标识信息;云端服务器主要用于接收并保存用户数据和与其相对应的标识信息,并根据数据分享请求中的待分享用户数据生成数据分享链接,并将该数据分享链接发送给分享用户的移动终端;以及,当目标用户点击数据分享链接后,接收目标用户的移动终端发送的访问数据请求,并根据访问数据请求将待分享用户数据发送至目标用户的移动终端中。In addition, as shown in Figure 1, the data sharing system may also include a cloud server that stores a large amount of user data and corresponding identification information of sharing users; the cloud server is mainly used to receive and store user data and corresponding identification information. information, and generate a data sharing link according to the user data to be shared in the data sharing request, and send the data sharing link to the mobile terminal of the sharing user; and, when the target user clicks on the data sharing link, receive the access data request, and send the user data to be shared to the mobile terminal of the target user according to the access data request.
请参照图2,图2为本发明的数据分享方法的第一优选实施例的流程图。该数据分享方法可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 2 , which is a flowchart of a first preferred embodiment of the data sharing method of the present invention. The data sharing method can be applied to electronic devices such as personal computers, hand-held or laptop devices, mobile phones, personal digital assistants (PDAs), media players, etc., and is not specifically limited here.
本实施例中的数据分享方法包括:The data sharing method in this embodiment includes:
步骤S101:获取用户数据及与其相对应的标识信息并同步至云端服务器;Step S101: Obtain user data and its corresponding identification information and synchronize to the cloud server;
步骤S102:发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;以及Step S102: sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of user data to be shared; and
步骤S103:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。Step S103: Receive the data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
下面将结合图2对本实施例中的数据分享方法做详细地说明。The data sharing method in this embodiment will be described in detail below with reference to FIG. 2 .
在步骤S101中,当用户通过电子设备登陆云端服务器应用程序后,根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。In step S101, after the user logs in to the cloud server application program through the electronic device, user data is obtained from the storage of the electronic device according to the user's selection, wherein the user data includes pictures, videos, contacts and so on.
在获取到用户数据后,用户可以通过云端服务器应用程序对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等。当用户将A图片的分享范围设置为“朋友”后,“朋友”就是A图片的标识信息,电子设备将获取该A图片的标识信息,并将该A图片及其标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After obtaining the user data, the user can edit the user data through the cloud server application. Here, editing the user data by the user includes editing the sharing range of the user data. For example, set the sharing scope of A's picture as "friends", set the sharing scope of B's video as "family", etc. When the user sets the sharing range of the picture A to "friends", "friends" are the identification information of the picture A, and the electronic device will obtain the identification information of the picture A, and synchronize the picture A and its identification information to the cloud server. It should be noted here that the identification information of the user data is not limited to the sharing scope of the user data, and may also be other information that plays an identification role, which is not specifically limited here.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, set the sharing ranges of picture A, picture B, and video C to "friends". Of course, in other embodiments, the identification information of the user data may also be unique identification information of the user data, for example, the address information of the user data is used as the identification information, which is not specifically limited here.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,电子设备可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,电子设备再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of synchronizing data from the electronic device to the cloud server, when the user edits the user data, the electronic device can generate a list of identification information. The identification information list is used to save the identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
另外,需要说明的是,在本实施例中,用户数据和与其相对应的标识信息一起同步至云端服务器,在其他实施例中,用户数据和与其相对应的标识信息也可以分别同步至云端服务器,即先同步用户数据至云端服务器,再通过对用户数据进行编辑获得用户数据的标识信息,并将标识信息同步至云端服务器,在此不做具体限制。In addition, it should be noted that in this embodiment, the user data and the corresponding identification information are synchronized to the cloud server together. In other embodiments, the user data and the corresponding identification information can also be synchronized to the cloud server separately. , that is, firstly synchronize the user data to the cloud server, then obtain the identification information of the user data by editing the user data, and synchronize the identification information to the cloud server, no specific limitation is set here.
在步骤S102和S103中,当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据,用户点击任意一个待分享用户数据后,电子设备将发送数据分享请求至云端服务器,其中,该数据分享请求中包括待分享用户数据的标识信息。In steps S102 and S103, when the user needs to share user data such as his pictures, the user enters the sharing interface by clicking the sharing entry in the cloud server application program. In the sharing interface, user data is displayed. After the user clicks on any user data to be shared, the electronic device will send a data sharing request to the cloud server, wherein the data sharing request includes identification information of the user data to be shared.
例如,用户预先设置了10张图片的标识信息为“朋友”,当用户点击分享入口进入分享界面后,用户点击任意一张标识信息为“朋友”的图片,表示用户希望将标识信息为“朋友”的10张图片均分享出去。此时,电子设备将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, the user pre-sets the identification information of 10 pictures as "friends". After the user clicks the sharing entry to enter the sharing interface, the user clicks any picture whose identification information is "friends", indicating that the user wants to set the identification information as "friends". "The 10 pictures were shared. At this time, the electronic device sends the data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identification information of the user data to be shared carried in the data sharing request is not limited to one, and may also be multiple. The user data whose information is "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至电子设备。When the cloud server receives the data sharing request, it will parse out the identification information of the user data to be shared from the data sharing request, and generate a data sharing link according to the identification information of the user data to be shared, and then send the generated data sharing link to to electronic equipment.
当电子设备接收到云端服务器反馈回的数据分享链接后,根据用户的选择将该数据分享链接发送至目标用户的终端,从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性。After receiving the data sharing link fed back by the cloud server, the electronic device sends the data sharing link to the target user's terminal according to the user's choice, so that the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, but cannot view other user data, which improves the security of the user data.
本实施例中的数据分享方法,通过将用户数据和与其相对应的标识信息同步至云端服务器,再发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据。该数据分享方法可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时给分享数据提供便利性。The data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends a data sharing request carrying the identification information of the user data to be shared to the cloud server. After sharing the data sharing link generated by the identification information of the user data, the data sharing link is sent to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. The data sharing method allows the target user to only browse the user data to be shared, but not to view other user data, which improves the security of the user data and provides convenience for sharing the data.
请参照图3,图3为本发明的数据分享方法的第二优选实施例的流程图。该数据分享方法可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 3 , which is a flowchart of a second preferred embodiment of the data sharing method of the present invention. The data sharing method can be applied to electronic devices such as personal computers, hand-held or laptop devices, mobile phones, personal digital assistants (PDAs), media players, etc., and is not specifically limited here.
本实施例中的数据分享方法包括:The data sharing method in this embodiment includes:
步骤S201:获取用户数据,并生成所述用户数据的编辑界面;通过所述编辑界面获取所述用户数据的标识信息;将所述用户数据和与其相对应的标识信息同步至所述云端服务器;Step S201: Acquiring user data, and generating an editing interface for the user data; obtaining identification information of the user data through the editing interface; synchronizing the user data and corresponding identification information to the cloud server;
步骤S202:获取待分享用户数据的标识信息;Step S202: Obtain identification information of user data to be shared;
步骤S203:发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括所述待分享用户数据的标识信息;Step S203: sending a data sharing request to the cloud server, wherein the data sharing request includes identification information of the user data to be shared;
步骤S204:接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接和数据访问密码,并发送所述数据分享链接和数据访问密码至目标用户的终端;Step S204: receiving the data sharing link and data access password generated by the cloud server according to the identification information of the user data to be shared, and sending the data sharing link and data access password to the terminal of the target user;
步骤S205:获取所述云端服务器在所述目标用户成功访问所述待分享用户数据后生成的提示信息;根据所述提示信息,显示所述待分享用户数据的分享状态。Step S205: Obtain the prompt information generated by the cloud server after the target user successfully accesses the user data to be shared; display the sharing status of the user data to be shared according to the prompt information.
下面将结合图3对本实施例中的数据分享方法做详细地说明。The data sharing method in this embodiment will be described in detail below with reference to FIG. 3 .
在步骤S201中,当用户通过电子设备登陆云端服务器应用程序后,根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。In step S201, after the user logs in to the cloud server application through the electronic device, user data is obtained from the storage of the electronic device according to the user's selection, wherein the user data includes pictures, videos, contacts, and the like.
在获取用户数据后,电子设备将生成用户数据的编辑界面,并将该编辑界面显示出来。用户可以在该编辑界面对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等等。当用户将A图片的分享范围设置为朋友后,该“朋友”就是A图片的标识信息,电子设备将获取该A图片的标识信息,并将该A图片及其对应的标识信息同步至云端服务器,即电子设备通过编辑界面获取用户对用户数据设置的标识信息,并将获取到的用户数据及其对应的标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After acquiring the user data, the electronic device will generate an editing interface of the user data and display the editing interface. Users can edit user data in this editing interface. Here, editing the user data by the user includes editing the sharing range of the user data. For example, set the sharing scope of A's picture as "friends", set the sharing scope of B's video as "family" and so on. When the user sets the sharing range of picture A to friends, the "friend" is the identification information of picture A, and the electronic device will obtain the identification information of picture A, and synchronize the picture A and its corresponding identification information to the cloud server , that is, the electronic device acquires the identification information set by the user for the user data through the editing interface, and synchronizes the acquired user data and the corresponding identification information to the cloud server. It should be noted here that the identification information of the user data is not limited to the sharing scope of the user data, and may also be other information that plays an identification role, which is not specifically limited here.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, set the sharing ranges of picture A, picture B, and video C to "friends". Of course, in other embodiments, the identification information of the user data may also be unique identification information of the user data, for example, the address information of the user data is used as the identification information, which is not specifically limited here.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,电子设备可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,电子设备再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of synchronizing data from the electronic device to the cloud server, when the user edits the user data, the electronic device can generate a list of identification information. The identification information list is used to save the identification information of each user data. After the user edits all the user data, the electronic device synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
另外,需要说明的是,在本实施例中,用户数据和与其相对应的标识信息一起同步至云端服务器,在其他实施例中,用户数据和与其相对应的标识信息页可以分别同步至云端服务器,即先同步用户数据至云端服务器,再通过对用户数据进行编辑获得用户数据的标识信息,并将标识信息同步至云端服务器,在此不做具体限制。In addition, it should be noted that in this embodiment, the user data and the corresponding identification information are synchronized to the cloud server together. In other embodiments, the user data and the corresponding identification information page can be synchronized to the cloud server separately. , that is, firstly synchronize the user data to the cloud server, then obtain the identification information of the user data by editing the user data, and synchronize the identification information to the cloud server, no specific limitation is set here.
在步骤S202至S203中,当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示出用户数据及与其对应的标识信息,用户点击任意一个待分享用户数据后,电子设备将获取到该待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享请求,再将生成的数据分享请求发送至云端服务器中。可以理解的是,数据分享请求包括待分享用户数据的标识信息。In steps S202 to S203, when the user needs to share user data such as his pictures, the user enters the sharing interface by clicking the sharing entry in the cloud server application program. In the sharing interface, the user data and its corresponding identification information are displayed. After the user clicks on any user data to be shared, the electronic device will obtain the identification information of the user data to be shared, and generate Data sharing request, and then send the generated data sharing request to the cloud server. It can be understood that the data sharing request includes identification information of the user data to be shared.
例如,用户预先设置了10张图片的标识信息为“朋友”,当用户点击分享入口进入分享界面后,用户点击任意一张标识信息为“朋友”的图片,表示用户希望将标识信息为“朋友”的10张图片均分享出去。此时,电子设备将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, the user pre-sets the identification information of 10 pictures as "friends". After the user clicks the sharing entry to enter the sharing interface, the user clicks any picture whose identification information is "friends", indicating that the user wants to set the identification information as "friends". "The 10 pictures were shared. At this time, the electronic device sends the data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identification information of the user data to be shared carried in the data sharing request is not limited to one, and may also be multiple. The user data whose information is "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接和数据访问密码,并将生成的数据分享链接和数据访问密码发送至电子设备。When the cloud server receives the data sharing request, it will parse out the identification information of the user data to be shared from the data sharing request, and generate a data sharing link and data access password according to the identification information of the user data to be shared, and pass the generated The data sharing link and data access password are sent to the electronic device.
在步骤S204至S205中,当电子设备接收到由云端服务器发送的数据分享链接和数据访问密码后,将发送该数据分享链接和数据访问密码至目标用户的终端,这样目标用户通过点击该数据分享链接并输入数据访问密码即可以浏览待分享用户数据。此时,目标用户仅可以观看到待分享用户数据,而无法观看其他的用户数据,从而提高了用户数据的安全性。In steps S204 to S205, when the electronic device receives the data sharing link and data access password sent by the cloud server, it will send the data sharing link and data access password to the terminal of the target user, so that the target user clicks on the data sharing Link and enter the data access password to browse the user data to be shared. At this time, the target user can only view the user data to be shared, but cannot view other user data, thereby improving the security of the user data.
为了进一步地保护用户数据,数据访问密码设置为具有一定使用期限。例如,从生成该数据访问密码开始到预设时间段内,该数据访问密码为有效,用户可以通过输入该数据访问密码成功访问待分享用户数据。当超过该预设时间段内,则该数据访问密码将无效,此时输入该数据访问密码将无法访问待分享用户数据。In order to further protect user data, the data access password is set to have a certain lifespan. For example, the data access password is valid from the generation of the data access password to a preset period of time, and the user can successfully access the user data to be shared by inputting the data access password. When the preset time period is exceeded, the data access password will be invalid, and the user data to be shared cannot be accessed by entering the data access password at this time.
当目标用户成功访问待分享用户数据后,云端服务器将生成一个提示信息,并将提示信息发送给电子设备。电子设备获取到该提示信息后,将根据该提示信息显示待分享用户数据的分享状态。例如,根据该提示信息显示一对话框,对话框内显示出待分享用户数据已经分享成功的字样,等等。这样,用户就可以知道目标用户已经成功浏览了待分享用户数据。After the target user successfully accesses the user data to be shared, the cloud server will generate a prompt message and send the prompt message to the electronic device. After obtaining the prompt information, the electronic device will display the sharing status of the user data to be shared according to the prompt information. For example, a dialog box is displayed according to the prompt information, and words indicating that the user data to be shared has been successfully shared are displayed in the dialog box, and so on. In this way, the user can know that the target user has successfully browsed the user data to be shared.
为了更加清晰地解释说明本实施例中的数据分享方法,下面将结合具体的应用场景来说明。In order to explain the data sharing method in this embodiment more clearly, it will be described below in combination with specific application scenarios.
在该应用场景中,第一用户打开手机中的云端服务器的应用程序,成功登陆该应用程序后,第一用户点击导入数据按钮,使得该应用程序可以获取到手机中的用户数据。In this application scenario, the first user opens the application program of the cloud server in the mobile phone, and after successfully logging in to the application program, the first user clicks the import data button, so that the application program can obtain the user data in the mobile phone.
当获取完用户数据后,应用程序将弹出用户数据的编辑界面。在该编辑界面中,显示出用户数据。在每个用户数据的旁边都设有选择栏。该选择栏内存有分享用户预先设置的标识信息,例如“朋友”、“家人”、“工作”、“生活”等等标识信息。第一用户通过选择栏设定每个用户数据的标识信息。例如第一用户在图片A对应的选择栏中选择“朋友”,此时手机将保存该图片A的标识信息为“朋友”,并将图片A及其标识信息“朋友”同步至云端服务器,以此类推,可以完成对每个用户数据标识信息的设置,并将用户数据及其对应的标识信息同步至云端服务器。After obtaining the user data, the application will pop up the user data editing interface. In the editing interface, user data is displayed. Next to each user data there is a selection bar. The selection column stores identification information preset by the sharing user, such as identification information such as "friends", "family", "work", "life" and so on. The first user sets the identification information of each user data through the selection field. For example, the first user selects "friend" in the selection column corresponding to picture A. At this time, the mobile phone will save the identification information of the picture A as "friend", and synchronize the picture A and its identification information "friend" to the cloud server. By analogy, the setting of the identification information of each user data can be completed, and the user data and the corresponding identification information can be synchronized to the cloud server.
当第一用户需要分享标识信息为“家人”的用户数据给第二用户时,第一用户通过点击分享入口进入分享界面,在该分享界面内,将显示出用户数据以及用户数据对应的标识信息。第一用户点击标识信息为“家人”的任意一个用户数据,此时,手机将发送一个携带有“家人”标识信息的数据分享请求至云端服务器。When the first user needs to share the user data whose identification information is "family" with the second user, the first user enters the sharing interface by clicking the sharing entry, and in the sharing interface, the user data and the identification information corresponding to the user data will be displayed . The first user clicks on any user data whose identification information is "family", at this time, the mobile phone will send a data sharing request carrying the identification information of "family" to the cloud server.
云端服务器通过解析该数据分享请求获取到“家人”标识信息,并获取其内存储的带有“家人”标识信息的所有用户数据,根据该带有“家人”标识信息的用户数据生成数据分享链接和数据访问密码,并将该数据分享链接和数据访问密码发送给第一用户。The cloud server obtains the "family" identification information by analyzing the data sharing request, and obtains all user data with the "family" identification information stored in it, and generates a data sharing link based on the user data with the "family" identification information and the data access password, and send the data sharing link and the data access password to the first user.
第一用户将接收到的数据分享链接和数据访问密码转发给第二用户。第二用户点击数据分享链接时,首先呈现一个输入访问密码的对话框,第二用户输入数据访问密码后,将可以成功浏览第一用户分享的用户数据。The first user forwards the received data sharing link and data access password to the second user. When the second user clicks on the data sharing link, a dialog box for entering the access password is presented first. After the second user enters the data access password, he will be able to successfully browse the user data shared by the first user.
上述应用场景仅仅是为了进一步说明本实施例中的数据分享方法,不能用于限制本实施例中数据分享方法的适用范围。The above application scenarios are only for further illustrating the data sharing method in this embodiment, and cannot be used to limit the scope of application of the data sharing method in this embodiment.
本实施例中的数据分享方法,通过将用户数据和与其相对应的标识信息同步至云端服务器,再发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接和数据访问密码后,将该数据分享链接和数据访问密码发送至目标用户的终端,使得目标用户可以通过数据分享链接和数据访问密码浏览待分享用户数据。该数据分享方法可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,同时,通过数据访问密码可以进一步保护用户数据,增加用户数据的安全性。The data sharing method in this embodiment synchronizes the user data and the corresponding identification information to the cloud server, and then sends a data sharing request carrying the identification information of the user data to be shared to the cloud server. After sharing the data sharing link and data access password generated by the identification information of the user data, send the data sharing link and data access password to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link and data access password . The data sharing method allows the target user to only browse the user data to be shared, but not to view other user data. At the same time, the user data can be further protected through the data access password, increasing the security of the user data.
请参照图4,图4为本发明数据分享装置的第一优选实施例的结构示意图。本实施例中的数据分享装置300可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 4 , which is a schematic structural diagram of a first preferred embodiment of the data sharing device of the present invention. The data sharing apparatus 300 in this embodiment can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, etc., and there is no specific limitation here.
本实施例中的数据分享装置300包括获取单元301、发送单元302和接收发送单元303。其中,获取单元301用于获取用户数据及与其相对应的标识信息并同步至云端服务器;发送单元302用于发送数据分享请求至所述云端服务器,其中,所述数据分享请求包括待分享用户数据的标识信息;接收发送单元303用于接收所述云端服务器根据所述待分享用户数据的标识信息生成的数据分享链接,并发送所述数据分享链接至目标用户的终端。The data sharing device 300 in this embodiment includes an acquiring unit 301 , a sending unit 302 and a receiving and sending unit 303 . Wherein, the obtaining unit 301 is used to obtain user data and corresponding identification information and synchronize them to the cloud server; the sending unit 302 is used to send a data sharing request to the cloud server, wherein the data sharing request includes user data to be shared identification information; the receiving and sending unit 303 is configured to receive the data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user.
下面将结合图4对本实施例中的数据分享装置300做详细地说明。The data sharing device 300 in this embodiment will be described in detail below with reference to FIG. 4 .
当用户通过电子设备登陆云端服务器应用程序后,获取单元301根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。After the user logs into the cloud server application program through the electronic device, the obtaining unit 301 obtains user data from the storage of the electronic device according to the user's selection, wherein the user data includes pictures, videos, contacts, and the like.
在获取单元301获取到用户数据后,用户可以通过云端服务器应用程序对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等。当用户将A图片的分享范围设置为“朋友”后,获取单元301将获取该A图片的分享范围“朋友”,并将该“朋友”保存为A图片的标识信息,再将该A图片及其标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the acquiring unit 301 acquires the user data, the user can edit the user data through the cloud server application program. Here, editing the user data by the user includes editing the sharing range of the user data. For example, set the sharing scope of A's picture as "friends", set the sharing scope of B's video as "family", etc. When the user sets the sharing range of the picture A as "friends", the acquisition unit 301 will acquire the sharing range "friends" of the picture A, and save the "friends" as the identification information of the picture A, and then the picture A and Its identification information is synchronized to the cloud server. It should be noted here that the identification information of the user data is not limited to the sharing scope of the user data, and may also be other information that plays an identification role, which is not specifically limited here.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, set the sharing ranges of picture A, picture B, and video C to "friends". Of course, in other embodiments, the identification information of the user data may also be unique identification information of the user data, for example, the address information of the user data is used as the identification information, which is not specifically limited here.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,获取单元301可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,获取单元301再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of synchronizing data from the electronic device to the cloud server, when the user edits the user data, the obtaining unit 301 may generate a list of identification information. The identification information list is used to save the identification information of each user data. After the user finishes editing all the user data, the obtaining unit 301 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can store the identification information corresponding to each user data.
当用户需要分享用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据及与其相对应的标识信息,用户点击任意一个待分享用户数据后,发送单元302将获取该带分享用户数据对应的标识信息,并发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器。When the user needs to share user data, the user enters the sharing interface by clicking the sharing entry in the cloud server application program. In the sharing interface, user data and corresponding identification information are displayed. After the user clicks on any user data to be shared, the sending unit 302 will obtain the identification information corresponding to the user data to be shared, and send a message carrying the user data to be shared. The data sharing request of the identification information is sent to the cloud server.
例如,用户点击分享入口进入分享界面后,用户点击标识信息“朋友”的一张图片,这表示用户希望将标识信息为“朋友”的所有用户数据分享给好友。此时,发送单元302将获取该图片的标识信息,并将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, after the user clicks on the sharing entry to enter the sharing interface, the user clicks on a picture with the identification information "friend", which means that the user wants to share all user data whose identification information is "friend" with friends. At this time, the sending unit 302 will obtain the identification information of the picture, and send the data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identification information of the user data to be shared carried in the data sharing request is not limited to one, and may also be multiple. The user data whose information is "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至电子设备的接收发送单元303。When the cloud server receives the data sharing request, it will parse out the identification information of the user data to be shared from the data sharing request, and generate a data sharing link according to the identification information of the user data to be shared, and then send the generated data sharing link to To the receiving and sending unit 303 of the electronic device.
当接收发送单元303接收到云端服务器反馈回的数据分享链接后,根据用户的选择将该数据分享链接发送至目标用户的终端,从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性。After receiving the data sharing link fed back by the cloud server, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user according to the user's choice, so that the target user can browse the user data to be shared by clicking the data sharing link . At this time, the target user can only view the user data to be shared, but cannot view other user data, which improves the security of the user data.
本实施例中的数据分享装置300,其通过获取单元301获取用户数据及其标识信息并同步至云端服务器;由发送单元302发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收发送单元303接收到云端服务器根据待分享用户数据的标识信息生成的数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据。该数据分享装置可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时给分享数据提供便利性。The data sharing device 300 in this embodiment obtains user data and its identification information through the acquisition unit 301 and synchronizes them to the cloud server; the sending unit 302 sends a data sharing request carrying the identification information of the user data to be shared to the cloud server, when After receiving the data sharing link generated by the cloud server according to the identification information of the user data to be shared, the receiving and sending unit 303 sends the data sharing link to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. The data sharing device allows target users to only browse user data to be shared, but not to view other user data, thereby improving the security of user data and providing convenience for sharing data.
请参照图5,图5为本发明数据分享装置的第二优选实施例的结构示意图。本实施例中的数据分享装置400可以应用于个人计算机、手持式或膝上型设备、移动电话、个人数字助理(PDA)、媒体播放器等电子设备上,在此不做具体限制。Please refer to FIG. 5 , which is a schematic structural diagram of a second preferred embodiment of the data sharing device of the present invention. The data sharing apparatus 400 in this embodiment can be applied to electronic devices such as personal computers, handheld or laptop devices, mobile phones, personal digital assistants (PDAs), media players, etc., and there is no specific limitation here.
本实施例中的数据分享装置400包括获取单元401、发送单元402、接收发送单元403和提示单元404。The data sharing device 400 in this embodiment includes an acquiring unit 401 , a sending unit 402 , a receiving and sending unit 403 and a prompting unit 404 .
当用户通过电子设备登陆云端服务器应用程序后,获取单元401根据用户的选择从电子设备的存储器中获取用户数据,其中,用户数据包括图片、视频、通讯录等。After the user logs into the cloud server application program through the electronic device, the obtaining unit 401 obtains user data from the storage of the electronic device according to the user's selection, wherein the user data includes pictures, videos, contacts, and the like.
在获取单元401获取用户数据后,获取单元401将生成用户数据的编辑界面,并将该编辑界面显示出来。用户可以在该编辑界面对用户数据进行编辑。在此,用户对用户数据进行编辑包括编辑用户数据的分享范围。例如,将A图片的分享范围设置为“朋友”,将B视频的分享范围设置为“家人”等等。当用户将A图片的分享范围设置为朋友后,获取单元401将获取该A图片的分享范围“朋友”,并将该“朋友”保存为A图片的标识信息,再将该A图片及其标识信息同步至云端服务器,即获取单元401通过编辑界面获取用户对用户数据设置的标识信息,并将获取到的标识信息同步至云端服务器。在此需要说明的是,用户数据的标识信息不限于用户数据的分享范围,也可以为其他的起到标识作用的信息,在此不做具体限制。After the acquiring unit 401 acquires the user data, the acquiring unit 401 will generate an editing interface of the user data and display the editing interface. Users can edit user data in this editing interface. Here, editing the user data by the user includes editing the sharing range of the user data. For example, set the sharing scope of A's picture as "friends", set the sharing scope of B's video as "family" and so on. When the user sets the sharing scope of picture A as friends, the acquisition unit 401 will acquire the sharing scope "friends" of picture A, and save the "friends" as the identification information of picture A, and then the picture A and its identification The information is synchronized to the cloud server, that is, the obtaining unit 401 obtains the identification information set by the user on the user data through the editing interface, and synchronizes the obtained identification information to the cloud server. It should be noted here that the identification information of the user data is not limited to the sharing scope of the user data, and may also be other information that plays an identification role, which is not specifically limited here.
另外,在本实施例中,多个用户数据可以对应一个标识信息,即用户数据的标识信息不是用户数据的唯一标识信息。例如,将A图片、B图片、C视频的分享范围均设置为“朋友”。当然,在其他实施例中,用户数据的标识信息也可以为用户数据的唯一标识信息,例如将用户数据的地址信息作为标识信息,在此不做具体限制。In addition, in this embodiment, multiple user data may correspond to one identification information, that is, the identification information of the user data is not unique identification information of the user data. For example, set the sharing ranges of picture A, picture B, and video C to "friends". Of course, in other embodiments, the identification information of the user data may also be unique identification information of the user data, for example, the address information of the user data is used as the identification information, which is not specifically limited here.
为了可以减少电子设备向云端服务器同步数据的频率,用户在编辑用户数据时,获取单元401可以生成一个标识信息列表。该标识信息列表用于保存每个用户数据的标识信息。当用户将所有用户数据编辑完后,获取单元401再将用户数据和该标识信息列表同步至云端服务器,使得云端服务器可以保存每个用户数据对应的标识信息。In order to reduce the frequency of synchronizing data from the electronic device to the cloud server, when the user edits the user data, the acquiring unit 401 can generate a list of identification information. The identification information list is used to save the identification information of each user data. After the user finishes editing all the user data, the obtaining unit 401 synchronizes the user data and the identification information list to the cloud server, so that the cloud server can save the identification information corresponding to each user data.
当用户需要分享自己的图片等用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面。在分享界面中,显示有用户数据及与其对应的标识信息,用户点击任意一个待分享用户数据后,发送单元402将获取到待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享请求,再将生成的数据分享请求发送至云端服务器中,可以理解的是,数据分享请求包括待分享用户数据的标识信息。When the user needs to share user data such as his own picture, the user enters the sharing interface by clicking the sharing entry in the cloud server application program. In the sharing interface, user data and its corresponding identification information are displayed. After the user clicks on any user data to be shared, the sending unit 402 will obtain the identification information of the user data to be shared, and generate The data sharing request, and then the generated data sharing request is sent to the cloud server. It can be understood that the data sharing request includes identification information of the user data to be shared.
例如,用户点击分享入口进入分享界面后,用户点击标识信息为“朋友”的任意一张图片,即用户希望将标识信息为“朋友”的所有用户数据分享给好友。此时,发送单元402将携带有该“朋友”标识信息的数据分享请求发送至云端服务器。需要说明的是,数据分享请求携带的待分享用户数据的标识信息不局限一个,也可以为多个,例如,数据分享请求包括“朋友”标识信息和“亲人”标识信息,即用户希望将标识信息为“朋友”和“亲人”的用户数据分享给目标用户。For example, after the user clicks the sharing entry to enter the sharing interface, the user clicks any picture whose identification information is "friend", that is, the user wishes to share all user data whose identification information is "friend" with friends. At this time, the sending unit 402 sends the data sharing request carrying the "friend" identification information to the cloud server. It should be noted that the identification information of the user data to be shared carried in the data sharing request is not limited to one, and may also be multiple. The user data whose information is "friends" and "relatives" is shared with the target users.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接和数据访问密码,并将生成的数据分享链接和数据访问密码发送至接收发送单元403。When the cloud server receives the data sharing request, it will parse out the identification information of the user data to be shared from the data sharing request, and generate a data sharing link and data access password according to the identification information of the user data to be shared, and pass the generated The data sharing link and the data access password are sent to the receiving and sending unit 403 .
当接收发送单元403接收到由云端服务器发送的数据分享链接和数据访问密码后,将发送该数据分享链接和数据访问密码至目标用户的终端,这样目标用户通过点击该数据分享链接并输入数据访问密码即可以浏览待分享用户数据。此时,目标用户仅可以观看到待分享用户数据,而无法观看其他的用户数据,从而提高了用户数据的安全性。When receiving and sending unit 403 receives the data sharing link and data access password sent by the cloud server, it will send the data sharing link and data access password to the terminal of the target user, so that the target user clicks on the data sharing link and enters the data access password. Password to browse user data to be shared. At this time, the target user can only view the user data to be shared, but cannot view other user data, thereby improving the security of the user data.
为了进一步地保护用户数据,数据访问密码设置为具有一定使用期限。例如,从生成该数据访问密码开始到预设时间段内,该数据访问密码为有效,用户可以通过输入该数据访问密码成功访问待分享用户数据。当超过该预设时间段内,则该数据访问密码将无效,此时输入该数据访问密码将无法访问待分享用户数据。In order to further protect user data, the data access password is set to have a certain lifespan. For example, the data access password is valid from the generation of the data access password to a preset period of time, and the user can successfully access the user data to be shared by inputting the data access password. When the preset time period is exceeded, the data access password will be invalid, and the user data to be shared cannot be accessed by entering the data access password at this time.
当目标用户成功访问待分享用户数据后,云端服务器将生成一个提示信息,并将提示信息发送给提示单元404。提示单元404获取到该提示信息后,将根据该提示信息显示待分享用户数据的分享状态。例如,提示单元404根据该提示信息显示一个对话框,对话框内显示出待分享用户数据已经分享成功的字样,等等。这样,用户就可以知道目标用户已经成功浏览了待分享用户数据。After the target user successfully accesses the user data to be shared, the cloud server will generate a prompt message and send the prompt message to the prompt unit 404 . After the prompting unit 404 acquires the prompting information, it will display the sharing status of the user data to be shared according to the prompting information. For example, the prompting unit 404 displays a dialog box according to the prompt information, and the dialog box displays the words that the user data to be shared has been shared successfully, and so on. In this way, the user can know that the target user has successfully browsed the user data to be shared.
本实施例的数据分享装置400,其通过获取单元401获取用户数据及其标识信息并同步至云端服务器;当用户分享用户数据时,发送单元402发送携带有待分享用户数据的标识信息的数据分享请求至云端服务器,当接收发送单元403接收到数据分享链接后,将该数据分享链接发送至目标用户的终端,使得目标用户可以通过数据分享链接浏览待分享用户数据,同时,在目标用户成功浏览待分享用户数据后,提示单元404可以提示用户待分享用户数据的分享状态。该数据分享装置可以让目标用户仅能浏览待分享用户数据,而无法观看其他的用户数据,提高了用户数据的安全性,同时用户可以及时得知待分享用户数据的分享状态。The data sharing device 400 of this embodiment obtains user data and its identification information through the acquisition unit 401 and synchronizes them to the cloud server; when the user shares user data, the sending unit 402 sends a data sharing request carrying the identification information of the user data to be shared To the cloud server, when the receiving and sending unit 403 receives the data sharing link, it sends the data sharing link to the terminal of the target user, so that the target user can browse the user data to be shared through the data sharing link. After the user data is shared, the prompting unit 404 may prompt the user of the sharing status of the user data to be shared. The data sharing device allows the target user to only browse the user data to be shared, but not to view other user data, thereby improving the security of the user data, and at the same time, the user can know the sharing status of the user data to be shared in time.
请参照图6,图6为本发明移动终端的结构示意图。本实施例中所描述的移动终端500,包括:至少一个输入设备510;至少一个输出设备520;至少一个处理器530、存储器540和电源550。其中,处理器530可以为中央处理器(CPU,Central Processing Unit)。输入设备510、输出设备520、处理器530、存储器540和电源550通过总线连接。其中,输入设备510具体可为触控面板或者物理按键等。输出设备520具体可为显示屏。存储器540可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。存储器540用于存储一组程序代码。电源550用于向输入设备510、输出设备520、处理器530和存储器540提供电压。输入设备510、输出设备520和处理器530用于调用存储器540中存储的程序代码,执行如下操作:Please refer to FIG. 6, which is a schematic structural diagram of a mobile terminal according to the present invention. The mobile terminal 500 described in this embodiment includes: at least one input device 510 ; at least one output device 520 ; at least one processor 530 , memory 540 and power supply 550 . Wherein, the processor 530 may be a central processing unit (CPU, Central Processing Unit). The input device 510, the output device 520, the processor 530, the memory 540 and the power supply 550 are connected by a bus. Wherein, the input device 510 may specifically be a touch panel or a physical button. The output device 520 may specifically be a display screen. The memory 540 can be a high-speed RAM memory, or a non-volatile memory, such as a disk memory. The memory 540 is used to store a set of program codes. The power supply 550 is used to provide voltage to the input device 510 , the output device 520 , the processor 530 and the memory 540 . The input device 510, the output device 520 and the processor 530 are used to call the program code stored in the memory 540, and perform the following operations:
处理器530用于获取用户数据,具体地,根据用户的选择从移动终端500获取用户数据。处理器530还用于获取用户数据的标识信息,并将用户数据和与其相对应的标识信息同步至云端服务器。The processor 530 is configured to acquire user data, specifically, acquire user data from the mobile terminal 500 according to the selection of the user. The processor 530 is also configured to obtain identification information of the user data, and synchronize the user data and the corresponding identification information to the cloud server.
当用户需要分享用户数据时,用户通过点击云端服务器应用程序中的分享入口进入分享界面,用户在分享界面中选择待分享用户数据。处理器530用于获取待分享用户数据的标识信息,并根据该待分享用户数据的标识信息生成数据分享请求,发送数据分享请求至云端服务器。When the user needs to share user data, the user enters the sharing interface by clicking the sharing entry in the cloud server application program, and the user selects the user data to be shared in the sharing interface. The processor 530 is configured to acquire identification information of the user data to be shared, generate a data sharing request according to the identification information of the user data to be shared, and send the data sharing request to the cloud server.
当云端服务器接收到该数据分享请求时,将从该数据分享请求中解析出待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成数据分享链接,再将生成的数据分享链接发送至移动终端500。When the cloud server receives the data sharing request, it will parse out the identification information of the user data to be shared from the data sharing request, and generate a data sharing link according to the identification information of the user data to be shared, and then send the generated data sharing link to to the mobile terminal 500.
处理器530还用于接收云端服务器根据待分享用户数据的标识信息生成的数据分享链接,并发送数据分享链接至目标用户的终端。从而使得目标用户通过点击该数据分享链接即可以浏览待分享用户数据。此时,目标用户仅仅可以观看到待分享用户数据,而无法观看其他的用户数据,提高用户数据的安全性。The processor 530 is also configured to receive the data sharing link generated by the cloud server according to the identification information of the user data to be shared, and send the data sharing link to the terminal of the target user. Thus, the target user can browse the user data to be shared by clicking the data sharing link. At this time, the target user can only view the user data to be shared, but cannot view other user data, thereby improving the security of the user data.
具体实现中,本实施例中所描述的输入设备510、输出设备520和处理器530可执行本发明第一实施例和第二实施例提供的一种数据分享方法中所描述的实现方式,为了说明书的简洁性,在此不再赘述。In a specific implementation, the input device 510, the output device 520, and the processor 530 described in this embodiment can execute the implementation described in the data sharing method provided in the first embodiment and the second embodiment of the present invention, in order to The simplicity of the instructions will not be repeated here.
本实施例的移动终端500,其处理器530执行本发明提供的数据分享方法对应的程序代码,使得该移动终端500可以仅将待分享用户数据呈现给目标用户,而其他用户数据则不会呈现给目标用户,增强用户数据的安全性。In the mobile terminal 500 of this embodiment, its processor 530 executes the program code corresponding to the data sharing method provided by the present invention, so that the mobile terminal 500 can only present the user data to be shared to the target user, while other user data will not be presented To target users, enhance the security of user data.
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,具体的移动终端500可以包括比图所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a part of the structure related to the solution of this application, and the specific mobile terminal 500 may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
本发明实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may physically exist separately, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Each of the above devices or systems may execute the methods in the corresponding method embodiments.
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In summary, although the present invention has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present invention, and those of ordinary skill in the art can make various modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope defined in the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610938197.2ACN106534276A (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device, mobile terminal |
| PCT/CN2017/095623WO2018076865A1 (en) | 2016-10-25 | 2017-08-02 | Data sharing method, device, storage medium, and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610938197.2ACN106534276A (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device, mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106534276Atrue CN106534276A (en) | 2017-03-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610938197.2APendingCN106534276A (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device, mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106534276A (en) |
| WO (1) | WO2018076865A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107659650A (en)* | 2017-09-27 | 2018-02-02 | 四川长虹电器股份有限公司 | photo management method based on label |
| WO2018076865A1 (en)* | 2016-10-25 | 2018-05-03 | 广东欧珀移动通信有限公司 | Data sharing method, device, storage medium, and electronic device |
| CN111277981A (en)* | 2018-12-04 | 2020-06-12 | 阿里巴巴集团控股有限公司 | Content sharing method and device |
| CN111813746A (en)* | 2019-04-11 | 2020-10-23 | 百度在线网络技术(北京)有限公司 | Data sharing method and device and computer readable storage medium |
| CN113094656A (en)* | 2021-03-08 | 2021-07-09 | 海信集团控股股份有限公司 | Access control terminal device, server and method |
| CN114020195A (en)* | 2021-10-12 | 2022-02-08 | 武汉夜莺科技有限公司 | Method and device for processing dialect information and storage medium |
| CN114528264A (en)* | 2020-11-23 | 2022-05-24 | 中移互联网有限公司 | Data synchronization method and system |
| CN114666140A (en)* | 2022-03-25 | 2022-06-24 | 金蝶软件(中国)有限公司 | Method, device, computer equipment and medium for accessing form |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113055444B (en)* | 2021-02-22 | 2023-02-14 | 深圳市迅雷网络技术有限公司 | A file sharing method and related device |
| CN113722105B (en)* | 2021-09-14 | 2023-08-01 | 百度在线网络技术(北京)有限公司 | Cloud application operation method, device, equipment, medium and product |
| CN114401337B (en)* | 2022-01-10 | 2025-03-18 | 北京百度网讯科技有限公司 | Data sharing method, device, equipment and storage medium based on cloud phone |
| CN114745421B (en)* | 2022-03-30 | 2023-10-10 | 北京奇艺世纪科技有限公司 | Method, device, server and storage medium for recording fission path data |
| CN115357316A (en)* | 2022-07-13 | 2022-11-18 | 珠海纵横创新软件有限公司 | A method, system, device and storage medium for sharing engineering valuation |
| CN115174266B (en)* | 2022-08-09 | 2024-05-10 | 宁波奥克斯电气股份有限公司 | Air conditioner control method, device, electronic equipment and computer readable storage medium |
| CN115866015B (en)* | 2022-11-15 | 2024-10-18 | 宁波奥克斯电气股份有限公司 | Air conditioner sharing control method, device and system |
| CN118051565A (en)* | 2023-12-29 | 2024-05-17 | 中国船舶科学研究中心 | Three-dimensional data cloud collaborative visualization method and system for overall performance of ship |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103200224A (en)* | 2013-02-22 | 2013-07-10 | 北京小米科技有限责任公司 | Method and device and terminal of information sharing |
| CN103812882A (en)* | 2012-11-06 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Method and system for transferring files |
| CN104065560A (en)* | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Information processing method and system |
| CN105898582A (en)* | 2015-11-30 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Viewing coupon sharing method, terminal device and server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101328249B1 (en)* | 2011-02-25 | 2013-11-14 | 주식회사 팬택 | Cloud service providing method and the terminal using the cloud service |
| CN106534276A (en)* | 2016-10-25 | 2017-03-22 | 广东欧珀移动通信有限公司 | Data sharing method and device, mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103812882A (en)* | 2012-11-06 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Method and system for transferring files |
| CN103200224A (en)* | 2013-02-22 | 2013-07-10 | 北京小米科技有限责任公司 | Method and device and terminal of information sharing |
| CN104065560A (en)* | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Information processing method and system |
| CN105898582A (en)* | 2015-11-30 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Viewing coupon sharing method, terminal device and server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018076865A1 (en)* | 2016-10-25 | 2018-05-03 | 广东欧珀移动通信有限公司 | Data sharing method, device, storage medium, and electronic device |
| CN107659650A (en)* | 2017-09-27 | 2018-02-02 | 四川长虹电器股份有限公司 | photo management method based on label |
| CN111277981A (en)* | 2018-12-04 | 2020-06-12 | 阿里巴巴集团控股有限公司 | Content sharing method and device |
| CN111813746A (en)* | 2019-04-11 | 2020-10-23 | 百度在线网络技术(北京)有限公司 | Data sharing method and device and computer readable storage medium |
| CN114528264A (en)* | 2020-11-23 | 2022-05-24 | 中移互联网有限公司 | Data synchronization method and system |
| CN113094656A (en)* | 2021-03-08 | 2021-07-09 | 海信集团控股股份有限公司 | Access control terminal device, server and method |
| CN114020195A (en)* | 2021-10-12 | 2022-02-08 | 武汉夜莺科技有限公司 | Method and device for processing dialect information and storage medium |
| CN114020195B (en)* | 2021-10-12 | 2024-04-26 | 武汉夜莺科技有限公司 | Method and device for processing speaking and operation information and storage medium |
| CN114666140A (en)* | 2022-03-25 | 2022-06-24 | 金蝶软件(中国)有限公司 | Method, device, computer equipment and medium for accessing form |
| CN114666140B (en)* | 2022-03-25 | 2024-03-19 | 金蝶软件(中国)有限公司 | Method, device, computer equipment and medium for accessing form |
| Publication number | Publication date |
|---|---|
| WO2018076865A1 (en) | 2018-05-03 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106534276A (en) | Data sharing method and device, mobile terminal | |
| US11838255B2 (en) | Mail processing method and apparatus, electronic device and storage medium | |
| WO2014108005A1 (en) | Co-verification method, two-dimensional code generation method, and device and system therefor | |
| JP2014519632A (en) | Customized launch of application | |
| CN104994098B (en) | Document transmission method and relevant apparatus and Transmission system | |
| US12167307B2 (en) | Delivery of configuration information for cross-platform application integration | |
| US20240104513A1 (en) | Schedule sharing method, apparatus, and device | |
| US20150142931A1 (en) | Systems and methods for content browsing, generation, and interaction | |
| WO2018128400A1 (en) | Method for sharing data and an electronic device thereof | |
| CN116244022A (en) | Comment processing method and device, electronic equipment and storage medium | |
| CN105141755A (en) | Information reply method, smart watch, terminal equipment and system | |
| CN112235412B (en) | Message processing method and device | |
| CN114153362A (en) | Information processing method and device | |
| US20170048292A1 (en) | Electronic device and method for providing content | |
| WO2024222596A1 (en) | Information processing method and apparatus, electronic device, and storage medium | |
| CN104301385A (en) | Data acquisition method, computing device, mobile device and system | |
| CN116226499B (en) | Information query method and device and electronic equipment | |
| CN108460128B (en) | Document management method and device, electronic device and readable storage medium | |
| CN111817944A (en) | Image sharing method, device and electronic device | |
| EP4351117A1 (en) | Information display method and apparatus, and electronic device | |
| CN106603384B (en) | A session control method, device and system based on instant messaging software | |
| CN106357522B (en) | Data sharing method and device | |
| CN118259999A (en) | Information display method, device, equipment and medium | |
| KR20160042399A (en) | Creating a contact list and pre-populated user accounts | |
| US20140215392A1 (en) | Connections identification |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170322 | |
| RJ01 | Rejection of invention patent application after publication |