技术领域technical field
本发明涉及网络技术领域,特别是涉及一种数据分享方法及装置。The present invention relates to the field of network technologies, and in particular, to a data sharing method and device.
背景技术Background technique
随着网络技术的不断发展,存储数据的方式已逐渐从硬件存储(如移动硬盘、U盘)转变为云端服务器存储。用户可以通过终端内安装的云端服务器的客户端随时随地地将终端数据存储在云端服务器中,用户也可以将云端服务器中的终端数据分享给其他用户。目前将云端服务器内的终端数据进行分享只能采用主动分享,也即持有数据的用户主动将相关数据分享给其他用户。With the continuous development of network technology, the way of storing data has gradually changed from hardware storage (such as mobile hard disk, U disk) to cloud server storage. The user can store the terminal data in the cloud server anytime and anywhere through the client of the cloud server installed in the terminal, and the user can also share the terminal data in the cloud server with other users. Currently, only active sharing can be used to share the terminal data in the cloud server, that is, the user who holds the data takes the initiative to share the relevant data with other users.
然而,当用户需要浏览或下载其他用户的用户数据时,该用户需要提前通过电话或短信等方式与其他用户沟通,再由其他用户通过主动分享的方式主动分享相关资料给该用户。因此,在用户主动索取其他用户数据的情况下,这种主动分享方式使得整个分享过程变得较为复杂,给用户索取其他用户数据带来不便。故,需进一步改进。However, when a user needs to browse or download other user's user data, the user needs to communicate with other users in advance by means of phone calls or text messages, and then other users actively share relevant information to the user through active sharing. Therefore, in the case where a user actively requests data of other users, this active sharing method makes the whole sharing process more complicated, which brings inconvenience to the user in requesting data of other users. Therefore, further improvement is required.
发明内容SUMMARY OF THE INVENTION
本发明提供一种数据分享方法及装置,以解决现有的主动分享方式给用户主动索取其他用户数据带来不便的技术问题。The present invention provides a data sharing method and device, so as to solve the technical problem that the existing active sharing method brings inconvenience for users to actively request data of other users.
本发明提供一种数据分享方法,其包括:The present invention provides a data sharing method, which includes:
获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;obtaining a request for requesting and sharing data sent by the first client, wherein the request for requesting and sharing data includes the first identity information of the second client and the request for prompt information;
根据所述第一身份信息发送所述索取提示信息至所述第二客户端;Send the request prompt information to the second client according to the first identity information;
接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;以及receiving the identification information of the data to be shared fed back by the second client according to the request prompt information; and
根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。A data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client.
本发明还提供一种数据分享装置,其包括:The present invention also provides a data sharing device, which includes:
获取单元,用于获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;an obtaining unit, configured to obtain a request for requesting and sharing data sent by the first client, wherein the request for requesting and sharing data includes the first identity information of the second client and the requesting prompt information;
发送单元,用于根据所述第一身份信息发送所述索取提示信息至所述第二客户端;a sending unit, configured to send the request prompt information to the second client according to the first identity information;
接收单元,用于接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;a receiving unit, configured to receive the identification information of the data to be shared fed back by the second client according to the requesting prompt information;
生成发送单元,用于根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。A generating and sending unit is configured to generate a data sharing link of the data to be shared according to the identification information, and send the data sharing link to the first client.
本发明实施例提供一种数据分享方法及装置。该数据分享方法通过获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;根据所述第一身份信息发送所述索取提示信息至所述第二客户端;接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;以及根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。在用户主动索取其他用户数据的情况下,该数据分享方法可以使得分享过程更加简单,可操作性更强。同时,用户不需要通过运行其他通信功能来获得用户数据,节省用户的时间。Embodiments of the present invention provide a data sharing method and apparatus. The data sharing method obtains a request for sharing data sent by a first client, wherein the request for requesting and sharing data includes the first identity information and request prompt information of the second client; the request is sent according to the first identity information. prompting information to the second client; receiving identification information of the data to be shared fed back by the second client according to the requesting prompt information; and generating a data sharing link of the data to be shared according to the identification information, and Send the data sharing link to the first client. In the case where a user actively requests data of other users, the data sharing method can make the sharing process simpler and more operable. At the same time, the user does not need to obtain user data by running other communication functions, which saves the user's time.
附图说明Description of drawings
图1为本发明数据分享系统的场景示意图。FIG. 1 is a schematic diagram of a scene of a data sharing system of the present invention.
图2为本发明数据分享方法的优选实施例的流程图。FIG. 2 is a flowchart of a preferred embodiment of the data sharing method of the present invention.
图3为本发明数据分享方法的优选实施例的又一流程图。FIG. 3 is another flowchart of a preferred embodiment of the data sharing method of the present invention.
图4为本发明数据分享装置的优选实施例的结构示意图。FIG. 4 is a schematic structural diagram of a preferred embodiment of the data sharing apparatus of the present invention.
图5为本发明数据分享装置的优选实施例的又一结构示意图。FIG. 5 is another schematic structural diagram of a preferred embodiment of the data sharing apparatus of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall 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 a first 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 "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
本发明实施例提供的数据分享系统主要包括终端以及云端服务器,该云端服务器与终端可通过有线或无线网络进行连接。The data sharing system provided by the embodiment of the present invention mainly includes a terminal and a cloud server, and the cloud server and the terminal can be connected through a wired or wireless network.
请参照图1,图1为本发明实施例提供的数据分享系统的场景示意图。该数据分享系统包括云端服务器和终端,其中,云端服务器集成有本发明提供的数据分享装置,云端服务器存储有大量用户的数据及其相对应的标识信息。本发明中的第一客户端和第二客户端安装在终端内,在此,终端可以为手机、平板电脑等电子设备。Please refer to FIG. 1 , which is a schematic diagram of a scenario of a data sharing system provided by an embodiment of the present invention. The data sharing system includes a cloud server and a terminal, wherein the cloud server integrates the data sharing device provided by the present invention, and the cloud server stores a large number of user data and corresponding identification information. The first client and the second client in the present invention are installed in a terminal, where the terminal may be an electronic device such as a mobile phone and a tablet computer.
当第一客户端需要浏览第二客户端的用户数据时,第一客户端先向云端服务器发送索取分享数据请求。云端服务器获取第一客户端发送的索取分享数据请求后,通过解析该索取分享数据请求获得第二客户端的第一身份信息和索取提示信息,并根据所述第二客户端的第一身份信息将索取提示信息发送至第二客户端。第二客户端根据索取提示信息获取待分享数据的标识信息,并将待分享数据的标识信息发送至云端服务器。云端服务器在接收到第二客户端根据索取提示信息反馈的待分享数据的标识信息后,根据待分享数据的标识信息生成待分享数据的数据分享链接,并将数据分享链接发送至第一客户端。从而使得第一客户端用户通过点击数据分享链接即可以浏览或下载所需的第二客户端的待分享数据。When the first client needs to browse the user data of the second client, the first client first sends a request for sharing data to the cloud server. After the cloud server obtains the request for sharing data sent by the first client, it obtains the first identity information and the request prompt information of the second client by parsing the request for requesting and sharing data, and according to the first identity information of the second client The prompt information is sent to the second client. The second client obtains the identification information of the data to be shared according to the request prompt information, and sends the identification information of the data to be shared to the cloud server. After receiving the identification information of the data to be shared fed back by the second client according to the request prompt information, the cloud server generates a data sharing link of the data to be shared according to the identification information of the data to be shared, and sends the data sharing link to the first client . Thereby, the user of the first client can browse or download the required data to be shared of the second client by clicking on the data sharing link.
本优选实施例提供一种数据分享方法,其包括:获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;根据所述第一身份信息发送所述索取提示信息至所述第二客户端;接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;以及根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。This preferred embodiment provides a data sharing method, which includes: acquiring a request for sharing data sent by a first client, wherein the request for requesting and sharing data includes the first identity information and request prompt information of the second client; The first identity information sends the request prompt information to the second client; receives the identification information of the data to be shared fed back by the second client according to the request prompt information; and generates the data according to the identification information data sharing link of the data to be shared, and sending the data sharing link to the first client.
请参照图2,图2为本发明的数据分享方法的优选实施例的流程图。该数据分享方法应用于云端服务器中,当然,在其他优选实施例中,该数据分享方法也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 2 , which is a flowchart of a preferred embodiment of the data sharing method of the present invention. The data sharing method is applied to the cloud server. Of course, in other preferred embodiments, the data sharing method can also be applied to other devices, which is not specifically limited here.
在步骤S101中,获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。In step S101, a request for requesting and sharing data sent by the first client is acquired, wherein the request for requesting and sharing data includes the first identity information of the second client and the requesting prompt information.
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。云端服务器将获取该索取分享数据请求。其中,该索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。在此需要说明的是,第一身份信息包括第二客户端的用户名、用户电话号码、注册邮箱等信息,在此不对第一身份信息的具体内容做限制。When the first client user needs to request the user data of the second client user, according to the operation of the first client user, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server . The cloud server will obtain the request for sharing data. Wherein, the request for obtaining and sharing data includes the first identity information of the second client and the requesting prompt information. It should be noted here that the first identity information includes information such as the user name, user phone number, and registered email address of the second client, and the specific content of the first identity information is not limited here.
在一优选实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端的第一身份信息和索取提示信息。例如,第一客户端用户在对话框的第二客户端身份信息栏内输入第二客户端的用户名;在索取提示信息栏内输入“旅游照片”。第一客户端用户点击确定按钮后,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。可以理解的是,该索取分享数据请求包括第二客户端的用户名和“旅游照片”信息。In a preferred embodiment, when the first client user needs to request the user data of the second client user, the first client user clicks the request and sharing portal in the first client page. The first client terminal will pop up a dialog box, prompting the user to input the first identity information of the second client terminal and ask for prompt information. For example, the user of the first client enters the user name of the second client in the second client identity information column of the dialog box; and enters "travel photos" in the request prompt information column. After the first client user clicks the OK button, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server. It can be understood that the request for obtaining and sharing data includes the user name of the second client and the information of "travel photo".
在步骤S102中,根据所述第一身份信息发送所述索取提示信息至所述第二客户端。In step S102, the claim prompt information is sent to the second client according to the first identity information.
当云端服务器接收到第一客户端发送的索取分享数据请求后,通过解析该索取分享数据请求来获取第二客户端的第一身份信息和索取提示信息。云端服务器将该索取提示信息发送至第一身份信息所对应的第二客户端中。例如,云端服务器通过解析获得第二客户端的用户名和“旅游照片”后,将“旅游照片”发送至该用户名所对应的第二客户端中,这样第二客户端用户可以知道第一客户端用户需要分享什么资料。After receiving the request for requesting and sharing data sent by the first client, the cloud server obtains the first identity information and requesting prompt information of the second client by parsing the request for requesting and sharing data. The cloud server sends the request prompt information to the second client corresponding to the first identity information. For example, after obtaining the user name and "travel photo" of the second client through analysis, the cloud server sends the "travel photo" to the second client corresponding to the user name, so that the user of the second client can know the user of the first client What information needs to be shared.
在步骤S103中,接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息。In step S103, the identification information of the data to be shared fed back by the second client according to the request prompt information is received.
当第二客户端接收到该索取提示信息后,第二客户端用户根据该索取提示信息来选择其在云端服务器内存储的相应用户数据的标识信息,即待分享数据的标识信息,并将待分享数据的标识信息发送至云端服务器。After the second client receives the request prompt information, the second client user selects the identification information of the corresponding user data stored in the cloud server according to the request prompt information, that is, the identification information of the data to be shared, and selects the identification information of the data to be shared. The identification information of the shared data is sent to the cloud server.
例如,当索取提示信息为“旅游照片”时,第二客户端用户将通过第二客户端查找其在云端服务器内存储的与旅游相关的照片或视频等资料,并将相关旅游资料的标识信息发送给云端服务器。在此需要说明的是,第二客户端用户在将其用户数据存储在云端服务器内时,每个用户数据均设置有标识信息,该标识信息可以由第二客户端用户设置,例如,为每张照片设置名称,或为一个文件夹名称等;也可以由云端服务器为其分配,例如为每张照片在云端服务器内存储地址。只要云端服务器可以根据该标识信息查找到相应的待分享数据即可,在此不做具体限制。For example, when the requested prompt information is "travel photos", the user of the second client will search for the travel-related photos or videos stored in the cloud server through the second client, and use the identification information of the relevant travel materials sent to the cloud server. It should be noted here that when the second client user stores their user data in the cloud server, each user data is set with identification information, and the identification information can be set by the second client user, for example, for each user data Set the name of a photo, or a folder name, etc.; it can also be assigned by the cloud server, for example, a storage address in the cloud server for each photo. As long as the cloud server can find the corresponding data to be shared according to the identification information, there is no specific limitation here.
在步骤S104中,根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。In step S104, a data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client.
在云端服务器接收到待分享数据的标识信息后,云端服务器将根据该标识信息生成待分享数据的数据分享链接,并将该数据分享链接发送至第一客户端,使得第一客户端接收到该数据分享链接后,第一客户端用户通过点击该数据分享链接即可以浏览或下载待分享数据。After the cloud server receives the identification information of the data to be shared, the cloud server will generate a data sharing link of the data to be shared according to the identification information, and send the data sharing link to the first client, so that the first client receives the data sharing link. After the data sharing link, the first client user can browse or download the data to be shared by clicking the data sharing link.
一优选实施例中的数据分享方法,通过获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;根据所述第一身份信息发送所述索取提示信息至所述第二客户端;接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;以及根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。在用户主动索取其他用户数据的情况下,该数据分享方法可以使得分享过程更加简单,可操作性更强。同时,也不再需要用户通过电话等其他通信方式提前与其他用户沟通来获得用户数据,节省用户的时间。In a data sharing method in a preferred embodiment, a request for requesting and sharing data sent by a first client is obtained, wherein the request for requesting and sharing data includes the first identity information and requesting prompt information of the second client; according to the first The identity information sends the request prompt information to the second client; receives the identification information of the data to be shared fed back by the second client according to the request prompt information; and generates the data to be shared according to the identification information and send the data sharing link to the first client. In the case where a user actively requests data of other users, the data sharing method can make the sharing process simpler and more operable. At the same time, users are no longer required to communicate with other users in advance through other communication methods such as telephones to obtain user data, which saves users' time.
请参照图3,图3为本发明的数据分享方法的优选实施例的又一流程图。该数据分享方法应用于云端服务器中,当然,在其他优选实施例中,该数据分享方法也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 3 , which is another flowchart of a preferred embodiment of the data sharing method of the present invention. The data sharing method is applied to the cloud server. Of course, in other preferred embodiments, the data sharing method can also be applied to other devices, which is not specifically limited here.
一优选实施例中的数据分享方法包括:The data sharing method in a preferred embodiment includes:
步骤S201:获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;Step S201: Obtain a request for requesting and sharing data sent by a first client, wherein the request for requesting and sharing data includes first identity information and requesting prompt information of the second client;
步骤S202:根据所述第一身份信息判断是否存在第二客户端注册信息,若存在所述第二客户端注册信息,则执行步骤S203,若不存在所述第二客户端注册信息,则执行步骤S204;Step S202: Determine whether there is the second client registration information according to the first identity information, if the second client registration information exists, execute step S203, if the second client registration information does not exist, execute Step S204;
步骤S203:判断所述第一身份信息是否对应唯一的所述第二客户端,若所述第一身份信息对应唯一的所述第二客户端,则执行步骤S205,若所述第一身份信息不对应唯一的所述第二客户端,则执行步骤S208;Step S203: Determine whether the first identity information corresponds to the unique second client, if the first identity information corresponds to the unique second client, perform step S205, if the first identity information corresponds to the unique second client, step S205 is executed. does not correspond to the unique second client, execute step S208;
步骤S204:发送所述第一身份信息不存在的第一提示信息至所述第一客户端;Step S204: sending first prompt information that the first identity information does not exist to the first client;
步骤S205:根据第一身份信息发送索取提示信息至所述第二客户端;Step S205: sending request prompt information to the second client according to the first identity information;
步骤S206:接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;Step S206: receiving the identification information of the data to be shared fed back by the second client according to the requesting prompt information;
步骤S207:根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端;Step S207: generating a data sharing link of the data to be shared according to the identification information, and sending the data sharing link to the first client;
步骤S208:向所述第一客户端发送获取第二客户端的第二身份信息的第二提示信息;Step S208: sending second prompt information for obtaining the second identity information of the second client to the first client;
步骤S209:获取所述第一客户端根据所述第二提示信息反馈的第二身份信息;Step S209: acquiring second identity information fed back by the first client according to the second prompt information;
步骤S210:根据所述第一身份信息和第二身份信息确定唯一的所述第二客户端,并发送所述索取提示信息至唯一的所述第二客户端,并返回执行步骤 S206和步骤S207。Step S210: Determine the unique second client according to the first identity information and the second identity information, send the request prompt information to the unique second client, and return to perform steps S206 and S207 .
下面将结合图3对上述数据分享方法进行详细地介绍。The above data sharing method will be described in detail below with reference to FIG. 3 .
在步骤S201中,获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。In step S201, a request for requesting and sharing data sent by the first client is obtained, wherein the request for requesting and sharing data includes the first identity information of the second client and the requesting prompt information.
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器,其中,该索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。在此需要说明的是,第一身份信息包括第二客户端的用户名、用户电话号码、注册邮箱等信息,在此不对第一身份信息的具体内容做限制。When the first client user needs to request the user data of the second client user, according to the operation of the first client user, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server , wherein the request for obtaining and sharing data includes the first identity information of the second client and the requesting prompt information. It should be noted here that the first identity information includes information such as the user name, user phone number, and registered email address of the second client, and the specific content of the first identity information is not limited here.
在一优选实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端的第一身份信息和索取提示信息。例如,第一客户端用户在对话框的第二客户端身份信息栏内输入第二客户端的用户名;在索取提示信息栏内输入“旅游照片”。第一客户端用户点击确定按钮后,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。可以理解的是,该索取分享数据请求包括第二客户端的用户名和“旅游照片”信息。In a preferred embodiment, when the first client user needs to request the user data of the second client user, the first client user clicks the request and sharing portal in the first client page. The first client terminal will pop up a dialog box, prompting the user to input the first identity information of the second client terminal and ask for prompt information. For example, the user of the first client enters the user name of the second client in the second client identity information column of the dialog box; and enters "travel photos" in the request prompt information column. After the first client user clicks the OK button, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server. It can be understood that the request for obtaining and sharing data includes the user name of the second client and the information of "travel photo".
在步骤S202中,根据所述第一身份信息判断是否存在第二客户端注册信息;In step S202, determine whether there is second client registration information according to the first identity information;
当云端服务器接收到第一客户端发送的索取分享数据请求后,通过解析该索取分享数据请求来获取第二客户端的第一身份信息和索取提示信息,并根据所述第一身份信息判断是否存在第二客户端注册信息。具体地,判断云端服务器内存储的多个客户端注册信息中是否存在所述第一身份信息。若云端服务器判断出其内存储的客户端注册信息中不存在该第一身份信息,则判定不存在与该第一身份信息相对应的第二客户端注册信息。此时云端服务器将向第一客户端发送第一提示信息,该第一提示信息用于提示第一客户端该第一身份信息不存在,即执行步骤S204。在此情况下,第一客户端可以重新输入第二客户端的身份信息。When the cloud server receives the request for sharing data sent by the first client, it obtains the first identity information and the request prompt information of the second client by parsing the request for requesting and sharing data, and judges whether there is a data request according to the first identity information. The second client registration information. Specifically, it is determined whether the first identity information exists in the multiple client registration information stored in the cloud server. If the cloud server determines that the first identity information does not exist in the client registration information stored in the cloud server, it determines that the second client registration information corresponding to the first identity information does not exist. At this time, the cloud server will send the first prompt information to the first client, where the first prompt information is used to prompt the first client that the first identity information does not exist, that is, step S204 is performed. In this case, the first client can re-enter the identity information of the second client.
若云端服务器判断出其内存储的客户端注册信息中存在该第一身份信息,则判定存在与该第一身份信息相对应的第二客户端注册信息。此时云端服务器将执行步骤S203。If the cloud server determines that the first identity information exists in the client registration information stored in the cloud server, it determines that there is second client registration information corresponding to the first identity information. At this time, the cloud server will execute step S203.
在步骤S203中,判断所述第一身份信息是否对应唯一的所述第二客户端。In step S203, it is determined whether the first identity information corresponds to the unique second client.
在实际应用中,有些用户名对应了多个客户端,即多个客户端用户在注册时设置了相同的用户名,而其他的用户手机号码、注册邮箱等注册信息则不同。若此时第一客户端用户输入的第二客户端的第一身份信息恰为第二客户端的用户名时,云端服务器将根据该用户名寻找到多个第二客户端。为了云端服务器可以将索取提示信息发送到正确的第二客户端,云端服务器需要进一步判断第一身份信息是否对应唯一的第二客户端。In practical applications, some user names correspond to multiple clients, that is, multiple client users set the same user name during registration, while other users have different registration information such as mobile phone numbers and registered email addresses. If the first identity information of the second client input by the first client user is exactly the username of the second client, the cloud server will find multiple second clients according to the username. In order for the cloud server to send the request prompt information to the correct second client, the cloud server needs to further determine whether the first identity information corresponds to a unique second client.
在步骤S203中,若云端服务器判断出该第一身份信息对应唯一的第二客户端,则根据该第一身份信息发送索取提示信息至第二客户端,即执行步骤S205。In step S203, if the cloud server determines that the first identity information corresponds to a unique second client, it sends the request prompt information to the second client according to the first identity information, ie, step S205 is executed.
在步骤S205中,例如,云端服务器通过解析获得第二客户端的用户名和“旅游照片”后,将“旅游照片”这一索取提示信息发送至该用户名所对应的第二客户端中,这样第二客户端用户可以知道第一客户端用户需要分享什么资料。In step S205, for example, after the cloud server obtains the user name and "travel photo" of the second client through analysis, it sends the request prompt information of "travel photo" to the second client corresponding to the username, so that the second client The client user can know what data the first client user needs to share.
在步骤S206中,接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息。In step S206, the identification information of the data to be shared fed back by the second client according to the request prompt information is received.
当第二客户端接收到该索取提示信息后,第二客户端用户根据该索取提示信息来选择其在云端服务器内存储的相应用户数据的标识信息,即待分享数据的标识信息,并将待分享数据的标识信息发送至云端服务器。例如,当索取提示信息为“旅游照片”时,第二客户端用户将通过第二客户端查找其在云端服务器内存储的与旅游相关的照片或视频等资料,并将相关旅游资料的标识信息发送给云端服务器。在此需要说明的是,第二客户端用户在将其用户数据存储在云端服务器内时,每个用户数据均设置有标识信息,该标识信息可以由第二客户端用户设置,例如,为每张照片设置名称,或为一个文件夹名称等;也可以由云端服务器为其分配,例如为每张照片在云端服务器内存储地址。只要云端服务器可以根据该标识信息查找到相应的待分享数据即可,在此不做具体限制。After the second client receives the request prompt information, the second client user selects the identification information of the corresponding user data stored in the cloud server according to the request prompt information, that is, the identification information of the data to be shared, and selects the identification information of the data to be shared. The identification information of the shared data is sent to the cloud server. For example, when the requested prompt information is "travel photos", the user of the second client will search for the travel-related photos or videos stored in the cloud server through the second client, and use the identification information of the relevant travel materials sent to the cloud server. It should be noted here that when the second client user stores their user data in the cloud server, each user data is set with identification information, and the identification information can be set by the second client user, for example, for each user data Set the name of a photo, or a folder name, etc.; it can also be assigned by the cloud server, for example, a storage address in the cloud server for each photo. As long as the cloud server can find the corresponding data to be shared according to the identification information, there is no specific limitation here.
在步骤S207中,根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。In step S207, a data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client.
在云端服务器接收到待分享数据的标识信息后,云端服务器将根据该标识信息生成待分享数据的数据分享链接,并将该数据分享链接发送至第一客户端,使得第一客户端接收到该数据分享链接后,第一客户端用户通过点击该数据分享链接即可以浏览或下载待分享数据。After the cloud server receives the identification information of the data to be shared, the cloud server will generate a data sharing link of the data to be shared according to the identification information, and send the data sharing link to the first client, so that the first client receives the data sharing link. After the data sharing link, the first client user can browse or download the data to be shared by clicking the data sharing link.
可以理解的是,上述情况是在第一身份信息对应唯一的第二客户端的情况下的数据分享方法。若在步骤S203中,云端服务器判断出该第一身份信息不对应唯一的第二客户端时,则云端服务器向第一客户端发送获取第二客户端的第二身份信息的第二提示信息,即执行步骤S208。It can be understood that the above situation is a data sharing method in the case that the first identity information corresponds to a unique second client. If in step S203, the cloud server determines that the first identity information does not correspond to the unique second client, the cloud server sends the second prompt information for obtaining the second identity information of the second client to the first client, that is Step S208 is executed.
在步骤S208中,当云端服务器根据该第一身份信息无法唯一确定第二客户端时,云端服务器发送第二提示信息至第一客户端,第二提示信息用于提示第一客户端输入第二客户端的第二身份信息。In step S208, when the cloud server cannot uniquely determine the second client according to the first identity information, the cloud server sends second prompt information to the first client, and the second prompt information is used to prompt the first client to input the second The second identity information of the client.
在一优选实施例中,第二提示信息提示第一客户端用户输入云端服务器指定的身份信息。例如,第二提示信息提示第一客户端用户输入第二客户端的注册邮箱。当然,在其他优选实施例中,第二提示信息也可以提示第一客户端用户输入第二客户端的任意注册身份信息,即此时云端服务器不再指定第一客户端用户输入的身份信息种类,在此不做具体限制。In a preferred embodiment, the second prompt information prompts the first client user to input the identity information specified by the cloud server. For example, the second prompt information prompts the user of the first client to input the registered mailbox of the second client. Of course, in other preferred embodiments, the second prompt information may also prompt the first client user to input any registered identity information of the second client, that is, at this time, the cloud server no longer specifies the type of identity information input by the first client user, There is no specific restriction here.
在步骤S209中,获取所述第一客户端根据所述第二提示信息反馈的第二身份信息。In step S209, the second identity information fed back by the first client according to the second prompt information is obtained.
第一客户端获取到第二提示信息后,第一客户端将弹出一个重新输入对话框。第一客户端用户在该重新输入对话框的相应位置输入第二客户端的第二身份信息,例如第二客户端的注册邮箱,并点击确认按钮。第一客户端将发送该第二客户端的第二身份信息至云端服务器,云端服务器将获取到该第二身份信息。After the first client obtains the second prompt information, the first client will pop up a re-input dialog box. The user of the first client inputs the second identity information of the second client, such as the registered email address of the second client, in the corresponding position of the re-input dialog box, and clicks the confirmation button. The first client will send the second identity information of the second client to the cloud server, and the cloud server will obtain the second identity information.
在步骤S210中,根据所述第一身份信息和第二身份信息确定唯一的所述第二客户端,并发送所述索取提示信息至唯一的所述第二客户端,并返回执行步骤S206和步骤S207。In step S210, determine the unique second client according to the first identity information and the second identity information, send the request prompt information to the unique second client, and return to perform steps S206 and S206 and Step S207.
云端服务器获取到第二身份信息后,将根据第一身份信息和第二身份信息确定唯一的第二客户端。例如,根据第二客户端的用户名和注册邮箱来唯一确定第二客户端。当云端服务器确定唯一的第二客户端后,将第一客户端发送的索取提示信息发送至唯一的第二客户端,并跳转至执行步骤S206和步骤 S207。After acquiring the second identity information, the cloud server will determine the unique second client according to the first identity information and the second identity information. For example, the second client is uniquely determined according to the user name and registered email address of the second client. After the cloud server determines the unique second client, it sends the request prompt information sent by the first client to the unique second client, and jumps to step S206 and step S207.
为了更加清晰地解释说明上述优选实施例中的数据分享方法,下面将结合具体的应用场景来说明。In order to explain the data sharing method in the above preferred embodiment more clearly, the following description will be given with reference to specific application scenarios.
在该应用场景中,第一客户端和第二客户端分别安装在两部手机中。当第一用户需要获取第二用户的用户数据时,第一用户在手机中登陆第一客户端,并点击第一客户端页面内的索取分享入口。在弹出的对话框的第二客户端身份信息栏中输入第二用户的手机号码,以及在对话框的索取分享信息栏中输入“会议资料”,点击确认按钮。此时,第一客户端将生成一个索取分享数据请求,并发送该索取分享数据请求至云端服务器,其中,该索取分享数据请求包括第二客户端的电话号码和“会议资料”。In this application scenario, the first client and the second client are installed in two mobile phones respectively. When the first user needs to obtain the user data of the second user, the first user logs in the first client on the mobile phone, and clicks the request for sharing entry on the page of the first client. Enter the mobile phone number of the second user in the second client identity information column of the pop-up dialog box, and enter "conference information" in the request sharing information column of the dialog box, and click the OK button. At this time, the first client will generate a request for sharing data, and send the request for requesting and sharing data to the cloud server, wherein the request for requesting and sharing data includes the phone number of the second client and "conference information".
云端服务器接收到该索取分享数据请求后,将通过解析该索取分享数据请求来获取第二客户端的电话号码和“会议资料”。After receiving the request for requesting and sharing data, the cloud server will obtain the phone number and "conference information" of the second client by parsing the request for requesting and sharing data.
首先,云端服务器判断其内存储的客户端注册信息中是否存在该电话号码。若云端服务器判断出其存储的客户端注册信息中存在该电话号码,则说明该电话号码所对应的用户已经注册了云端服务器的客户端。First, the cloud server determines whether the phone number exists in the client registration information stored in the cloud server. If the cloud server determines that the phone number exists in the stored client registration information, it means that the user corresponding to the phone number has registered the client of the cloud server.
其次,云端服务器将进一步判断该电话号码是否对应唯一的第二客户端,若是,则云端服务器将“会议资料”发送至该电话号码所对应的第二客户端。Secondly, the cloud server will further determine whether the phone number corresponds to the unique second client, and if so, the cloud server will send the "conference data" to the second client corresponding to the phone number.
第二用户通过登陆第二客户端来查看云端服务器发送的信息。当第二用户看到“会议资料”信息后,将通过第二客户端选择相关资料的标识信息,即待分享数据的标识信息,点击确认按钮后,第二客户端将该标识信息发送至云端服务器。The second user logs in to the second client to view the information sent by the cloud server. When the second user sees the "meeting materials" information, he will select the identification information of the relevant material through the second client, that is, the identification information of the data to be shared. After clicking the confirm button, the second client will send the identification information to the cloud. server.
云端服务器根据该标识信息生成待分享数据的数据分享链接,并将该数据分享链接发送至第一客户端,这样第一用户就可以通过点击数据分享链接来获取其所需要浏览或下载的“会议资料”数据信息。The cloud server generates a data sharing link of the data to be shared according to the identification information, and sends the data sharing link to the first client, so that the first user can click on the data sharing link to obtain the "meetings" that he needs to browse or download. data" data information.
上述应用场景仅仅是为了进一步说明上述优选实施例中的数据分享方法,不能用于限制上述优选实施例中数据分享方法的适用范围。The above application scenarios are only to further illustrate the data sharing method in the above preferred embodiment, and cannot be used to limit the scope of application of the data sharing method in the above preferred embodiment.
一优选实施例中的数据分享方法,通过获取第一客户端发送的索取分享数据请求,其中索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;根据第一身份信息判断是否存在第二客户端注册信息,若存在第二客户端注册信息,则进一步判断该第一身份信息是否对应唯一的第二客户端,若对应唯一的第二客户端,则根据第一身份信息发送索取提示信息至第二客户端;接收第二客户端根据索取提示信息反馈的待分享数据的标识信息;根据该标识信息生成待分享数据的数据分享链接,并发送该数据分享链接至第一客户端。在用户主动索取其他用户数据的情况下,该数据分享方法可以使得分享过程更加简单,可操作性更强。同时,也不再需要用户通过电话等其他通信方式提前与其他用户沟通来获得用户数据,节省用户的时间。另外,通过两步判断来提高云端服务器对第二客户端查找的准确率,提高分享数据的安全性和可靠性。In a data sharing method in a preferred embodiment, the request for requesting and sharing data sent by the first client is obtained, wherein the request for requesting and sharing data includes the first identity information of the second client and the requesting prompt information; according to the first identity information, it is determined whether there is Second client registration information, if there is second client registration information, further determine whether the first identity information corresponds to a unique second client, if it corresponds to a unique second client, send a request according to the first identity information The prompt information is sent to the second client; the identification information of the data to be shared fed back by the second client according to the prompt information is received; the data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client . In the case where a user actively requests data of other users, the data sharing method can make the sharing process simpler and more operable. At the same time, users are no longer required to communicate with other users in advance through other communication methods such as telephones to obtain user data, which saves users' time. In addition, the two-step judgment is used to improve the accuracy of the cloud server's search for the second client, and to improve the security and reliability of the shared data.
请参照图4,图4为本发明数据分享装置的优选实施例的结构示意图。该数据分享装置300应用于云端服务器中,当然,在其他实施例中,该数据分享装置300也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 4 , which is a schematic structural diagram of a preferred embodiment of the data sharing apparatus of the present invention. The data sharing apparatus 300 is applied to the cloud server. Of course, in other embodiments, the data sharing apparatus 300 may also be applied to other devices, which is not limited herein.
一优选实施例中的数据分享装置300包括获取单元310、发送单元320、接收单元330和生成发送单元340。其中,获取单元310用于获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;发送单元320用于根据所述第一身份信息发送所述索取提示信息至所述第二客户端;接收单元330用于接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;生成发送单元340用于根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。The data sharing apparatus 300 in a preferred embodiment includes an acquiring unit 310 , a sending unit 320 , a receiving unit 330 and a generating and sending unit 340 . Wherein, the obtaining unit 310 is configured to obtain the request for obtaining and sharing data sent by the first client, wherein the request for obtaining and sharing data includes the first identity information of the second client and the obtaining prompt information; the sending unit 320 is configured to obtain the data according to the first An identity information sends the request prompt information to the second client; the receiving unit 330 is configured to receive the identification information of the data to be shared fed back by the second client according to the request prompt information; the generating and sending unit 340 is used for A data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client.
下面将结合图4对上述数据分享装置300做详细地说明。The above data sharing apparatus 300 will be described in detail below with reference to FIG. 4 .
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。云端服务器内的获取单元310将获取第一客户端发送的索取分享数据请求。其中,该索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。在此需要说明的是,第一身份信息包括第二客户端的用户名、用户电话号码、注册邮箱等信息,在此不对第一身份信息的具体内容做限制。When the first client user needs to request the user data of the second client user, according to the operation of the first client user, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server . The obtaining unit 310 in the cloud server will obtain the request for sharing data sent by the first client. Wherein, the request for obtaining and sharing data includes the first identity information of the second client and the requesting prompt information. It should be noted here that the first identity information includes information such as the user name, user phone number, and registered email address of the second client, and the specific content of the first identity information is not limited here.
在一优选实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端的第一身份信息和索取提示信息。例如,第一客户端用户在对话框的第二客户端身份信息栏内输入第二客户端的用户名;在索取提示信息栏内输入“旅游照片”。第一客户端用户点击确定按钮后,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。云端服务器内的获取单元310将获取该索取分享数据请求。可以理解的是,该索取分享数据请求包括第二客户端的用户名和“旅游照片”信息。In a preferred embodiment, when the first client user needs to request the user data of the second client user, the first client user clicks the request and sharing portal in the first client page. The first client terminal will pop up a dialog box, prompting the user to input the first identity information of the second client terminal and ask for prompt information. For example, the user of the first client enters the user name of the second client in the second client identity information column of the dialog box; and enters "travel photos" in the request prompt information column. After the first client user clicks the OK button, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server. The obtaining unit 310 in the cloud server will obtain the request for obtaining and sharing data. It can be understood that the request for obtaining and sharing data includes the user name of the second client and the information of "travel photo".
当获取单元310接收到第一客户端发送的索取分享数据请求后,通过解析该索取分享数据请求来获取第二客户端的第一身份信息和索取提示信息,并将该第一身份信息和索取提示信息发送至发送单元320。发送单元320将该索取提示信息发送至该第一身份信息所对应的第二客户端中。After the obtaining unit 310 receives the request for requesting and sharing data sent by the first client, it obtains the first identity information and the requesting prompt information of the second client by parsing the requesting and sharing data, and converts the first identity information and the requesting prompt The information is sent to the sending unit 320 . The sending unit 320 sends the request prompt information to the second client corresponding to the first identity information.
例如,获取单元310将解析获得的第二客户端的用户名和“旅游照片”发送至发送单元320后,发送单元320将“旅游照片”发送至该用户名所对应的第二客户端中,这样第二客户端用户可以知道第一客户端用户需要分享什么资料。For example, after the obtaining unit 310 sends the user name and “travel photo” of the second client obtained by analysis to the sending unit 320, the sending unit 320 sends the “travel photo” to the second client corresponding to the user name, so that the second client The client user can know what data the first client user needs to share.
当第二客户端接收到该索取提示信息后,第二客户端用户根据该索取提示信息来选择其在云端服务器内存储的相应用户数据的标识信息,即待分享数据的标识信息,并将待分享数据的标识信息发送至云端服务器,云端服务器内的接收单元330将接收第二客户端根据索取提示信息反馈的待分享数据的标识信息。After the second client receives the request prompt information, the second client user selects the identification information of the corresponding user data stored in the cloud server according to the request prompt information, that is, the identification information of the data to be shared, and selects the identification information of the data to be shared. The identification information of the shared data is sent to the cloud server, and the receiving unit 330 in the cloud server will receive the identification information of the data to be shared fed back by the second client according to the request prompt information.
例如,当索取提示信息为“旅游照片”时,第二客户端用户将通过第二客户端查找其在云端服务器内存储的与旅游相关的照片或视频等资料,并将相关旅游资料的标识信息发送给云端服务器,接收单元330将接收该相关旅游资料的标识信息。在此需要说明的是,第二客户端用户在将其用户数据存储在云端服务器内时,每个用户数据均设置有标识信息,该标识信息可以由第二客户端用户设置,例如,为每张照片设置名称,或为一个文件夹名称等;也可以由云端服务器为其分配,例如为每张照片在云端服务器内存储地址。只要云端服务器可以根据该标识信息查找到相应的待分享数据即可,在此不做具体限制。For example, when the requested prompt information is "travel photos", the user of the second client will search for the travel-related photos or videos stored in the cloud server through the second client, and use the identification information of the relevant travel materials It is sent to the cloud server, and the receiving unit 330 will receive the identification information of the relevant travel materials. It should be noted here that when the second client user stores their user data in the cloud server, each user data is set with identification information, and the identification information can be set by the second client user, for example, for each user data Set the name of a photo, or a folder name, etc.; it can also be assigned by the cloud server, for example, a storage address in the cloud server for each photo. As long as the cloud server can find the corresponding data to be shared according to the identification information, there is no specific limitation here.
在接收单元330接收到待分享数据的标识信息后,将待分享数据的标识信息传递至生成发送单元340。生成发送单元340将根据该标识信息生成待分享数据的数据分享链接,并将该数据分享链接发送至第一客户端,使得第一客户端接收到该数据分享链接后,第一客户端用户通过点击该数据分享链接即可以浏览或下载待分享数据。After receiving the identification information of the data to be shared, the receiving unit 330 transmits the identification information of the data to be shared to the generating and sending unit 340 . The generating and sending unit 340 will generate a data sharing link of the data to be shared according to the identification information, and send the data sharing link to the first client, so that after the first client receives the data sharing link, the user of the first client passes the link. Click the data sharing link to browse or download the data to be shared.
一优选实施例中的数据分享装置300,通过获取单元310获取第一客户端发送的索取分享数据请求,其中,所述索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;发送单元320根据所述第一身份信息发送所述索取提示信息至所述第二客户端;接收单元330接收所述第二客户端根据所述索取提示信息反馈的待分享数据的标识信息;生成发送单元340根据所述标识信息生成所述待分享数据的数据分享链接,并将所述数据分享链接发送至所述第一客户端。在用户主动索取其他用户数据的情况下,该数据分享装置300可以使得分享过程更加简单,可操作性更强。同时,也不再需要用户通过电话等其他通信方式提前与其他用户沟通来获得用户数据,节省用户的时间。The data sharing device 300 in a preferred embodiment obtains a request for sharing data sent by the first client through the obtaining unit 310, wherein the request for obtaining and sharing data includes the first identity information and the request prompt information of the second client; sending The unit 320 sends the request prompt information to the second client according to the first identity information; the receiving unit 330 receives the identification information of the data to be shared fed back by the second client according to the request prompt information; generates and sends The unit 340 generates a data sharing link of the data to be shared according to the identification information, and sends the data sharing link to the first client. In the case that the user actively requests other user data, the data sharing apparatus 300 can make the sharing process simpler and more operable. At the same time, users are no longer required to communicate with other users in advance through other communication methods such as telephones to obtain user data, which saves users' time.
请参照图5,图5为本发明数据分享装置的优选实施例的又一结构示意图。该数据分享装置400应用于云端服务器中,当然,在其他优选实施例中,该数据分享装置400也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 5 , which is another schematic structural diagram of a preferred embodiment of the data sharing apparatus of the present invention. The data sharing apparatus 400 is applied to the cloud server. Of course, in other preferred embodiments, the data sharing apparatus 400 may also be applied to other devices, which is not limited herein.
一优选实施例中的数据分享装置400包括获取单元410、判断单元420、发送单元430、接收单元440和生成发送单元450,其中,发送单元430包括判断子单元431、第一发送子单元432、第二发送子单元433、获取子单元434、确定发送子单元435和存储子单元436。The data sharing device 400 in a preferred embodiment includes an acquisition unit 410, a determination unit 420, a transmission unit 430, a reception unit 440, and a generation and transmission unit 450, wherein the transmission unit 430 includes a determination subunit 431, a first transmission subunit 432, The second sending subunit 433 , the obtaining subunit 434 , the determining sending subunit 435 and the storing subunit 436 .
下面将结合图5对上述数据分享装置400进行详细地介绍。The above data sharing apparatus 400 will be described in detail below with reference to FIG. 5 .
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。云端服务器内的获取单元410将获取第一客户端发送的索取分享数据请求。其中,该索取分享数据请求包括第二客户端的第一身份信息和索取提示信息。在此需要说明的是,第一身份信息包括第二客户端的用户名、用户电话号码、注册邮箱等信息,在此不对第一身份信息的具体内容做限制。When the first client user needs to request the user data of the second client user, according to the operation of the first client user, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server . The obtaining unit 410 in the cloud server will obtain the request for requesting and sharing data sent by the first client. Wherein, the request for obtaining and sharing data includes the first identity information of the second client and the requesting prompt information. It should be noted here that the first identity information includes information such as the user name, user phone number, and registered email address of the second client, and the specific content of the first identity information is not limited here.
在一优选实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端的第一身份信息和索取提示信息。例如,第一客户端用户在对话框的第二客户端身份信息栏内输入第二客户端的用户名;在索取提示信息栏内输入“旅游照片”。第一客户端用户点击确定按钮后,第一客户端将生成一个索取分享数据请求,并将该索取分享数据请求发送至云端服务器。云端服务器内的获取单元410将获取到该索取分享数据请求。可以理解的是,该索取分享数据请求包括第二客户端的用户名和“旅游照片”信息。In a preferred embodiment, when the first client user needs to request the user data of the second client user, the first client user clicks the request and sharing portal in the first client page. The first client terminal will pop up a dialog box, prompting the user to input the first identity information of the second client terminal and ask for prompt information. For example, the user of the first client enters the user name of the second client in the second client identity information column of the dialog box; and enters "travel photos" in the request prompt information column. After the first client user clicks the OK button, the first client will generate a request for requesting and sharing data, and send the request for requesting and sharing data to the cloud server. The obtaining unit 410 in the cloud server will obtain the request for obtaining and sharing data. It can be understood that the request for obtaining and sharing data includes the user name of the second client and the information of "travel photo".
当获取单元410接收到第一客户端发送的索取分享数据请求后,通过解析该索取分享数据请求来获取第二客户端的第一身份信息和索取提示信息,并将该第一身份信息和索取提示信息传递至判断单元420。判断单元420将根据所述第一身份信息判断是否存在第二客户端注册信息。具体地,判断单元420判断云端服务器内存储的多个客户端注册信息中是否存在所述第一身份信息。若判断单元420判断出其内存储的客户端注册信息中不存在该第一身份信息,则判定不存在与该第一身份信息相对应的第二客户端注册信息。此时判断单元 420将向第一客户端发送第一提示信息,该第一提示信息用于提示第一客户端该第一身份信息不存在。在此情况下,第一客户端可以重新输入第二客户端的身份信息。When the obtaining unit 410 receives the request for requesting and sharing data sent by the first client, it obtains the first identity information and the requesting prompt information of the second client by parsing the requesting and sharing data, and converts the first identity information and the requesting prompt The information is passed to the judgment unit 420 . The judging unit 420 will judge whether there is second client registration information according to the first identity information. Specifically, the judging unit 420 judges whether the first identity information exists in the multiple client registration information stored in the cloud server. If the determining unit 420 determines that the first identity information does not exist in the client registration information stored therein, it is determined that the second client registration information corresponding to the first identity information does not exist. At this time, the determining unit 420 will send the first prompt information to the first client, where the first prompt information is used to prompt the first client that the first identity information does not exist. In this case, the first client can re-enter the identity information of the second client.
若判断单元420判断出云端服务器内存储的客户端注册信息中存在该第一身份信息,则判定存在与该第一身份信息相对应的第二客户端注册信息。此时判断单元420将该第二客户端的第一身份信息和索取提示信息传递至发送单元 430的存储子单元436内,由存储子单元436存储该第二客户端的第一身份信息和索取提示信息。同时,判断单元420向判断子单元431发送第一信号,使得判断子单元431根据该第一信号从存储子单元436中读取该第二客户端的第一身份信息,并判断该第一身份信息是否对应唯一的第二客户端。If the determining unit 420 determines that the first identity information exists in the client registration information stored in the cloud server, it determines that there is second client registration information corresponding to the first identity information. At this time, the judgment unit 420 transfers the first identity information and the request prompt information of the second client to the storage subunit 436 of the sending unit 430, and the storage subunit 436 stores the first identity information and the request prompt information of the second client . At the same time, the judging unit 420 sends a first signal to the judging sub-unit 431, so that the judging sub-unit 431 reads the first identity information of the second client from the storage sub-unit 436 according to the first signal, and judges the first identity information Whether it corresponds to the only second client.
在实际应用中,有些用户名对应了多个客户端,即多个客户端用户在注册时设置了相同的用户名,而其他的用户手机号码、注册邮箱等注册信息则不同。若此时第一客户端用户输入的第二客户端的第一身份信息恰为第二客户端的用户名时,云端服务器将根据该用户名寻找到多个第二客户端。为了发送单元430 可以将索取提示信息发送到正确的第二客户端,判断子单元431需要通过判断第一身份信息是否对应唯一的第二客户端来找到正确的第二客户端。In practical applications, some user names correspond to multiple clients, that is, multiple client users set the same user name during registration, while other users have different registration information such as mobile phone numbers and registered email addresses. If the first identity information of the second client input by the first client user is exactly the username of the second client, the cloud server will find multiple second clients according to the username. In order for the sending unit 430 to send the request prompt information to the correct second client, the judging subunit 431 needs to find the correct second client by judging whether the first identity information corresponds to a unique second client.
当判断子单元431判断出该第一身份信息对应唯一的第二客户端,判断子单元431将向第一发送子单元432发送第二信号,使得第一发送子单元432根据该第二信号从存储子单元436中读取该第一身份信息和索取提示信息,并根据该第一身份信息发送索取提示信息至第二客户端。When the judging subunit 431 judges that the first identity information corresponds to the only second client, the judging subunit 431 will send the second signal to the first sending subunit 432, so that the first sending subunit 432 sends the The storage subunit 436 reads the first identity information and the request prompt information, and sends the request prompt information to the second client according to the first identity information.
当判断子单元431判断出该第一身份信息不对应唯一的第二客户端,判断子单元431将向第二发送子单元433发送第三信号,使得第二发送子单元433 根据该第三信号向第一客户端发送获取第二客户端的第二身份信息的第二提示信息。When the judging subunit 431 judges that the first identity information does not correspond to the unique second client, the judging subunit 431 will send a third signal to the second sending subunit 433, so that the second sending subunit 433 will send the third signal according to the third signal. Sending second prompt information for obtaining the second identity information of the second client to the first client.
在某一实施例中,第二提示信息用于提示第一客户端用户输入云端服务器指定的身份信息。例如,第二提示信息提示第一客户端用户输入第二客户端的注册邮箱。当然,在其他优选实施例中,第二提示信息也可以提示第一客户端用户输入第二客户端的任意注册身份信息,即此时云端服务器不再指定第一客户端用户输入的身份信息种类,在此不做具体限制。In a certain embodiment, the second prompt information is used to prompt the first client user to input the identity information specified by the cloud server. For example, the second prompt information prompts the user of the first client to input the registered mailbox of the second client. Of course, in other preferred embodiments, the second prompt information may also prompt the first client user to input any registered identity information of the second client, that is, at this time, the cloud server no longer specifies the type of identity information input by the first client user, There is no specific restriction here.
第一客户端获取到第二提示信息后,第一客户端将弹出一个重新输入对话框。第一客户端用户在该重新输入对话框的相应位置输入第二客户端的第二身份信息,例如第二客户端的注册邮箱,并点击确认按钮。第一客户端将发送该第二客户端的第二身份信息至云端服务器。云端服务器内的获取子单元434将获取第一客户端根据第二提示信息反馈的第二身份信息。After the first client obtains the second prompt information, the first client will pop up a re-input dialog box. The user of the first client inputs the second identity information of the second client, such as the registered email address of the second client, in the corresponding position of the re-input dialog box, and clicks the confirmation button. The first client will send the second identity information of the second client to the cloud server. The obtaining subunit 434 in the cloud server will obtain the second identity information fed back by the first client according to the second prompt information.
获取子单元434将获取到的第二身份信息发送至确定发送子单元435。确定发送子单元435将从存储子单元436中读取第一身份信息和索取提示信息,并根据第一身份信息和第二身份信息确定唯一的第二客户端。例如,确定发送子单元435根据第二客户端的用户名和注册邮箱来唯一确定第二客户端。在确定发送子单元435确定唯一的第二客户端后,将发送所述索取提示信息至唯一的第二客户端。The acquiring subunit 434 sends the acquired second identity information to the determining and sending subunit 435 . It is determined that the sending subunit 435 will read the first identity information and the request prompt information from the storage subunit 436, and determine a unique second client according to the first identity information and the second identity information. For example, the determining sending subunit 435 uniquely determines the second client according to the user name and registered mailbox of the second client. After determining that the sending subunit 435 determines the unique second client, the request prompt information will be sent to the unique second client.
当第二客户端接收到该索取提示信息后,第二客户端用户根据该索取提示信息来选择其在云端服务器内存储的相应用户数据的标识信息,即待分享数据的标识信息,并将待分享数据的标识信息发送至云端服务器,云端服务器内的接收单元440接收第二客户端根据索取提示信息反馈的待分享数据的标识信息。After the second client receives the request prompt information, the second client user selects the identification information of the corresponding user data stored in the cloud server according to the request prompt information, that is, the identification information of the data to be shared, and selects the identification information of the data to be shared. The identification information of the shared data is sent to the cloud server, and the receiving unit 440 in the cloud server receives the identification information of the data to be shared fed back by the second client according to the request prompt information.
例如,当索取提示信息为“旅游照片”时,第二客户端用户将通过第二客户端查找其在云端服务器内存储的与旅游相关的照片或视频等资料,并将相关资料的标识信息发送给云端服务器。接收单元440将接收该待分享数据的标识信息。For example, when the requested prompt information is "travel photos", the second client user will search for travel-related photos or videos stored in the cloud server through the second client, and send the identification information of the relevant data. to the cloud server. The receiving unit 440 will receive the identification information of the data to be shared.
在此需要说明的是,第二客户端用户在将其用户数据存储在云端服务器内时,每个用户数据均设置有标识信息,该标识信息可以由第二客户端用户设置,例如,为每张照片设置名称,或为一个文件夹名称等;也可以由云端服务器为其分配,例如为每张照片在云端服务器内存储地址。只要云端服务器可以根据该标识信息查找到相应的待分享数据即可,在此不做具体限制。It should be noted here that when the second client user stores their user data in the cloud server, each user data is set with identification information, and the identification information can be set by the second client user, for example, for each user data Set the name of a photo, or a folder name, etc.; it can also be assigned by the cloud server, for example, a storage address in the cloud server for each photo. As long as the cloud server can find the corresponding data to be shared according to the identification information, there is no specific limitation here.
接收单元440将获取到的待分享数据的标识信息传递至生成发送单元450。生成发送单元450将根据该标识信息生成待分享数据的数据分享链接,并将该数据分享链接发送至第一客户端,使得第一客户端接收到该数据分享链接后,第一客户端用户通过点击该数据分享链接即可以浏览或下载待分享数据。The receiving unit 440 transmits the acquired identification information of the data to be shared to the generating and sending unit 450 . The generating and sending unit 450 will generate a data sharing link of the data to be shared according to the identification information, and send the data sharing link to the first client, so that after the first client receives the data sharing link, the user of the first client passes Click the data sharing link to browse or download the data to be shared.
一优选实施例中的数据分享装置400,通过获取单元410获取第一客户端发送的索取分享数据请求,其中索取分享数据请求包括第二客户端的第一身份信息和索取提示信息;判断单元420根据第一身份信息判断是否存在第二客户端注册信息,若存在第二客户端注册信息,则判断子单元431进一步判断该第一身份信息是否对应唯一的第二客户端,若对应唯一的第二客户端,则第一发送子单元432根据第一身份信息发送索取提示信息至第二客户端;接收单元440 接收第二客户端根据索取提示信息反馈的待分享数据的标识信息;生成发送单元450根据该标识信息生成待分享数据的数据分享链接,并发送该数据分享链接至第一客户端。在用户主动索取其他用户数据的情况下,该数据分享装置400 可以使得分享过程更加简单,可操作性更强。同时,也不再需要用户通过电话等其他通信方式提前与其他用户沟通来获得用户数据,节省用户的时间。另外,通过两步判断来提高云端服务器对第二客户端查找的准确率,提高分享数据的安全性和可靠性。The data sharing device 400 in a preferred embodiment acquires the request for sharing data sent by the first client through the acquiring unit 410, wherein the request for acquiring and sharing data includes the first identity information of the second client and the request prompt information; the determining unit 420 according to The first identity information judges whether there is second client registration information, and if there is second client registration information, the judgment subunit 431 further judges whether the first identity information corresponds to a unique second client, if it corresponds to a unique second client. client, the first sending subunit 432 sends the request prompt information to the second client according to the first identity information; the receiving unit 440 receives the identification information of the data to be shared fed back by the second client according to the request prompt information; the generating sending unit 450 A data sharing link of the data to be shared is generated according to the identification information, and the data sharing link is sent to the first client. In the case that the user actively requests other user data, the data sharing apparatus 400 can make the sharing process simpler and more operable. At the same time, users are no longer required to communicate with other users in advance through other communication methods such as telephones to obtain user data, which saves users' time. In addition, the two-step judgment is used to improve the accuracy of the cloud server's search for the second client, and to improve the security and reliability of the shared data.
本发明优选实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。Each functional unit in the preferred embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. The above-mentioned apparatuses 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. Those of ordinary skill in the art can make various Therefore, the protection scope of the present invention is subject to the scope defined by the claims.
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201610940884.8ACN106534280B (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device | 
| PCT/CN2017/095693WO2018076873A1 (en) | 2016-10-25 | 2017-08-02 | Data sharing method, apparatus, medium, electronic device and system | 
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201610940884.8ACN106534280B (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device | 
| Publication Number | Publication Date | 
|---|---|
| CN106534280A CN106534280A (en) | 2017-03-22 | 
| CN106534280Btrue CN106534280B (en) | 2019-12-03 | 
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN201610940884.8AExpired - Fee RelatedCN106534280B (en) | 2016-10-25 | 2016-10-25 | Data sharing method and device | 
| Country | Link | 
|---|---|
| CN (1) | CN106534280B (en) | 
| WO (1) | WO2018076873A1 (en) | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN106534280B (en)* | 2016-10-25 | 2019-12-03 | Oppo广东移动通信有限公司 | Data sharing method and device | 
| CN110417601B (en)* | 2019-08-02 | 2022-07-15 | 网易(杭州)网络有限公司 | Information prompting method, device and system in client and readable storage medium | 
| CN110719319B (en)* | 2019-09-18 | 2022-12-27 | 维沃移动通信有限公司 | Resource sharing method, device, terminal equipment and storage medium | 
| CN111339513B (en)* | 2020-01-23 | 2023-05-09 | 华为技术有限公司 | Method and device for data sharing | 
| CN113613313B (en)* | 2021-08-19 | 2024-11-19 | 杭州涂鸦信息技术有限公司 | A communication method, device and medium for pairing bluetooth devices | 
| CN115190112B (en)* | 2022-06-08 | 2025-08-08 | 深圳市口袋网络科技有限公司 | Marketing data processing method, server and storage medium | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN102065078A (en)* | 2010-11-18 | 2011-05-18 | 上海合合信息科技发展有限公司 | Method for acquiring more information provided by contact person through network | 
| CN102905232A (en)* | 2012-09-20 | 2013-01-30 | 北京灵创众和科技有限公司 | Method, device and system based on contacts person network of mobile communication terminal | 
| CN105721589A (en)* | 2011-11-14 | 2016-06-29 | 联想(北京)有限公司 | Terminal device and file receiving method thereof | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN101674314B (en)* | 2009-10-23 | 2012-08-08 | 华为终端有限公司 | Information sharing method, data server and terminal | 
| KR101729633B1 (en)* | 2011-03-03 | 2017-04-24 | 삼성전자주식회사 | Apparatus and method for sharing contents of social network service in communicatino system | 
| CN102740228A (en)* | 2012-06-21 | 2012-10-17 | 北京小米科技有限责任公司 | Method, device and system for sharing position information | 
| US9111110B2 (en)* | 2013-02-09 | 2015-08-18 | Dropbox, Inc. | Retroactive shared content item links | 
| CN104079470B (en)* | 2013-03-27 | 2019-06-25 | 腾讯科技(深圳)有限公司 | A kind of electronic name card exchange method, system and server | 
| CN103327100B (en)* | 2013-06-21 | 2017-04-19 | 华为技术有限公司 | Resource processing method and site server | 
| CN103294515B (en)* | 2013-06-28 | 2017-03-15 | 小米科技有限责任公司 | A kind of methods, devices and systems for obtaining application program | 
| CN104954398B (en)* | 2014-03-26 | 2019-03-12 | 腾讯科技(深圳)有限公司 | A kind of method and device obtaining content | 
| CN105100223B (en)* | 2015-07-01 | 2019-10-15 | 北京奇虎科技有限公司 | File sharing method, device and system based on cloud storage | 
| CN105471988B (en)* | 2015-11-23 | 2019-01-25 | 努比亚技术有限公司 | Contact information pushing method, server and terminal | 
| CN106534280B (en)* | 2016-10-25 | 2019-12-03 | Oppo广东移动通信有限公司 | Data sharing method and device | 
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN102065078A (en)* | 2010-11-18 | 2011-05-18 | 上海合合信息科技发展有限公司 | Method for acquiring more information provided by contact person through network | 
| CN105721589A (en)* | 2011-11-14 | 2016-06-29 | 联想(北京)有限公司 | Terminal device and file receiving method thereof | 
| CN102905232A (en)* | 2012-09-20 | 2013-01-30 | 北京灵创众和科技有限公司 | Method, device and system based on contacts person network of mobile communication terminal | 
| Publication number | Publication date | 
|---|---|
| WO2018076873A1 (en) | 2018-05-03 | 
| CN106534280A (en) | 2017-03-22 | 
| Publication | Publication Date | Title | 
|---|---|---|
| CN106534280B (en) | Data sharing method and device | |
| US9515967B2 (en) | Systems and methods for sharing data among multiple end user devices | |
| CN106534277B (en) | Data sharing method and device | |
| JP6968261B2 (en) | Computer-implemented methods, information transmission methods, data transmission computing devices, information transmission servers, non-transient, computer-readable media and computer-implemented systems. | |
| CN104580406B (en) | A kind of method and apparatus of synchronous logging state | |
| US11539799B2 (en) | Method and apparatus for transferring information between electronic devices | |
| US20180176221A1 (en) | Methods and Systems for Verifying a User Login Using Contact Information of the User | |
| CN106533944B (en) | Distributed API gateway, management method and management system | |
| CN106663107A (en) | Method, system and medium for associating multiple users with a media presentation device | |
| US20180034772A1 (en) | Method and apparatus for bluetooth-based identity recognition | |
| WO2014206053A1 (en) | Systems and methods for image sharing | |
| CN108833585B (en) | Information interaction method, device and storage medium | |
| CN104378435A (en) | Method for transmitting file between browser of computing device and mobile terminal | |
| CN104394208B (en) | Document transmission method and server | |
| CN104376090B (en) | The browser of computing device and the screen synch of mobile terminal | |
| EP3593553A1 (en) | Quick response (qr) code for secure provisioning of a user device to perform a secure operation | |
| WO2014190841A1 (en) | Data recovery method, device and system using same | |
| CN106547769A (en) | A DOI display method and device | |
| CN104486371A (en) | Equipment and method for downloading file on batch | |
| US9887948B2 (en) | Augmenting location of social media posts based on proximity of other posts | |
| US9742776B2 (en) | Contact identification validation via social invitation | |
| CN113946739A (en) | Sensitive data query method, device, equipment and storage medium | |
| CN113613050B (en) | Video synchronous playing method and device, electronic equipment and storage medium | |
| CN106302002B (en) | Test method and device | |
| KR20160042399A (en) | Creating a contact list and pre-populated user accounts | 
| 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 | ||
| CB02 | Change of applicant information | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20191203 | |
| CF01 | Termination of patent right due to non-payment of annual fee |