WO2018076840A1 - Data sharing method, device, storage medium and server - Google Patents

Data sharing method, device, storage medium and server Download PDF

Info

Publication number
WO2018076840A1
WO2018076840A1 PCT/CN2017/094815 CN2017094815W WO2018076840A1 WO 2018076840 A1 WO2018076840 A1 WO 2018076840A1 CN 2017094815 W CN2017094815 W CN 2017094815W WO 2018076840 A1 WO2018076840 A1 WO 2018076840A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
identity information
user data
information
sharing
Prior art date
Application number
PCT/CN2017/094815
Other languages
French (fr)
Chinese (zh)
Inventor
马志峰
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018076840A1 publication Critical patent/WO2018076840A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a data sharing method, apparatus, storage medium, and server.
  • 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 client of the cloud server in the mobile terminal, and the user can also share the user data in the cloud server to other users.
  • the embodiment of the invention provides a data sharing method, device, storage medium and server, which can improve the convenience of data sharing.
  • an embodiment of the present invention provides a data sharing method, including:
  • an embodiment of the present invention provides a data sharing apparatus, including:
  • a first obtaining unit configured to acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
  • a reading unit configured to read an association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
  • a second acquiring unit configured to acquire, according to the association list, identifier information of user data corresponding to the first client identity information
  • And generating a sending unit configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the data sharing method.
  • an embodiment of the present invention provides a server, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the foregoing data sharing. method.
  • the embodiment of the invention provides a data sharing method, device, storage medium and server, which can improve the convenience of data sharing.
  • FIG. 1 is a schematic diagram of a scenario of a data sharing system according to an embodiment of the present invention.
  • FIG. 2 is a flow chart of a data sharing method of the present invention.
  • FIG. 3 is still another flowchart of the data sharing method of the present invention.
  • FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention.
  • FIG. 5 is still another schematic structural diagram of a data sharing apparatus according to the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • first, second, and the like 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.
  • a first control may be referred to as a second control, and similarly, a second control may be referred to as 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.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • An embodiment of the present invention provides a data sharing method, including:
  • the method before the obtaining the request for sharing sent by the first client, the method further includes:
  • the step of reading the association list according to the second client identity information comprises:
  • the associated list is read from the storage area.
  • the step of acquiring the identification information of the user data to be shared corresponding to the first client identity information according to the association list comprises:
  • the identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
  • the method before the obtaining the identification information of the user data to be shared corresponding to the first client identity information according to the association list, the method further includes:
  • the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list.
  • the method further includes:
  • the second client If the second client is in the login state, generating sharing request prompt information according to the first client identity information, and sending the sharing request prompt information to the second client;
  • the method further includes:
  • the data sharing system mainly includes a cloud server and a terminal, and the cloud server and the terminal can be connected through a wired or wireless network.
  • FIG. 1 is a schematic diagram of a data sharing system according to 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 the user.
  • the first client and the second client in the present invention are installed in the terminal, and the terminal in which the first client is built is shown in FIG. 1 , and the terminal in which the second client is built is not shown in FIG. 1 .
  • the terminal can be an electronic device such as a mobile phone or a tablet computer.
  • the first client user When the first client user needs to access the user data of the second client, the first client user sends a request for sharing to the cloud server through the first client.
  • the cloud server will obtain the request for sharing from the first client.
  • the request sharing request includes first client identity information and second client identity information.
  • the cloud server After obtaining the request for sharing, the cloud server obtains the first client identity information and the second client identity information in the request for sharing by parsing, and reads the second client according to the second client identity information.
  • the association list includes a correspondence between the identification information of the user data of the second client and the identity information of the client.
  • the first client can browse or download the corresponding user data of the second client by clicking the user data sharing link.
  • the embodiment provides a data sharing method, including: acquiring a request sharing request sent by a first client, where the requesting sharing request includes first client identity information and second client identity information; The client identity information reads the association list, where the association list includes a correspondence between the identification information of the user data of the second client and the client identity information; and the association list is obtained according to the identity information of the first client. And identifying information about the user data to be shared; and generating a user data sharing link according to the identification information, and sending the user data sharing link to the first client.
  • FIG. 2 is a flowchart of a data sharing method according to the present invention.
  • the data sharing method is applied to the cloud server.
  • the data sharing method can also be applied to other devices, and is not specifically limited herein.
  • step S101 the request sharing request sent by the first client is obtained, where the request sharing request includes the first client identity information and the second client identity information.
  • the first client 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 generates a request for sharing and sends the request for sharing to the cloud server.
  • the cloud server will get the request for sharing.
  • the request for sharing includes the first client identity information and the second client identity information.
  • the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
  • the first client user when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page.
  • the first client will pop up a dialog box prompting the user to enter the second client identity information.
  • the first client user enters a second client user phone number at a corresponding location in the dialog box.
  • the OK button the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request
  • the sharing request is sent to the cloud server.
  • step S102 the association list is read according to the second client identity information, where the association list includes a correspondence between the identity information of the user data of the second client and the client identity information.
  • the cloud server After receiving the request for sharing by the first client, the cloud server obtains the first client identity information and the second client identity information by parsing the request sharing request. At the same time, the storage area of the cloud server corresponding to the second client corresponding to the second client is searched according to the second client identity information, and the association list set by the second client user is read from the storage area.
  • the association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
  • the second client user sets a sharing object for synchronizing the user data in the cloud server.
  • the second client user sets the sharing object of the 100 life photos as the mother's mobile phone number, that is, the second client user desires that the 100 life photos are associated with the mother's mobile phone number.
  • the second client user clicks the confirmation button the second client generates an association list according to the identification information of the 100 life photos and the mobile phone number of the mother, and sends the association list to the cloud server, and the cloud server stores the association. List.
  • the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
  • step S103 the identifier information of the user data to be shared corresponding to the first client identity information is acquired according to the association list.
  • the cloud server After the cloud server reads the association list preset by the second client user, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list. Specifically, the cloud server searches for the client identity information that matches the first client identity information in the association list, and uses the identity information corresponding to the client identity information as the to-be-shared corresponding to the first client identity information. Identification information of user data.
  • the first client identity information is the mom's mobile phone number
  • the cloud server searches for the client matching the mom's mobile phone number in the read association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
  • step S104 a user data sharing link is generated according to the identification information, and the user data sharing link is sent to the first client.
  • the cloud server finds the identifier information corresponding to the first client identity information, the user data sharing link is generated according to the identifier information, and the user data sharing link is sent to the first client, so that the first client user passes Click the user data sharing link to get the user data stored in the cloud server by the second client.
  • the data sharing method in this embodiment is configured to obtain a request for sharing by the first client, where the request for sharing includes the first client identity information and the second client identity information; according to the second client identity
  • the information reading association list, wherein the association list includes a correspondence between the identification information of the user data of the second client and the client identity information; and the to-be-shared corresponding to the identity information of the first client is obtained according to the association list.
  • Identification information of the user data and generating a user data sharing link according to the identification information, and transmitting the user data sharing link to the first client.
  • the cloud server shares the corresponding user data with the first client user according to the association list set by the second client user in advance.
  • the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
  • FIG. 3 is still another flowchart of the data sharing method of the present invention.
  • the data sharing method is applied to the cloud server.
  • the data sharing method can also be applied to other devices, and is not specifically limited herein.
  • the data sharing method comprises:
  • Step S201 Acquire user data of the second client.
  • Step S202 Acquire the identification information of the user data, and obtain an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
  • Step S203 Acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
  • Step S204 The association list is read according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information.
  • Step S205 determining whether the first client identity information exists in the association list; if the first client identity information exists, performing step S206; if the first client identity information is not present, executing Step S208;
  • Step S206 Acquire, according to the association list, identifier information of the user data to be shared corresponding to the first client identity information.
  • Step S207 Generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client;
  • Step S208 determining whether the second client is in the login state; if the second client is in the login state, step S209 is performed; if the second client is not in the login state, executing step S212;
  • Step S210 Acquire an operation instruction that is feedback by the second client according to the sharing request prompt information
  • Step S211 determining whether there is identification information of the user data to be shared in the operation instruction; if there is identification information of the user data to be shared in the operation instruction, step S207 is performed; if the operation instruction does not exist After the identification information of the shared user data is described, step S212 is performed;
  • Step S212 Send prompt information that cannot access the second client user data to the first client.
  • step S201 and step S202 after the second client user logs in to the client of the cloud server, the user data in the terminal is uploaded to the cloud server through the upload button in the client.
  • the cloud server will obtain the user data sent by the second client, and store the user data at the corresponding location of the cloud server.
  • the cloud server obtains the identification information of the user data, and sends the identification information of the user data to the second client.
  • the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
  • the second client user After the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for the user data synchronized to the cloud server, wherein setting the sharing object refers to allocating other client identity information to the user data.
  • the second client After the second client user finishes setting the sharing object for the user data, the second client generates an association list according to the identification information of the user data acquired from the cloud server and the client identity information corresponding thereto, and sends the association list. To the cloud server.
  • the second client user sets the sharing object of 100 life photos as the mobile phone number of the mother, that is, the 100 life photos will be associated with the mother's mobile phone number.
  • the second client user clicks the confirmation button the second client generates an association list according to the identification information of the 100 life photos acquired from the cloud server and the mobile phone number of the mother, and sends the association list to the cloud server.
  • the cloud server obtains the association list and stores the association list, wherein the association list is used in a subsequent data sharing process.
  • the identification information of one user data may correspond to multiple client identity information.
  • the identification information of multiple user data may also correspond to a client identity information, where No specific restrictions are imposed.
  • the identity information of the client corresponding to the identification information of each user data is not limited to one type.
  • the identification information of each user data may correspond only to the user phone number in the client identity information, or each The identification information of the user data corresponds to multiple identity information such as the user name, the user's phone number, and the registered mailbox in the client identity information, and no specific restrictions are imposed herein.
  • step S203 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 generates a request for sharing and sends the request for sharing.
  • the cloud server will get the request for sharing.
  • the request for sharing includes the first client identity information and the second client identity information.
  • the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
  • the first client user when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page.
  • the first client will pop up a dialog box prompting the user to enter the second client identity information.
  • the first client user enters a second client user phone number at a corresponding location in the dialog box.
  • the OK button the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request
  • the sharing request is sent to the cloud server.
  • step S204 after receiving the request for sharing by the first client, the cloud server obtains the first client identity information and the second client identity information by parsing the request sharing request.
  • the storage area of the cloud server corresponding to the second client corresponding to the second client is searched according to the second client identity information, and the association list preset by the second client user is read from the storage area.
  • the association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
  • step S205 after the cloud server reads the association list stored in the server by the second client, it is determined whether the first client identity information exists in the association list. For example, when the first client identity information is a user phone number, the cloud server will determine whether the user phone number exists in the association list.
  • step S205 if the cloud server determines that the first client identity information exists in the association list, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list, that is, Step S206 is performed.
  • step S206 after reading the association list preset by the second client user, the cloud server acquires the identifier information of the user data to be shared corresponding to the first client identity information according to the association list. Specifically, the cloud server searches for the client identity information that matches the first client identity information in the association list, and uses the identity information corresponding to the client identity information as the to-be-shared corresponding to the first client identity information. Identification information of user data.
  • the first client identity information is the mom's mobile phone number
  • the cloud server searches for the client matching the mom's mobile phone number in the read association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
  • step S207 after the cloud server finds the identifier information corresponding to the first client identity information, the user data sharing link is generated according to the identifier information, and the user data sharing link is sent to the first client, so that the first A client user can obtain user data stored in the cloud server by the second client by clicking the user data sharing link.
  • step S208 is a data sharing method in the case where the first client identity information exists in the association list. If the cloud server determines that the first client identity information does not exist in the association list, the cloud server further determines whether the second client is in the login state, that is, step S208 is performed.
  • step S208 if the cloud server determines that the second client is not in the login state, the cloud server sends a prompt message to the first client, where the prompt information is used to prompt the first client user to access the second client. End user data, that is, step S212 is performed.
  • the cloud server determines that the second client is in the login state, the cloud server generates the sharing request prompt information according to the first client identity information, and sends the sharing request prompt information to the second client, that is, step S209 is performed.
  • the sharing request prompt information includes the first client identity information, so that after the second client user views the sharing request prompt information, the second client user needs to access the user data. If the second client user wants the first client user to access the user data, after the second client user selects the user data to be shared, the second client obtains the identification information of the user data to be shared, and according to the to-be-shared The identification information of the user data generates an operation instruction containing the identification information, and sends the operation instruction containing the identification information to the cloud server.
  • the operation instruction containing the identification information may be composed only of the identification information of the user data to be shared, or may be the identification information of the user data to be shared and other
  • the instruction consists of.
  • an acceptance button is provided in the sharing request prompt information. If the second client user agrees to share the user data, the second client user clicks the accept button, and the second client will identify the user data according to the information to be shared. Click the operation information of the accept button to generate an operation instruction containing the identification information.
  • the second client If the second client user does not want the first client user to access the user data, the second client generates an operation instruction that does not include the identification information according to the operation of the second client user, and sends the operation that does not include the identification information.
  • Command to the cloud server For example, a rejection button is provided in the sharing request prompt information. If the second client user does not agree to share the user data, the second client user clicks the reject button, and the second client obtains the operation information of the click rejection button. , an empty operation instruction will be generated, and the empty operation instruction will be sent to the cloud server.
  • the cloud server obtains an operation instruction that is feedback from the second client according to the sharing request prompt information, and determines whether there is identification information of the user data to be shared in the operation instruction. If there is any identification information of the user data to be shared, that is, the operation instruction at this time is an operation instruction containing the identification information, the second client user wants to share the to-share user data corresponding to the identification information to the first client user.
  • the cloud server performs step S207, that is, generates a user data sharing link according to the identification information, and sends a user data sharing link to the first client, so that the first client user can browse or click the data sharing link.
  • the user data to be shared is downloaded, so that data sharing can still be realized if the first client identity information does not have an associated list.
  • step S212 If the cloud server determines that there is no identification information of the user data to be shared in the operation instruction, that is, the operation instruction is an empty operation instruction, indicating that the second client user does not want to share the data to the first client user. At this time, the cloud server sends a prompt message that the second client user data cannot be accessed to the first client, that is, step S212 is performed.
  • the first user logs in to the first client through the computer and uploads the training materials in the computer to the cloud server.
  • the first user's colleague ie, the second user
  • the second user will log in to the second client and click the request sharing button in the second client page.
  • the second client will pop up a dialog box.
  • the second user enters the first user's phone number in the dialog box and clicks the confirmation button.
  • the second client will automatically obtain the identity information of the second client, and generate a request for sharing according to the identity information of the second client and the phone number of the first user.
  • the second client will send the request for sharing to the cloud server.
  • the cloud server After receiving the request for sharing, the cloud server obtains the identity information of the second client and the phone number of the first user through parsing. Finding a corresponding first client according to the first user's phone number, and then searching for an area where the first client's user data is stored. The associated list is read from this storage area.
  • the first user does not set the sharing scope of the training data when the first user uploads the training data to the cloud server, that is, the identification information corresponding to the training data does not exist in the association list of the first user; or the first user pairs training
  • the identification information corresponding to the training data is not corresponding to the second client identity information, that is, the second client identity information does not exist in the association list.
  • the cloud server determines that the second client identity information does not exist in the association list. At this point, the cloud server will continue to determine whether the first client is in the login state. If the first user is using the client at this time, the cloud server generates a sharing request prompt message according to the second client identity information, and sends the message to the first client. The first client knows that the second user needs his training materials according to the sharing request prompt information.
  • the first user clicks the accept button in the sharing request prompt information field.
  • the first client pops up a selection dialog box for the first user to select the corresponding user data to be shared.
  • the first user clicks on the training profile folder and clicks the OK button.
  • the first client will obtain the identification information of the training material, and generate an operation instruction according to the identification information, and simultaneously send the operation instruction to the cloud server.
  • the cloud server obtains the operation instruction according to the operation instruction, and determines that the operation instruction includes the identification information of the user data to be shared.
  • the cloud server generates a user data sharing link according to the identification information, and sends a user data sharing link to the second client. In this way, the second user can browse or download the training materials by clicking on the data sharing link.
  • the data sharing method provided by the embodiment of the present invention may enable the first client user to share the corresponding user data to the first user according to the association list set by the second client user when the second client user data needs to be accessed.
  • the client user in the sharing process, the second client user does not need to log in to the client to share operations, etc., which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
  • the cloud server sends the generated sharing request prompt information to the second client after determining that the second client is in the login state, so that the second client The user data can be shared to the first client in time according to the sharing request prompt information. In this way, even if the first client identity information does not exist in the association list, the first client user can obtain the desired user data by using the method, so that the entire sharing process is more rationalized.
  • the embodiment of the invention further provides a data sharing device, comprising:
  • a first obtaining unit configured to acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
  • a reading unit configured to read an association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
  • a second acquiring unit configured to acquire, according to the association list, identifier information of the user data to be shared corresponding to the first client identity information
  • And generating a sending unit configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
  • the data sharing device further includes a third obtaining unit, where the third acquiring unit is configured to:
  • the reading unit is for:
  • the associated list is read from the storage area.
  • the second obtaining unit is configured to:
  • the identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
  • the data sharing device further includes a first determining unit
  • the first determining unit is configured to determine whether the first client identity information exists in the association list
  • the second acquiring unit is configured to: if the first client identity information exists in the association list, obtain, according to the association list, identifier information of user data corresponding to the first client identity information.
  • the data sharing apparatus further includes a second determining unit, wherein the second determining unit includes a first determining subunit, a generating transmitting subunit, an obtaining subunit, and a second judging subunit;
  • the first determining subunit is configured to determine whether the second client is in a login state if the first client identity information does not exist in the association list;
  • the generating and sending subunit is configured to generate sharing request prompt information according to the first client identity information, and send the sharing request prompt information to the second client, if the second client is in a login state ;
  • the obtaining subunit is configured to acquire an operation instruction that is sent by the second client according to the sharing request prompt information
  • the second determining subunit is configured to determine whether the identification information of the user data to be shared exists in the operation instruction
  • the generating and sending unit is specifically configured to: if the identification information of the user data to be shared exists in the operation instruction, generate a user data sharing link according to the identification information, and send the user data sharing link to the first Client.
  • the second determining unit further includes a prompting subunit; the prompting subunit is configured to send the inaccessible information if the identification information of the user data to be shared does not exist in the operation instruction Two prompt information of the client user data to the first client.
  • FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention.
  • the data sharing device 300 is applied to a cloud server.
  • the data sharing device 300 can also be applied to other devices, and is not specifically limited herein.
  • the data sharing device 300 includes a first obtaining unit 310, a reading unit 320, a second obtaining unit 330, and a generating transmitting unit 340.
  • the obtaining unit 310 is configured to obtain a request sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information
  • the reading unit 320 is configured to use the second
  • the client identity information reads the association list, where the association list includes the correspondence between the identification information of the user data of the second client and the client identity information
  • the second obtaining unit 330 is configured to obtain, according to the association list, the The identification information of the user data corresponding to the client identity information
  • the generation sending unit 340 is configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
  • the data sharing device 300 in the above embodiment will be described in detail below with reference to FIG.
  • the first client 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 generates a data requesting the sharing request and sending the request for sharing to the cloud server. Sharing device 300.
  • the first obtaining unit 310 in the data sharing device 300 will acquire the request sharing request.
  • the request for sharing includes the first client identity information and the second client identity information.
  • the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
  • the first client user when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page.
  • the first client will pop up a dialog box prompting the user to enter the second client identity information.
  • the first client user enters a second client user phone number at a corresponding location in the dialog box.
  • the OK button the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request
  • the sharing request is sent to the data sharing device 300 of the cloud server.
  • the first client identity information and the second client identity information are obtained by parsing the request sharing request.
  • the first obtaining unit 310 transmits the first client identity information and the second client identity information to the reading unit 320.
  • the reading unit 320 searches the storage area of the cloud server corresponding to the second client corresponding to the second client identity information, and reads the association list set by the second client user from the storage area.
  • the association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
  • the second client user sets a sharing object for synchronizing the user data in the cloud server.
  • the second client user sets the sharing object of the 100 life photos as the mother's mobile phone number, that is, the second client user desires that the 100 life photos are associated with the mother's mobile phone number.
  • the second client user clicks the confirmation button the second client generates an association list according to the identification information of the 100 life photos and the mobile phone number of the mother, and sends the association list to the cloud server, and the cloud server stores the association. List.
  • the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
  • the reading unit 320 After reading the association list preset by the second client user, the reading unit 320 sends the association list and the first client identity information to the second obtaining unit 330.
  • the second obtaining unit 330 will acquire the identification information of the user data to be shared corresponding to the first client identity information according to the association list. Specifically, the second obtaining unit 330 searches for the client identity information that matches the first client identity information in the association list, and the identifier information corresponding to the client identity information is associated with the first client identity information. Identification information of the user data to be shared.
  • the first client identity information is the mom's mobile phone number
  • the second obtaining unit 330 searches for the client matching the mom's mobile phone number in the association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
  • the data sharing device 300 acquires the request sharing request sent by the first client by using the first obtaining unit 310, wherein the request sharing request includes the first client identity information and the second client identity information;
  • the unit 320 reads the association list according to the second client identity information, where the association list includes the correspondence between the identification information of the user data of the second client and the client identity information; and the second obtaining unit 330 is configured according to the association list.
  • the data sharing device 300 can share the corresponding user data with the first client user according to the association list set by the second client user when the first client user needs to access the second client user data, and share the corresponding user data.
  • the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
  • FIG. 5 is still another schematic structural diagram of a data sharing apparatus according to the present invention.
  • the data sharing device 400 is applied to a cloud server.
  • the data sharing device 400 can also be applied to other devices, and is not specifically limited herein.
  • the data sharing apparatus 400 includes: a third obtaining unit 410, a first obtaining unit 420, a reading unit 430, a first determining unit 440, a second obtaining unit 450, a generating transmitting unit 460, and a second determining unit. 470.
  • the second determining unit 470 includes a first determining subunit 471, a generating transmitting subunit 472, an obtaining subunit 473, a second judging subunit 474, and a prompting subunit 475.
  • the data sharing device 400 in the above embodiment will be described in detail below with reference to FIG.
  • the user data in the terminal is uploaded to the cloud server through the upload button in the client.
  • the third obtaining unit 410 in the cloud server will acquire the user data sent by the second client, and store the user data at a corresponding location of the cloud server.
  • the third obtaining unit 410 will acquire the identification information of the user data, and send the identification information of the user data to the second client.
  • the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
  • the second client user After the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for the user data synchronized to the cloud server, wherein setting the sharing object refers to allocating other client identity information to the user data.
  • the second client After the second client user finishes setting the sharing object for the user data, the second client generates an association list according to the identification information of the user data acquired from the third obtaining unit 410 and the client identity information corresponding thereto, and the The associated list is sent to the cloud server.
  • the third obtaining unit 410 in the cloud server will acquire the association list.
  • the second client user sets the sharing object of 100 life photos as the mobile phone number of the mother, that is, the 100 life photos will be associated with the mother's mobile phone number.
  • the second client user clicks the confirmation button the second client generates an association list according to the identification information of the 100 life photos acquired from the cloud server and the mobile phone number of the mother, and sends the association list to the cloud server.
  • the third obtaining unit 410 acquires the association list and stores the association list, wherein the association list is used in a subsequent data sharing process.
  • the identification information of one user data may correspond to multiple client identity information.
  • the identification information of multiple user data may also correspond to a client identity information, where No specific restrictions are imposed.
  • the identity information of the client corresponding to the identification information of each user data is not limited to one type.
  • the identification information of each user data may correspond only to the user phone number in the client identity information, or each The identification information of the user data corresponds to multiple identity information such as the user name, the user's phone number, and the registered mailbox in the client identity information, and no specific restrictions are imposed herein.
  • the first client 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 generates a data requesting the sharing request and sending the request for sharing to the cloud server. Sharing device 400.
  • the first obtaining unit 420 in the data sharing device 400 will acquire the request sharing request.
  • the request for sharing includes the first client identity information and the second client identity information.
  • the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
  • the first client user when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page.
  • the first client will pop up a dialog box prompting the user to enter the second client identity information.
  • the first client user enters a second client user phone number at a corresponding location in the dialog box.
  • the OK button the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request
  • the sharing request is sent to the data sharing device 400 of the cloud server.
  • the first client identity information and the second client identity information are obtained by parsing the request sharing request, and the obtained first client is obtained.
  • the identity information and the second client identity information are sent to the reading unit 430.
  • the reading unit 430 searches the storage area of the cloud server corresponding to the second client corresponding to the second client identity information, and reads the association list preset by the second client user from the storage area.
  • the association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
  • the reading unit 430 passes the read association list, the first client identity information, and the second client identity information to the first determining unit 440.
  • the first determining unit 440 will determine whether the first client identity information exists in the associated list. For example, when the first client identity information is the user phone number, the first determining unit 440 determines whether the user phone number exists in the association list.
  • the first determining unit 440 determines that the first client identity information exists in the association list, the first determining unit 440 passes the association list and the first client identity information to the second acquiring unit 450.
  • the second obtaining unit 450 acquires the identification information of the user data to be shared corresponding to the first client identity information according to the association list.
  • the second obtaining unit 450 searches for the client identity information that matches the first client identity information in the association list, and uses the identifier information corresponding to the client identity information as the first client identity information. Identification information of the user data to be shared.
  • the first client identity information is the mom's mobile phone number
  • the second obtaining unit 450 searches for the mobile phone number of the mom in the read association list. Matching client identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
  • the second obtaining unit 450 finds the identification information corresponding to the first client identity information
  • the second obtaining unit 450 passes the identification information and the first client identity information to the generation sending unit 460.
  • the generating and sending unit 460 generates a user data sharing link according to the identification information, and sends the user data sharing link to the first client, so that the first client user can obtain the second client by clicking the user data sharing link.
  • User data within the cloud server User data within the cloud server.
  • the foregoing step is a data sharing method in a case where the first determining unit 440 determines that the first client identity information exists in the associated list. If the first determining unit 440 determines that the first client identity information does not exist in the association list, the first determining unit 440 sends the first signal, the first client to the first determining subunit 471 in the second determining unit 470. The end identity information and the second client identity information are such that the first determining subunit 471 determines whether the second client is in the login state according to the first signal.
  • the first determining subunit 471 determines that the second client is not in the login state, the first determining subunit 471 sends the second signal and the first client identity information to the prompting subunit 475, so that the prompting subunit 475 is according to the first
  • the second signal sends the prompt information to the first client, where the prompt information is used to prompt the first client user to access the second client user data.
  • the first determining subunit 471 determines that the second client is in the login state, the first determining subunit 471 sends the third signal, the first client identity information, and the second client identity information to the generating and transmitting subunit 472, so that After receiving the third signal, the generating and sending subunit 472 generates the sharing request prompt information according to the first client identity information, and sends the sharing request prompt information to the second client.
  • the sharing request prompt information includes the first client identity information, so that after the second client user views the sharing request prompt information, the second client user needs to access the user data. If the second client user wants the first client user to access the user data, after the second client user selects the user data to be shared, the second client obtains the identification information of the user data to be shared, and according to the to-be-shared
  • the identification information of the user data generates an operation instruction including the identification information, and transmits the operation instruction including the identification information to the data sharing device 400.
  • the acquisition sub-unit 473 of the data sharing device 400 will acquire the operation instruction and deliver the acquired operation instruction to the second determination sub-unit 474.
  • the operation instruction containing the identification information may be composed only of the identification information of the user data to be shared, or may be the identification information of the user data to be shared and other
  • the instruction consists of.
  • an acceptance button is provided in the sharing request prompt information. If the second client user agrees to share the user data, the second client user clicks the accept button, and the second client will identify the user data according to the information to be shared. Click the operation information of the accept button to generate an operation instruction containing the identification information.
  • the second client If the second client user does not want the first client user to access the user data, the second client generates an operation instruction that does not include the identification information according to the operation of the second client user, and sends the operation that does not include the identification information. Command to the cloud server.
  • the acquisition subunit 473 will acquire the operation instruction. For example, a rejection button is provided in the sharing request prompt information. If the second client user does not agree to share the user data, the second client user clicks the reject button, and the second client obtains the operation information of the click rejection button. , an empty operation instruction will be generated, and the empty operation instruction will be sent to the cloud server.
  • the second determining sub-unit 474 determines whether there is identification information of the user data to be shared in the operation instruction. If there is any identification information of the user data to be shared, that is, the operation instruction at this time is an operation instruction containing the identification information, the second client user wants to share the to-share user data corresponding to the identification information to the first client user. At this time, the second determining sub-unit 474 will send the fourth signal, the identification information, and the first client identity information to the generation sending unit 460, so that the generation sending unit 460 generates the user data according to the identification information after acquiring the fourth signal.
  • the second determining sub-unit 474 determines that there is no identification information of the user data to be shared in the operation instruction, that is, the operation instruction is an empty operation instruction, indicating that the second client user does not want to share the data to the first client user. .
  • the second judging subunit 474 will send the fifth signal and the first client identity information to the prompting subunit 475, so that the prompting subunit 475 sends the prompt information that the second client user data cannot be accessed according to the fifth signal to The first client.
  • the data sharing device 400 provided by the embodiment of the present invention can enable the first client user to share the corresponding user data according to the association list set by the second client user when the second client user data needs to be accessed.
  • the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
  • the first determining sub-unit 471 sends the generated sharing request prompt information to the second after determining that the second client is in the login state. The client, so that the second client can share the user data to the first client in time according to the sharing request prompt information. In this way, even if the first client identity information does not exist in the association list, the first client user can obtain the desired user data by using the method, so that the entire sharing process is more rationalized.
  • FIG. 6 is a schematic structural diagram of a server 500 according to an embodiment of the present invention. :
  • the server 500 can include one or more processors 501 of processing cores, a memory 502 of one or more computer readable storage media, a communication unit 503, a power source 504, an input unit 505, and a display unit 506.
  • server structure illustrated in FIG. 6 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • Processor 501 is the control center of the server, connecting various portions of the server with various interfaces and lines, by running or executing software programs and/or modules stored in memory 502, and recalling data stored in memory 502, Execute the server's various functions and process data to monitor the server as a whole.
  • processor 501 can include one or more processing cores; in some embodiments, processor 501 can integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, a user Interfaces, applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 501.
  • the memory 502 can be used to store software programs and modules, the software programs stored in the memory 502 include instructions executable in the processor, and the processor 501 executes various functional applications by running software programs and modules stored in the memory 502, and data processing.
  • the communication unit 503 can be used for receiving and transmitting signals during transceiving information.
  • the communication unit 503 receives signals transmitted by the terminal and hands the signals to one or more processors 501 for processing.
  • the communication unit 503 transmits the feedback signal sent by the processor 501 to the terminal.
  • the server 500 also includes a power source 504 (such as a battery) that powers the various components.
  • the power source can be logically coupled to the processor 501 through a power management system to manage charging, discharging, and power management through the power management system. And other functions.
  • the power supply 504 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the server 500 can also include an input unit 505 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • an input unit 505 can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • the server 500 can also include a display unit 506 that can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the server, which can be represented by graphics, text, icons, videos. And any combination of them to constitute.
  • Display unit 508 can include a display panel, and in some embodiments, a liquid crystal display can be employed (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.
  • LCD Liquid Crystal Display
  • OLED Organic Light Emitting Diode
  • the processor 501 in the server 500 loads the executable file corresponding to the process of one or more applications into the memory 502 according to the following instructions, and is executed by the processor 501 to be stored in the memory.
  • the application in 502 thus implementing various functions, as follows:
  • the list includes the correspondence between the identification information of the user data of the second client and the client identity information, and the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list;
  • the identification information generates a user data sharing link and sends the user data sharing link to the first client.
  • the processor 501 also runs an application stored in the memory 502, as follows: acquiring user data of the second client; acquiring identification information of the user data, and acquiring the second client according to the identification information and the identity of the client An associative list generated by the correspondence between the information.
  • the processor 501 when reading the association list according to the second client identity information, is configured to: search for a storage area corresponding to the second client on the server according to the second client identity information; The storage area reads the associated list.
  • the processor 501 when acquiring the identification information of the user data to be shared corresponding to the first client identity information according to the association list, executing an application: searching from the association list with the first client
  • the identity information of the client identity information that matches the identity information is determined by the identifier information corresponding to the client identity information that is found as the identity information of the user data to be shared corresponding to the first client identity information.
  • the processor 501 before executing the identifier information application for acquiring the user data to be shared corresponding to the first client identity information according to the association list, further executing an application: determining whether the association list exists And the first client identity information; if the first client identity information exists in the association list, acquiring, according to the association list, an identifier of the user data to be shared corresponding to the first client identity information information.
  • the processor 501 After performing the determining whether the first client identity information application exists in the association list, the processor 501 further needs to execute an application, if the first client identity information does not exist in the association list, Determining whether the second client is in a login state; if the second client is in a login state, generating sharing request prompt information according to the first client identity information, and sending the sharing request prompt information to the a second client; obtaining an operation instruction that is sent by the second client according to the sharing request prompt information; determining whether there is identification information of the user data to be shared in the operation instruction; if the operation instruction exists in the operation instruction Sharing the identification information of the user data, generating a user data sharing link according to the identification information, and sending the user data sharing link to the first client; if the operation instruction does not have the user data to be shared Identifying information, sending prompt information that cannot access the second client user data to the first client
  • the processor 501 is further configured to: after the determining, by the operation instruction, the identifier information of the user data to be shared, if the identifier of the user data to be shared is not present in the operation instruction, Sending prompt information that cannot access the second client user data to the first client.
  • the data sharing device provided by the embodiment of the present invention is the same as the data sharing method in the foregoing embodiment, and any method provided in the data sharing method embodiment may be run on the data sharing device, and the specific For details, refer to the data sharing method embodiment, which is not described here.
  • the computer program may be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and may include a method of data sharing as described in the execution process.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the data sharing method described in any of the foregoing embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A data sharing method, device, storage medium, and server, the data sharing method comprising: obtaining a sharing request sent by a first client; reading an association list according to identity information of a second client; according to the association list, obtaining identification information of user data to be shared corresponding to identity information of the first client; generating a user data sharing link according to the identification information, and sending the user data sharing link to the first client.

Description

数据分享方法、装置、存储介质及服务器 Data sharing method, device, storage medium and server
本申请要求于2016年10月25日提交中国专利局、申请号为201610938130.9、发明名称为“数据分享方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, filed on Oct. 25, 2016, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及网络技术领域,特别是涉及一种数据分享方法、装置、存储介质及服务器。The present invention relates to the field of network technologies, and in particular, to a data sharing method, apparatus, storage medium, and server.
背景技术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 client of the cloud server in the mobile terminal, and the user can also share the user data in the cloud server to other users.
技术问题technical problem
本发明实施例提供一种数据分享方法、装置、存储介质及服务器,可以提高数据分享的便利性。The embodiment of the invention provides a data sharing method, device, storage medium and server, which can improve the convenience of data sharing.
技术解决方案Technical solution
第一方面,本发明实施例提供一种数据分享方法,包括:In a first aspect, an embodiment of the present invention provides a data sharing method, including:
获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;Obtaining a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;Reading the association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及Obtaining, according to the association list, identification information of the user data to be shared corresponding to the first client identity information;
根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。Generating a user data sharing link according to the identification information, and transmitting the user data sharing link to the first client.
第二方面,本发明实施例提供一种数据分享装置,包括:In a second aspect, an embodiment of the present invention provides a data sharing apparatus, including:
第一获取单元,用于获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;a first obtaining unit, configured to acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
读取单元,用于根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;a reading unit, configured to read an association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
第二获取单元,用于根据所述关联列表获取与所述第一客户端身份信息相对应的用户数据的标识信息;以及a second acquiring unit, configured to acquire, according to the association list, identifier information of user data corresponding to the first client identity information;
生成发送单元,用于根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。And generating a sending unit, configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
第三方面,本发明实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述数据分享方法。In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the data sharing method.
第四方面,本发明实施例提供一种服务器,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行上述数据分享方法。In a fourth aspect, an embodiment of the present invention provides a server, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the foregoing data sharing. method.
有益效果 Beneficial effect
本发明实施例提供一种数据分享方法、装置、存储介质及服务器,可以提高数据分享的便利性。The embodiment of the invention provides a data sharing method, device, storage medium and server, which can improve the convenience of data sharing.
附图说明DRAWINGS
图1为本发明一实施例的数据分享系统的场景示意图。FIG. 1 is a schematic diagram of a scenario of a data sharing system according to an embodiment of the present invention.
图2为本发明数据分享方法的流程图。2 is a flow chart of a data sharing method of the present invention.
图3为本发明数据分享方法的又一流程图。FIG. 3 is still another flowchart of the data sharing method of the present invention.
图4为本发明数据分享装置的结构示意图。FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention.
图5为本发明数据分享装置的又一结构示意图。FIG. 5 is still another schematic structural diagram of a data sharing apparatus according to the present invention.
图6为本发明一实施例的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明中的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。例如,在不脱离本发明的范围的情况下,可以将第一控件称为第二控件,且类似地,可将第二控件称为第一控件。第一控件与第二控件两者都是控件,但其不是同一控件。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms "first", "second", and the like 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. For example, a first control may be referred to as a second control, and similarly, a second control may be referred to as 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 "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion.
本发明实施例提供一种数据分享方法,包括:An embodiment of the present invention provides a data sharing method, including:
获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;Obtaining a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;Reading the association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及Obtaining, according to the association list, identification information of the user data to be shared corresponding to the first client identity information;
根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。Generating a user data sharing link according to the identification information, and transmitting the user data sharing link to the first client.
在一些实施例中,在所述获取第一客户端发送的索取分享请求之前,还包括:In some embodiments, before the obtaining the request for sharing sent by the first client, the method further includes:
获取第二客户端的用户数据;Obtaining user data of the second client;
获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表。Acquiring the identification information of the user data, and acquiring an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
在一些实施例中,根据所述第二客户端身份信息读取关联列表的步骤包括:In some embodiments, the step of reading the association list according to the second client identity information comprises:
根据所述第二客户端身份信息查找服务器上与所述第二客户端对应的存储区域;Searching, according to the second client identity information, a storage area corresponding to the second client on the server;
从所述存储区域读取关联列表。The associated list is read from the storage area.
在一些实施例中,根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息的步骤包括:In some embodiments, the step of acquiring the identification information of the user data to be shared corresponding to the first client identity information according to the association list comprises:
从所述关联列表中查找与所述第一客户端身份信息相匹配的客户端身份信息;Finding client identity information that matches the first client identity information from the association list;
将查找到的客户端身份信息对应的标识信息确定为与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
在一些实施例中,在所述根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息之前,还包括:In some embodiments, before the obtaining the identification information of the user data to be shared corresponding to the first client identity information according to the association list, the method further includes:
判断所述关联列表中是否存在所述第一客户端身份信息;Determining whether the first client identity information exists in the association list;
若所述关联列表中存在所述第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息。If the first client identity information exists in the association list, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list.
在一些实施例中,在所述判断所述关联列表中是否存在所述第一客户端身份信息之后,还包括:In some embodiments, after the determining whether the first client identity information exists in the association list, the method further includes:
若所述关联列表中不存在所述第一客户端身份信息,则判断所述第二客户端是否处于登陆状态;If the first client identity information does not exist in the association list, determining whether the second client is in a login state;
若所述第二客户端处于登陆状态,则根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;If the second client is in the login state, generating sharing request prompt information according to the first client identity information, and sending the sharing request prompt information to the second client;
获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;Obtaining an operation instruction that is sent by the second client according to the sharing request prompt information;
判断所述操作指令中是否存在待分享用户数据的标识信息;Determining whether there is identification information of the user data to be shared in the operation instruction;
若所述操作指令中存在所述待分享用户数据的标识信息,则根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。If the identification information of the user data to be shared exists in the operation instruction, generate a user data sharing link according to the identification information, and send the user data sharing link to the first client.
在一些实施例中,在所述判断所述操作指令中是否存在待分享用户数据的标识信息之后,还包括:In some embodiments, after determining whether the identification information of the user data is to be shared in the operation instruction, the method further includes:
若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。If the identification information of the user data to be shared does not exist in the operation instruction, sending the prompt information that cannot access the second client user data to the first client.
本发明实施例提供的数据分享系统主要包括云端服务器及终端,该云端服务器与终端可通过有线或无线网络进行连接。The data sharing system provided by the embodiment of the present invention mainly includes a cloud server and a terminal, and the cloud server and the terminal can be connected through a wired or wireless network.
请参考图1,图1为本发明实施例提供的数据分享系统的场景示意图,该数据分享系统包括云端服务器和终端,其中,云端服务器集成有本发明提供的数据分享装置,云端服务器存储有用户的用户数据及关联列表,其中关联列表包括用户的用户数据相对应的标识信息与客户端身份信息的对应关系。本发明中的第一客户端和第二客户端安装在终端内,内置有第一客户端的终端如图1所示,内置有第二客户端的终端图1未示出。在此,终端可以为手机、平板电脑等电子设备。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a data sharing system according to 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 the user. The user data and the associated list, wherein the association list includes the correspondence between the identification information corresponding to the user data of the user and the identity information of the client. The first client and the second client in the present invention are installed in the terminal, and the terminal in which the first client is built is shown in FIG. 1 , and the terminal in which the second client is built is not shown in FIG. 1 . Here, the terminal can be an electronic device such as a mobile phone or a tablet computer.
当第一客户端用户需要访问第二客户端的用户数据时,第一客户端用户通过第一客户端发送索取分享请求至云端服务器。云端服务器将获取第一客户端发送的索取分享请求。其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息。When the first client user needs to access the user data of the second client, the first client user sends a request for sharing to the cloud server through the first client. The cloud server will obtain the request for sharing from the first client. The request sharing request includes first client identity information and second client identity information.
云端服务器获取到该索取分享请求后,将通过解析获取索取分享请求中的第一客户端身份信息和第二客户端身份信息,并根据所述第二客户端身份信息读取所述第二客户端存储在云端服务器内的关联列表。其中,所述关联列表包括所述第二客户端的用户数据的标识信息与客户端身份信息的对应关系。云端服务器根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。从而使得所述第一客户端通过点击用户数据分享链接即可以浏览或下载第二客户端的相应用户数据。After obtaining the request for sharing, the cloud server obtains the first client identity information and the second client identity information in the request for sharing by parsing, and reads the second client according to the second client identity information. The associated list stored in the cloud server. The association list includes a correspondence between the identification information of the user data of the second client and the identity information of the client. And obtaining, by the cloud server, identifier information of the user data to be shared corresponding to the first client identity information according to the association list, generating a user data sharing link according to the identifier information, and sending the user data sharing link to the The first client. Thereby, the first client can browse or download the corresponding user data of the second client by clicking the user data sharing link.
本实施例提供一种数据分享方法,其包括:获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。The embodiment provides a data sharing method, including: acquiring a request sharing request sent by a first client, where the requesting sharing request includes first client identity information and second client identity information; The client identity information reads the association list, where the association list includes a correspondence between the identification information of the user data of the second client and the client identity information; and the association list is obtained according to the identity information of the first client. And identifying information about the user data to be shared; and generating a user data sharing link according to the identification information, and sending the user data sharing link to the first client.
请参照图2,图2为本发明数据分享方法的流程图。该数据分享方法应用于云端服务器中,当然,在其他一些实施例中,该数据分享方法也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 2. FIG. 2 is a flowchart of a data sharing method according to the present invention. The data sharing method is applied to the cloud server. Of course, in some other embodiments, the data sharing method can also be applied to other devices, and is not specifically limited herein.
在步骤S101中,获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息。In step S101, the request sharing request sent by the first client is obtained, where the request sharing request includes the first client identity information and the second client identity 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 generates a request for sharing and sends the request for sharing to the cloud server. The cloud server will get the request for sharing. The request for sharing includes the first client identity information and the second client identity information. It should be noted that the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
在一些实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端身份信息。例如,第一客户端用户在对话框的相应位置处输入第二客户端用户电话号码。第一客户端用户点击确定按钮后,第一客户端将自动获取第一客户端身份信息,并根据第一客户端身份信息和第二客户端用户电话号码生成一个索取分享请求,并将该索取分享请求发送至云端服务器。In some embodiments, when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page. The first client will pop up a dialog box prompting the user to enter the second client identity information. For example, the first client user enters a second client user phone number at a corresponding location in the dialog box. After the first client user clicks the OK button, the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request The sharing request is sent to the cloud server.
在步骤S102中,根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系。In step S102, the association list is read according to the second client identity information, where the association list includes a correspondence between the identity information of the user data of the second client and the client identity information.
当云端服务器接收到第一客户端发送的索取分享请求后,通过解析该索取分享请求来获取第一客户端身份信息和第二客户端身份信息。同时,根据第二客户端身份信息查找与其相对应的第二客户端在云端服务器的存储区域,并从该存储区域读取第二客户端用户设置的关联列表。其中,该关联列表包括第二客户端同步至云端服务器中用户数据的标识信息与客户端身份信息的对应关系。After receiving the request for sharing by the first client, the cloud server obtains the first client identity information and the second client identity information by parsing the request sharing request. At the same time, the storage area of the cloud server corresponding to the second client corresponding to the second client is searched according to the second client identity information, and the association list set by the second client user is read from the storage area. The association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
例如,第二客户端用户在同步用户数据至云端服务器之后,第二客户端用户为同步至云端服务器内的用户数据设置分享对象。例如,第二客户端用户设置100张生活照片的分享对象为妈妈的手机号码,即第二客户端用户希望该100张生活照片与妈妈的手机号码建立对应关系。第二客户端用户在点击确认按钮后,第二客户端将根据该100张生活照片的标识信息和妈妈的手机号码生成关联列表,并将该关联列表发送至云端服务器,云端服务器将存储该关联列表。在此,用户数据的标识信息可以为用户数据在云端服务器内的存储地址,当然也可以为其他的起到标识性作用的信息,只要云端服务器根据该标识信息可以找到相应的用户数据即可,在此不做具体限制。For example, after the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for synchronizing the user data in the cloud server. For example, the second client user sets the sharing object of the 100 life photos as the mother's mobile phone number, that is, the second client user desires that the 100 life photos are associated with the mother's mobile phone number. After the second client user clicks the confirmation button, the second client generates an association list according to the identification information of the 100 life photos and the mobile phone number of the mother, and sends the association list to the cloud server, and the cloud server stores the association. List. Here, the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
在步骤S103中,根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息。In step S103, the identifier information of the user data to be shared corresponding to the first client identity information is acquired according to the association list.
云端服务器在读取到第二客户端用户预先设置的关联列表后,将根据该关联列表获取与第一客户端身份信息相对应的待分享用户数据的标识信息。具体地,云端服务器在该关联列表中查找与第一客户端身份信息相匹配的客户端身份信息,并将该客户端身份信息对应的标识信息作为与第一客户端身份信息相对应的待分享用户数据的标识信息。After the cloud server reads the association list preset by the second client user, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list. Specifically, the cloud server searches for the client identity information that matches the first client identity information in the association list, and uses the identity information corresponding to the client identity information as the to-be-shared corresponding to the first client identity information. Identification information of user data.
例如,当第一客户端用户为第二客户端用户的妈妈时,第一客户端身份信息为妈妈的手机号码,云端服务器在读取的关联列表中通过查找与妈妈的手机号码相匹配的客户端身份信息来获取到该100张生活照片的标识信息。可以理解的是,该100张生活照片为待分享用户数据。For example, when the first client user is the mother of the second client user, the first client identity information is the mom's mobile phone number, and the cloud server searches for the client matching the mom's mobile phone number in the read association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
在步骤S104中,根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。In step S104, a user data sharing link is generated according to the identification information, and the user data sharing link is sent to the first client.
当云端服务器查找到与第一客户端身份信息相对应的标识信息后,将根据该标识信息生成用户数据分享链接,并发送该用户数据分享链接至第一客户端,使得第一客户端用户通过点击该用户数据分享链接即可获得第二客户端存储在云服务器内的用户数据。After the cloud server finds the identifier information corresponding to the first client identity information, the user data sharing link is generated according to the identifier information, and the user data sharing link is sent to the first client, so that the first client user passes Click the user data sharing link to get the user data stored in the cloud server by the second client.
本实施例中的数据分享方法,通过获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。该数据分享方法可以让第一客户端用户需要访问第二客户端用户数据时,云端服务器根据第二客户端用户提前设置的关联列表将相应的用户数据分享给第一客户端用户,而在此分享过程中,第二客户端用户无需登陆客户端进行分享等操作,给数据分享带来便利,增强了用户在数据分享过程中的满意度。The data sharing method in this embodiment is configured to obtain a request for sharing by the first client, where the request for sharing includes the first client identity information and the second client identity information; according to the second client identity The information reading association list, wherein the association list includes a correspondence between the identification information of the user data of the second client and the client identity information; and the to-be-shared corresponding to the identity information of the first client is obtained according to the association list. Identification information of the user data; and generating a user data sharing link according to the identification information, and transmitting the user data sharing link to the first client. When the data sharing method allows the first client user to access the second client user data, the cloud server shares the corresponding user data with the first client user according to the association list set by the second client user in advance. During the sharing process, the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
请参照图3,图3为本发明数据分享方法的又一流程图。该数据分享方法应用于云端服务器中,当然,在其他一些实施例中,该数据分享方法也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 3. FIG. 3 is still another flowchart of the data sharing method of the present invention. The data sharing method is applied to the cloud server. Of course, in some other embodiments, the data sharing method can also be applied to other devices, and is not specifically limited herein.
在一些实施例中,数据分享方法包括:In some embodiments, the data sharing method comprises:
步骤S201:获取第二客户端的用户数据;Step S201: Acquire user data of the second client.
步骤S202:获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表;Step S202: Acquire the identification information of the user data, and obtain an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
步骤S203:获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;Step S203: Acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
步骤S204:根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;Step S204: The association list is read according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information.
步骤S205:判断所述关联列表中是否存在所述第一客户端身份信息;若存在所述第一客户端身份信息,则执行步骤S206;若不存在所述第一客户端身份信息,则执行步骤S208;Step S205: determining whether the first client identity information exists in the association list; if the first client identity information exists, performing step S206; if the first client identity information is not present, executing Step S208;
步骤S206:根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;Step S206: Acquire, according to the association list, identifier information of the user data to be shared corresponding to the first client identity information.
步骤S207:根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端;Step S207: Generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client;
步骤S208:判断所述第二客户端是否处于登陆状态;若所述第二客户端处于登陆状态,则执行步骤S209;若所述第二客户端不处于登陆状态,则执行步骤S212;Step S208: determining whether the second client is in the login state; if the second client is in the login state, step S209 is performed; if the second client is not in the login state, executing step S212;
步骤S209:根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;Step S209: Generate sharing request prompt information according to the first client identity information, and send the sharing request prompt information to the second client.
步骤S210:获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;Step S210: Acquire an operation instruction that is feedback by the second client according to the sharing request prompt information;
步骤S211:判断所述操作指令中是否存在待分享用户数据的标识信息;若所述操作指令中存在所述待分享用户数据的标识信息,则执行步骤S207;若所述操作指令中不存在所述待分享用户数据的标识信息,则执行步骤S212;Step S211: determining whether there is identification information of the user data to be shared in the operation instruction; if there is identification information of the user data to be shared in the operation instruction, step S207 is performed; if the operation instruction does not exist After the identification information of the shared user data is described, step S212 is performed;
步骤S212:发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。Step S212: Send prompt information that cannot access the second client user data to the first client.
下面将结合图3对上述数据分享方法做详细地说明。The above data sharing method will be described in detail below with reference to FIG.
在步骤S201和步骤S202中,第二客户端用户登陆云端服务器的客户端后,通过客户端内的上传按钮将终端内的用户数据上传至云端服务器。云端服务器将获取第二客户端发送的用户数据,并将该用户数据存储在云端服务器的相应位置处。同时,云端服务器将获取该用户数据的标识信息,并发送该用户数据的标识信息至第二客户端。在此,用户数据的标识信息可以为用户数据在云端服务器内的存储地址,当然也可以为其他的起到标识性作用的信息,只要云端服务器根据该标识信息可以找到相应的用户数据即可,在此不做具体限制。In step S201 and step S202, after the second client user logs in to the client of the cloud server, the user data in the terminal is uploaded to the cloud server through the upload button in the client. The cloud server will obtain the user data sent by the second client, and store the user data at the corresponding location of the cloud server. At the same time, the cloud server obtains the identification information of the user data, and sends the identification information of the user data to the second client. Here, the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
第二客户端用户将用户数据同步至云端服务器后,第二客户端用户将为同步至云端服务器内的用户数据设置分享对象,其中,设置分享对象指为用户数据分配其他客户端身份信息。第二客户端用户在完成为用户数据设置分享对象后,第二客户端将根据从云端服务器获取的用户数据的标识信息和与其相对应的客户端身份信息生成关联列表,并将该关联列表发送至云端服务器。After the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for the user data synchronized to the cloud server, wherein setting the sharing object refers to allocating other client identity information to the user data. After the second client user finishes setting the sharing object for the user data, the second client generates an association list according to the identification information of the user data acquired from the cloud server and the client identity information corresponding thereto, and sends the association list. To the cloud server.
例如,第二客户端用户将100张生活照片的分享对象均设置为妈妈的手机号码,即该100张生活照片将与妈妈的手机号码建立对应关系。第二客户端用户在点击确认按钮后,第二客户端将根据从云端服务器获取的该100张生活照片的标识信息和妈妈的手机号码生成关联列表,并将该关联列表发送至云端服务器。云端服务器获取该关联列表,并存储该关联列表,其中,该关联列表在后续数据分享过程使用。For example, the second client user sets the sharing object of 100 life photos as the mobile phone number of the mother, that is, the 100 life photos will be associated with the mother's mobile phone number. After the second client user clicks the confirmation button, the second client generates an association list according to the identification information of the 100 life photos acquired from the cloud server and the mobile phone number of the mother, and sends the association list to the cloud server. The cloud server obtains the association list and stores the association list, wherein the association list is used in a subsequent data sharing process.
可以理解的是,在关联列表中,一个用户数据的标识信息可以与多个客户端身份信息相对应,同理,多个用户数据的标识信息也可以与一个客户端身份信息相对应,在此不做具体限制。同时,每个用户数据的标识信息所对应的客户端身份信息不局限于一种,例如,每个用户数据的标识信息可以仅与客户端身份信息中的用户电话号码相对应,或者,每个用户数据的标识信息与客户端身份信息中的用户名、用户电话号码和注册邮箱等多种身份信息相对应,在此不做具体限制。It can be understood that, in the association list, the identification information of one user data may correspond to multiple client identity information. Similarly, the identification information of multiple user data may also correspond to a client identity information, where No specific restrictions are imposed. Meanwhile, the identity information of the client corresponding to the identification information of each user data is not limited to one type. For example, the identification information of each user data may correspond only to the user phone number in the client identity information, or each The identification information of the user data corresponds to multiple identity information such as the user name, the user's phone number, and the registered mailbox in the client identity information, and no specific restrictions are imposed herein.
在步骤S203中,当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享请求,并将该索取分享请求发送至云端服务器。云端服务器将获取该索取分享请求。其中,该索取分享请求包括第一客户端身份信息和第二客户端身份信息。在此需要说明的是,客户端身份信息包括客户端用户名、客户端用户电话号码、注册邮箱等信息,在此不对客户端身份信息的具体内容做限制。In step S203, 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 generates a request for sharing and sends the request for sharing. To the cloud server. The cloud server will get the request for sharing. The request for sharing includes the first client identity information and the second client identity information. It should be noted that the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
在一些实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端身份信息。例如,第一客户端用户在对话框的相应位置处输入第二客户端用户电话号码。第一客户端用户点击确定按钮后,第一客户端将自动获取第一客户端身份信息,并根据第一客户端身份信息和第二客户端用户电话号码生成一个索取分享请求,并将该索取分享请求发送至云端服务器。In some embodiments, when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page. The first client will pop up a dialog box prompting the user to enter the second client identity information. For example, the first client user enters a second client user phone number at a corresponding location in the dialog box. After the first client user clicks the OK button, the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request The sharing request is sent to the cloud server.
在步骤S204中,当云端服务器接收到第一客户端发送的索取分享请求后,通过解析该索取分享请求来获取第一客户端身份信息和第二客户端身份信息。同时,根据第二客户端身份信息查找与其相对应的第二客户端在云端服务器的存储区域,并从该存储区域读取第二客户端用户预先设置的关联列表。其中,该关联列表包括第二客户端同步至云端服务器中用户数据的标识信息与客户端身份信息的对应关系。In step S204, after receiving the request for sharing by the first client, the cloud server obtains the first client identity information and the second client identity information by parsing the request sharing request. At the same time, the storage area of the cloud server corresponding to the second client corresponding to the second client is searched according to the second client identity information, and the association list preset by the second client user is read from the storage area. The association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
在步骤S205中,云端服务器读取第二客户端存储在服务器内的关联列表后,将判断该关联列表内是否存在第一客户端身份信息。例如,当第一客户端身份信息为用户电话号码时,则云端服务器将判断该关联列表内是否存在该用户电话号码。In step S205, after the cloud server reads the association list stored in the server by the second client, it is determined whether the first client identity information exists in the association list. For example, when the first client identity information is a user phone number, the cloud server will determine whether the user phone number exists in the association list.
在步骤S205中,若云端服务器判断出该关联列表中存在第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息,即执行步骤S206。In step S205, if the cloud server determines that the first client identity information exists in the association list, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list, that is, Step S206 is performed.
在步骤S206中,云端服务器在读取到第二客户端用户预先设置的关联列表后,将根据该关联列表获取与第一客户端身份信息相对应的待分享用户数据的标识信息。具体地,云端服务器在该关联列表中查找与第一客户端身份信息相匹配的客户端身份信息,并将该客户端身份信息对应的标识信息作为与第一客户端身份信息相对应的待分享用户数据的标识信息。In step S206, after reading the association list preset by the second client user, the cloud server acquires the identifier information of the user data to be shared corresponding to the first client identity information according to the association list. Specifically, the cloud server searches for the client identity information that matches the first client identity information in the association list, and uses the identity information corresponding to the client identity information as the to-be-shared corresponding to the first client identity information. Identification information of user data.
例如,当第一客户端用户为第二客户端用户的妈妈时,第一客户端身份信息为妈妈的手机号码,云端服务器在读取的关联列表中通过查找与妈妈的手机号码相匹配的客户端身份信息来获取到该100张生活照片的标识信息。可以理解的是,该100张生活照片为待分享用户数据。For example, when the first client user is the mother of the second client user, the first client identity information is the mom's mobile phone number, and the cloud server searches for the client matching the mom's mobile phone number in the read association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
在步骤S207中,当云端服务器查找到与第一客户端身份信息相对应的标识信息后,将根据该标识信息生成用户数据分享链接,并发送该用户数据分享链接至第一客户端,使得第一客户端用户通过点击该用户数据分享链接即可获得第二客户端存储在云服务器内的用户数据。In step S207, after the cloud server finds the identifier information corresponding to the first client identity information, the user data sharing link is generated according to the identifier information, and the user data sharing link is sent to the first client, so that the first A client user can obtain user data stored in the cloud server by the second client by clicking the user data sharing link.
可以理解的是,上述步骤是在关联列表中存在该第一客户端身份信息的情况下的数据分享方法。若在步骤S205中,云端服务器判断出该关联列表中不存在第一客户端身份信息,则云端服务器将进一步判断第二客户端是否处于登陆状态,即执行步骤S208。It can be understood that the above step is a data sharing method in the case where the first client identity information exists in the association list. If the cloud server determines that the first client identity information does not exist in the association list, the cloud server further determines whether the second client is in the login state, that is, step S208 is performed.
在步骤S208中,若云端服务器判断出第二客户端未处于登陆状态,则云端服务器将发送提示信息至第一客户端,其中,该提示信息用于提示第一客户端用户无法访问第二客户端用户数据,即执行步骤S212。In step S208, if the cloud server determines that the second client is not in the login state, the cloud server sends a prompt message to the first client, where the prompt information is used to prompt the first client user to access the second client. End user data, that is, step S212 is performed.
若云端服务器判断出第二客户端处于登陆状态,则云端服务器将根据第一客户端身份信息生成分享请求提示信息,并发送该分享请求提示信息至第二客户端,即执行步骤S209。If the cloud server determines that the second client is in the login state, the cloud server generates the sharing request prompt information according to the first client identity information, and sends the sharing request prompt information to the second client, that is, step S209 is performed.
在此,分享请求提示信息中包括第一客户端身份信息,使得第二客户端用户通过第二客户端观看到该分享请求提示信息后,得知第一客户端用户需要访问其用户数据。若第二客户端用户希望第一客户端用户访问其用户数据,则在第二客户端用户选择好待分享用户数据后,第二客户端将获取待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成含有该标识信息的操作指令,并发送该含有标识信息的操作指令至云端服务器。Here, the sharing request prompt information includes the first client identity information, so that after the second client user views the sharing request prompt information, the second client user needs to access the user data. If the second client user wants the first client user to access the user data, after the second client user selects the user data to be shared, the second client obtains the identification information of the user data to be shared, and according to the to-be-shared The identification information of the user data generates an operation instruction containing the identification information, and sends the operation instruction containing the identification information to the cloud server.
需要说明的是,在第二客户端用户同意分享其用户数据的情况下,含有标识信息的操作指令可以仅由待分享用户数据的标识信息组成,也可以由待分享用户数据的标识信息和其他指令组成。例如,在分享请求提示信息中设有接受按钮,若第二客户端用户同意分享其用户数据时,第二客户端用户点击该接受按钮,第二客户端将根据待分享用户数据的标识信息和点击接受按钮的操作信息生成含有标识信息的操作指令。It should be noted that, in the case that the second client user agrees to share the user data, the operation instruction containing the identification information may be composed only of the identification information of the user data to be shared, or may be the identification information of the user data to be shared and other The instruction consists of. For example, an acceptance button is provided in the sharing request prompt information. If the second client user agrees to share the user data, the second client user clicks the accept button, and the second client will identify the user data according to the information to be shared. Click the operation information of the accept button to generate an operation instruction containing the identification information.
若第二客户端用户不希望第一客户端用户访问其用户数据,则第二客户端根据第二客户端用户的操作生成一个不含有标识信息的操作指令,并发送该不含有标识信息的操作指令至云端服务器。例如,在分享请求提示信息中设有拒绝按钮,若第二客户端用户不同意分享其用户数据时,则第二客户端用户点击拒绝按钮,第二客户端获取到点击拒绝按钮的操作信息后,将生成一个空的操作指令,并发送该空的操作指令至云端服务器。If the second client user does not want the first client user to access the user data, the second client generates an operation instruction that does not include the identification information according to the operation of the second client user, and sends the operation that does not include the identification information. Command to the cloud server. For example, a rejection button is provided in the sharing request prompt information. If the second client user does not agree to share the user data, the second client user clicks the reject button, and the second client obtains the operation information of the click rejection button. , an empty operation instruction will be generated, and the empty operation instruction will be sent to the cloud server.
在步骤S210和S211中,云端服务器获取第二客户端根据分享请求提示信息反馈的操作指令,并判断该操作指令中是否存在待分享用户数据的标识信息。若存在待分享用户数据的标识信息,即此时的操作指令为含有标识信息的操作指令,说明第二客户端用户希望分享标识信息所对应的待分享用户数据给第一客户端用户。此时,云端服务器将执行步骤S207,即根据标识信息生成用户数据分享链接,并发送用户数据分享链接至第一客户端,这样,第一客户端用户可以通过点击该数据分享链接即可以浏览或下载待分享用户数据,从而实现在第一客户端身份信息不存在关联列表的情况下,依然可以实现数据分享。In steps S210 and S211, the cloud server obtains an operation instruction that is feedback from the second client according to the sharing request prompt information, and determines whether there is identification information of the user data to be shared in the operation instruction. If there is any identification information of the user data to be shared, that is, the operation instruction at this time is an operation instruction containing the identification information, the second client user wants to share the to-share user data corresponding to the identification information to the first client user. At this time, the cloud server performs step S207, that is, generates a user data sharing link according to the identification information, and sends a user data sharing link to the first client, so that the first client user can browse or click the data sharing link. The user data to be shared is downloaded, so that data sharing can still be realized if the first client identity information does not have an associated list.
若云端服务器判断出该操作指令中不存在待分享用户数据的标识信息,即该操作指令为空的操作指令,说明第二客户端用户不希望分享其数据给第一客户端用户。此时,云端服务器将发送无法访问第二客户端用户数据的提示信息至第一客户端,即执行步骤S212。If the cloud server determines that there is no identification information of the user data to be shared in the operation instruction, that is, the operation instruction is an empty operation instruction, indicating that the second client user does not want to share the data to the first client user. At this time, the cloud server sends a prompt message that the second client user data cannot be accessed to the first client, that is, step S212 is performed.
为了更加清晰地解释说明上述实施例中的数据分享方法,下面将结合具体的应用场景来说明。In order to explain the data sharing method in the above embodiment more clearly, the following will be described in conjunction with a specific application scenario.
例如,第一用户通过电脑登陆第一客户端,并上传电脑内的培训资料至云端服务器。几天后,当第一用户的同事(即第二用户)需要重新浏览培训资料时,第二用户将登陆第二客户端,并点击第二客户端页面内的索取分享按钮。此时,第二客户端将弹出一个对话框。第二用户在对话框内输入第一用户的电话号码,并点击确认按钮。第二客户端将自动获取第二客户端的身份信息,并根据第二客户端的身份信息和第一用户的电话号码生成索取分享请求。第二客户端将发送该索取分享请求至云端服务器。For example, the first user logs in to the first client through the computer and uploads the training materials in the computer to the cloud server. A few days later, when the first user's colleague (ie, the second user) needs to re-browse the training materials, the second user will log in to the second client and click the request sharing button in the second client page. At this point, the second client will pop up a dialog box. The second user enters the first user's phone number in the dialog box and clicks the confirmation button. The second client will automatically obtain the identity information of the second client, and generate a request for sharing according to the identity information of the second client and the phone number of the first user. The second client will send the request for sharing to the cloud server.
云端服务器接收到该索取分享请求后,通过解析获取第二客户端的身份信息和第一用户的电话号码。根据该第一用户的电话号码查找到相对应的第一客户端,进而查找到第一客户端的用户数据所存储的区域。从该存储区域读取关联列表。After receiving the request for sharing, the cloud server obtains the identity information of the second client and the phone number of the first user through parsing. Finding a corresponding first client according to the first user's phone number, and then searching for an area where the first client's user data is stored. The associated list is read from this storage area.
由于第一用户在上传培训资料至云端服务器时,第一用户未对该培训资料设置分享范围,即第一用户的关联列表中不存在培训资料所对应的标识信息;或者,第一用户对培训资料设置分享范围时,未将该培训资料所对应的标识信息与第二客户端身份信息相对应,即关联列表中不存在第二客户端身份信息。The first user does not set the sharing scope of the training data when the first user uploads the training data to the cloud server, that is, the identification information corresponding to the training data does not exist in the association list of the first user; or the first user pairs training When the data setting sharing range, the identification information corresponding to the training data is not corresponding to the second client identity information, that is, the second client identity information does not exist in the association list.
在此种情况下,云端服务器在读取到关联列表后,将判断出该关联列表中不存在第二客户端身份信息。此时云端服务器将继续判断第一客户端是否处于登陆状态。若此时第一用户正使用客户端时,云端服务器将根据第二客户端身份信息生成分享请求提示信息,并发送至第一客户端。第一客户端根据该分享请求提示信息得知第二用户需要其培训资料。In this case, after reading the association list, the cloud server determines that the second client identity information does not exist in the association list. At this point, the cloud server will continue to determine whether the first client is in the login state. If the first user is using the client at this time, the cloud server generates a sharing request prompt message according to the second client identity information, and sends the message to the first client. The first client knows that the second user needs his training materials according to the sharing request prompt information.
若第一用户同意将培训资料分享给其同事(即第二用户),则第一用户在分享请求提示信息栏中点选接受按钮。此时第一客户端弹出选择对话框供第一用户选择相应的待分享用户数据。第一用户点选培训资料文件夹并点击确定按钮。第一客户端将获取培训资料的标识信息,并根据该标识信息生成操作指令,同时发送该操作指令至云端服务器。If the first user agrees to share the training materials with his or her colleagues (ie, the second user), the first user clicks the accept button in the sharing request prompt information field. At this time, the first client pops up a selection dialog box for the first user to select the corresponding user data to be shared. The first user clicks on the training profile folder and clicks the OK button. The first client will obtain the identification information of the training material, and generate an operation instruction according to the identification information, and simultaneously send the operation instruction to the cloud server.
云端服务器根据获取该操作指令,并判断出该操作指令中含有待分享用户数据的标识信息。云端服务器将根据该标识信息生成用户数据分享链接,并发送用户数据分享链接至第二客户端。这样,第二用户就可以通过点击该数据分享链接来浏览或下载培训资料。The cloud server obtains the operation instruction according to the operation instruction, and determines that the operation instruction includes the identification information of the user data to be shared. The cloud server generates a user data sharing link according to the identification information, and sends a user data sharing link to the second client. In this way, the second user can browse or download the training materials by clicking on the data sharing link.
上述应用场景仅仅是为了进一步说明上述实施例中的数据分享方法,不能用于限制上述实施例中数据分享方法的适用范围。The foregoing application scenario is only for further explaining the data sharing method in the foregoing embodiment, and cannot be used to limit the applicable scope of the data sharing method in the foregoing embodiment.
本发明实施例提供的数据分享方法,可以让第一客户端用户在需要访问第二客户端用户数据时,云端服务器根据第二客户端用户提前设置的关联列表将相应的用户数据分享给第一客户端用户,而在此分享过程中,第二客户端用户无需登陆客户端进行分享等操作,给数据分享带来便利,增强了用户在数据分享过程中的满意度。同时,当关联列表中不存在第一客户端身份信息时,云端服务器在判断出第二客户端处于登陆状态后,将生成的分享请求提示信息发送至第二客户端,从而使得第二客户端可以根据该分享请求提示信息及时分享用户数据给第一客户端。这样即使第一客户端身份信息不存在关联列表中,第一客户端用户也可以通过该方法获取到想要的用户数据,使得整个分享过程更加的合理化。The data sharing method provided by the embodiment of the present invention may enable the first client user to share the corresponding user data to the first user according to the association list set by the second client user when the second client user data needs to be accessed. The client user, in the sharing process, the second client user does not need to log in to the client to share operations, etc., which brings convenience to data sharing and enhances user satisfaction in the data sharing process. At the same time, when the first client identity information does not exist in the association list, the cloud server sends the generated sharing request prompt information to the second client after determining that the second client is in the login state, so that the second client The user data can be shared to the first client in time according to the sharing request prompt information. In this way, even if the first client identity information does not exist in the association list, the first client user can obtain the desired user data by using the method, so that the entire sharing process is more rationalized.
本发明实施例还提供一种数据分享装置,包括:The embodiment of the invention further provides a data sharing device, comprising:
第一获取单元,用于获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;a first obtaining unit, configured to acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
读取单元,用于根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;a reading unit, configured to read an association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
第二获取单元,用于根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及a second acquiring unit, configured to acquire, according to the association list, identifier information of the user data to be shared corresponding to the first client identity information;
生成发送单元,用于根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。And generating a sending unit, configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
在一些实施例中,所述数据分享装置还包括第三获取单元,所述第三获取单元用于:In some embodiments, the data sharing device further includes a third obtaining unit, where the third acquiring unit is configured to:
获取第二客户端的用户数据;获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表。Acquiring user data of the second client; obtaining identification information of the user data, and acquiring an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
在一些实施例中,所述读取单元用于:In some embodiments, the reading unit is for:
根据所述第二客户端身份信息查找服务器上与所述第二客户端对应的存储区域;Searching, according to the second client identity information, a storage area corresponding to the second client on the server;
从所述存储区域读取关联列表。The associated list is read from the storage area.
在一些实施例中,所述第二获取单元用于:In some embodiments, the second obtaining unit is configured to:
从所述关联列表中查找与所述第一客户端身份信息相匹配的客户端身份信息;Finding client identity information that matches the first client identity information from the association list;
将查找到的客户端身份信息对应的标识信息确定为与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
在一些实施例中,所述数据分享装置还包括第一判断单元;In some embodiments, the data sharing device further includes a first determining unit;
所述第一判断单元用于判断所述关联列表中是否存在所述第一客户端身份信息;The first determining unit is configured to determine whether the first client identity information exists in the association list;
所述第二获取单元具体用于若所述关联列表中存在所述第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的用户数据的标识信息。And the second acquiring unit is configured to: if the first client identity information exists in the association list, obtain, according to the association list, identifier information of user data corresponding to the first client identity information.
在一些实施例中,所述数据分享装置还包括第二判断单元,其中,所述第二判断单元包括第一判断子单元、生成发送子单元、获取子单元和第二判断子单元;In some embodiments, the data sharing apparatus further includes a second determining unit, wherein the second determining unit includes a first determining subunit, a generating transmitting subunit, an obtaining subunit, and a second judging subunit;
所述第一判断子单元用于若所述关联列表中不存在所述第一客户端身份信息,则判断所述第二客户端是否处于登陆状态;The first determining subunit is configured to determine whether the second client is in a login state if the first client identity information does not exist in the association list;
所述生成发送子单元用于若所述第二客户端处于登陆状态,则根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;The generating and sending subunit is configured to generate sharing request prompt information according to the first client identity information, and send the sharing request prompt information to the second client, if the second client is in a login state ;
所述获取子单元用于获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;The obtaining subunit is configured to acquire an operation instruction that is sent by the second client according to the sharing request prompt information;
所述第二判断子单元用于判断所述操作指令中是否存在待分享用户数据的标识信息;The second determining subunit is configured to determine whether the identification information of the user data to be shared exists in the operation instruction;
所述生成发送单元具体用于若所述操作指令中存在所述待分享用户数据的标识信息,则根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。The generating and sending unit is specifically configured to: if the identification information of the user data to be shared exists in the operation instruction, generate a user data sharing link according to the identification information, and send the user data sharing link to the first Client.
在一些实施例中,所述第二判断单元还包括提示子单元;所述提示子单元用于若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。In some embodiments, the second determining unit further includes a prompting subunit; the prompting subunit is configured to send the inaccessible information if the identification information of the user data to be shared does not exist in the operation instruction Two prompt information of the client user data to the first client.
请参照图4,图4为本发明数据分享装置的结构示意图。该数据分享装置300应用于云端服务器中。当然,在其他一些实施例中,该数据分享装置300也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a data sharing apparatus according to the present invention. The data sharing device 300 is applied to a cloud server. Of course, in some other embodiments, the data sharing device 300 can also be applied to other devices, and is not specifically limited herein.
在一些实施例中,数据分享装置300包括第一获取单元310、读取单元320、第二获取单元330和生成发送单元340。其中,获取单元310用于获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;读取单元320用于根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;第二获取单元330用于根据所述关联列表获取与所述第一客户端身份信息相对应的用户数据的标识信息;生成发送单元340用于根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。In some embodiments, the data sharing device 300 includes a first obtaining unit 310, a reading unit 320, a second obtaining unit 330, and a generating transmitting unit 340. The obtaining unit 310 is configured to obtain a request sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information, and the reading unit 320 is configured to use the second The client identity information reads the association list, where the association list includes the correspondence between the identification information of the user data of the second client and the client identity information, and the second obtaining unit 330 is configured to obtain, according to the association list, the The identification information of the user data corresponding to the client identity information; the generation sending unit 340 is configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
下面将结合图4对上述实施例中的数据分享装置300做详细地说明。The data sharing device 300 in the above embodiment will be described in detail below with reference to FIG.
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享请求,并将该索取分享请求发送至云端服务器的数据分享装置300。数据分享装置300内的第一获取单元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 generates a data requesting the sharing request and sending the request for sharing to the cloud server. Sharing device 300. The first obtaining unit 310 in the data sharing device 300 will acquire the request sharing request. The request for sharing includes the first client identity information and the second client identity information. It should be noted that the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
在一些实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端身份信息。例如,第一客户端用户在对话框的相应位置处输入第二客户端用户电话号码。第一客户端用户点击确定按钮后,第一客户端将自动获取第一客户端身份信息,并根据第一客户端身份信息和第二客户端用户电话号码生成一个索取分享请求,并将该索取分享请求发送至云端服务器的数据分享装置300。In some embodiments, when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page. The first client will pop up a dialog box prompting the user to enter the second client identity information. For example, the first client user enters a second client user phone number at a corresponding location in the dialog box. After the first client user clicks the OK button, the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request The sharing request is sent to the data sharing device 300 of the cloud server.
当第一获取单元310接收到第一客户端发送的索取分享请求后,通过解析该索取分享请求来获取第一客户端身份信息和第二客户端身份信息。第一获取单元310将第一客户端身份信息和第二客户端身份信息发送至读取单元320。After the first obtaining unit 310 receives the request for sharing request sent by the first client, the first client identity information and the second client identity information are obtained by parsing the request sharing request. The first obtaining unit 310 transmits the first client identity information and the second client identity information to the reading unit 320.
读取单元320根据第二客户端身份信息查找与其相对应的第二客户端在云端服务器的存储区域,并从该存储区域读取第二客户端用户设置的关联列表。其中,该关联列表包括第二客户端同步至云端服务器中用户数据的标识信息与客户端身份信息的对应关系。The reading unit 320 searches the storage area of the cloud server corresponding to the second client corresponding to the second client identity information, and reads the association list set by the second client user from the storage area. The association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
例如,第二客户端用户在同步用户数据至云端服务器之后,第二客户端用户为同步至云端服务器内的用户数据设置分享对象。例如,第二客户端用户设置100张生活照片的分享对象为妈妈的手机号码,即第二客户端用户希望该100张生活照片与妈妈的手机号码建立对应关系。第二客户端用户在点击确认按钮后,第二客户端将根据该100张生活照片的标识信息和妈妈的手机号码生成关联列表,并将该关联列表发送至云端服务器,云端服务器将存储该关联列表。在此,用户数据的标识信息可以为用户数据在云端服务器内的存储地址,当然也可以为其他的起到标识性作用的信息,只要云端服务器根据该标识信息可以找到相应的用户数据即可,在此不做具体限制。For example, after the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for synchronizing the user data in the cloud server. For example, the second client user sets the sharing object of the 100 life photos as the mother's mobile phone number, that is, the second client user desires that the 100 life photos are associated with the mother's mobile phone number. After the second client user clicks the confirmation button, the second client generates an association list according to the identification information of the 100 life photos and the mobile phone number of the mother, and sends the association list to the cloud server, and the cloud server stores the association. List. Here, the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
读取单元320在读取到第二客户端用户预先设置的关联列表后,将该关联列表和第一客户端身份信息发送至第二获取单元330。第二获取单元330将根据该关联列表获取与第一客户端身份信息相对应的待分享用户数据的标识信息。具体地,第二获取单元330在该关联列表中查找与第一客户端身份信息相匹配的客户端身份信息,并将该客户端身份信息对应的标识信息作为与第一客户端身份信息相对应的待分享用户数据的标识信息。After reading the association list preset by the second client user, the reading unit 320 sends the association list and the first client identity information to the second obtaining unit 330. The second obtaining unit 330 will acquire the identification information of the user data to be shared corresponding to the first client identity information according to the association list. Specifically, the second obtaining unit 330 searches for the client identity information that matches the first client identity information in the association list, and the identifier information corresponding to the client identity information is associated with the first client identity information. Identification information of the user data to be shared.
例如,当第一客户端用户为第二客户端用户的妈妈时,第一客户端身份信息为妈妈的手机号码,第二获取单元330在关联列表中通过查找与妈妈的手机号码相匹配的客户端身份信息来获取到该100张生活照片的标识信息。可以理解的是,该100张生活照片为待分享用户数据。For example, when the first client user is the mother of the second client user, the first client identity information is the mom's mobile phone number, and the second obtaining unit 330 searches for the client matching the mom's mobile phone number in the association list. End identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
当第二获取单元330查找到与第一客户端身份信息相对应的标识信息后,将该标识信息和第一客户端身份信息发送至生成发送单元340。生成发送单元340将根据该标识信息生成用户数据分享链接,并发送该用户数据分享链接至第一客户端,使得第一客户端用户通过点击该用户数据分享链接即可获得第二客户端存储在云服务器内的用户数据。After the second obtaining unit 330 finds the identification information corresponding to the first client identity information, the identifier information and the first client identity information are sent to the generation sending unit 340. The generating and sending unit 340 generates a user data sharing link according to the identification information, and sends the user data sharing link to the first client, so that the first client user can obtain the second client by clicking the user data sharing link. User data within the cloud server.
在一些实施例中,数据分享装置300通过第一获取单元310获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;读取单元320根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;第二获取单元330根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及生成发送单元340根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。该数据分享装置300可以让第一客户端用户需要访问第二客户端用户数据时,根据第二客户端用户提前设置的关联列表将相应的用户数据分享给第一客户端用户,而在此分享过程中,第二客户端用户无需登陆客户端进行分享等操作,给数据分享带来便利,增强了用户在数据分享过程中的满意度。In some embodiments, the data sharing device 300 acquires the request sharing request sent by the first client by using the first obtaining unit 310, wherein the request sharing request includes the first client identity information and the second client identity information; The unit 320 reads the association list according to the second client identity information, where the association list includes the correspondence between the identification information of the user data of the second client and the client identity information; and the second obtaining unit 330 is configured according to the association list. Obtaining identification information of the user data to be shared corresponding to the first client identity information; and generating a sending unit 340, generating a user data sharing link according to the identifier information, and sending the user data sharing link to the first Client. The data sharing device 300 can share the corresponding user data with the first client user according to the association list set by the second client user when the first client user needs to access the second client user data, and share the corresponding user data. In the process, the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process.
请参照图5,图5为本发明数据分享装置的又一结构示意图。该数据分享装置400应用于云端服务器中。当然,在其他一些实施例中,该数据分享装置400也可以应用在其他设备中,在此不做具体限制。Please refer to FIG. 5. FIG. 5 is still another schematic structural diagram of a data sharing apparatus according to the present invention. The data sharing device 400 is applied to a cloud server. Of course, in some other embodiments, the data sharing device 400 can also be applied to other devices, and is not specifically limited herein.
在一些实施例中,数据分享装置400包括:第三获取单元410、第一获取单元420、读取单元430、第一判断单元440、第二获取单元450、生成发送单元460和第二判断单元470,其中,第二判断单元470包括第一判断子单元471、生成发送子单元472、获取子单元473、第二判断子单元474和提示子单元475。In some embodiments, the data sharing apparatus 400 includes: a third obtaining unit 410, a first obtaining unit 420, a reading unit 430, a first determining unit 440, a second obtaining unit 450, a generating transmitting unit 460, and a second determining unit. 470. The second determining unit 470 includes a first determining subunit 471, a generating transmitting subunit 472, an obtaining subunit 473, a second judging subunit 474, and a prompting subunit 475.
下面将结合图5详细地说明上述实施例中的数据分享装置400。The data sharing device 400 in the above embodiment will be described in detail below with reference to FIG.
第二客户端用户登陆云端服务器的客户端后,通过客户端内的上传按钮将终端内的用户数据上传至云端服务器。云端服务器中的第三获取单元410将获取第二客户端发送的用户数据,并将该用户数据存储在云端服务器的相应位置处。同时,第三获取单元410将获取该用户数据的标识信息,并发送该用户数据的标识信息至第二客户端。在此,用户数据的标识信息可以为用户数据在云端服务器内的存储地址,当然也可以为其他的起到标识性作用的信息,只要云端服务器根据该标识信息可以找到相应的用户数据即可,在此不做具体限制。After the second client user logs in to the client of the cloud server, the user data in the terminal is uploaded to the cloud server through the upload button in the client. The third obtaining unit 410 in the cloud server will acquire the user data sent by the second client, and store the user data at a corresponding location of the cloud server. At the same time, the third obtaining unit 410 will acquire the identification information of the user data, and send the identification information of the user data to the second client. Here, the identification information of the user data may be a storage address of the user data in the cloud server, and may of course be other information that plays a role of identification, as long as the cloud server can find the corresponding user data according to the identification information. No specific restrictions are made here.
第二客户端用户将用户数据同步至云端服务器后,第二客户端用户将为同步至云端服务器内的用户数据设置分享对象,其中,设置分享对象指为用户数据分配其他客户端身份信息。第二客户端用户在完成为用户数据设置分享对象后,第二客户端将根据从第三获取单元410获取的用户数据的标识信息和与其相对应的客户端身份信息生成关联列表,并将该关联列表发送至云端服务器。云端服务器中的第三获取单元410将获取该关联列表。After the second client user synchronizes the user data to the cloud server, the second client user sets a sharing object for the user data synchronized to the cloud server, wherein setting the sharing object refers to allocating other client identity information to the user data. After the second client user finishes setting the sharing object for the user data, the second client generates an association list according to the identification information of the user data acquired from the third obtaining unit 410 and the client identity information corresponding thereto, and the The associated list is sent to the cloud server. The third obtaining unit 410 in the cloud server will acquire the association list.
例如,第二客户端用户将100张生活照片的分享对象均设置为妈妈的手机号码,即该100张生活照片将与妈妈的手机号码建立对应关系。第二客户端用户在点击确认按钮后,第二客户端将根据从云端服务器获取的该100张生活照片的标识信息和妈妈的手机号码生成关联列表,并将该关联列表发送至云端服务器。第三获取单元410获取该关联列表,并存储该关联列表,其中,该关联列表在后续数据分享过程使用。For example, the second client user sets the sharing object of 100 life photos as the mobile phone number of the mother, that is, the 100 life photos will be associated with the mother's mobile phone number. After the second client user clicks the confirmation button, the second client generates an association list according to the identification information of the 100 life photos acquired from the cloud server and the mobile phone number of the mother, and sends the association list to the cloud server. The third obtaining unit 410 acquires the association list and stores the association list, wherein the association list is used in a subsequent data sharing process.
可以理解的是,在关联列表中,一个用户数据的标识信息可以与多个客户端身份信息相对应,同理,多个用户数据的标识信息也可以与一个客户端身份信息相对应,在此不做具体限制。同时,每个用户数据的标识信息所对应的客户端身份信息不局限于一种,例如,每个用户数据的标识信息可以仅与客户端身份信息中的用户电话号码相对应,或者,每个用户数据的标识信息与客户端身份信息中的用户名、用户电话号码和注册邮箱等多种身份信息相对应,在此不做具体限制。It can be understood that, in the association list, the identification information of one user data may correspond to multiple client identity information. Similarly, the identification information of multiple user data may also correspond to a client identity information, where No specific restrictions are imposed. Meanwhile, the identity information of the client corresponding to the identification information of each user data is not limited to one type. For example, the identification information of each user data may correspond only to the user phone number in the client identity information, or each The identification information of the user data corresponds to multiple identity information such as the user name, the user's phone number, and the registered mailbox in the client identity information, and no specific restrictions are imposed herein.
当第一客户端用户需要索取第二客户端用户的用户数据时,根据第一客户端用户的操作,第一客户端将生成一个索取分享请求,并将该索取分享请求发送至云端服务器的数据分享装置400。数据分享装置400内的第一获取单元420将获取该索取分享请求。其中,该索取分享请求包括第一客户端身份信息和第二客户端身份信息。在此需要说明的是,客户端身份信息包括客户端用户名、客户端用户电话号码、注册邮箱等信息,在此不对客户端身份信息的具体内容做限制。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 generates a data requesting the sharing request and sending the request for sharing to the cloud server. Sharing device 400. The first obtaining unit 420 in the data sharing device 400 will acquire the request sharing request. The request for sharing includes the first client identity information and the second client identity information. It should be noted that the client identity information includes the client username, the client user phone number, the registered mailbox, and the like, and the specific content of the client identity information is not limited herein.
在一些实施例中,当第一客户端用户需要索取第二客户端用户的用户数据时,第一客户端用户点击第一客户端页面内的索取分享入口。第一客户端将弹出一个对话框,提示用户输入第二客户端身份信息。例如,第一客户端用户在对话框的相应位置处输入第二客户端用户电话号码。第一客户端用户点击确定按钮后,第一客户端将自动获取第一客户端身份信息,并根据第一客户端身份信息和第二客户端用户电话号码生成一个索取分享请求,并将该索取分享请求发送至云端服务器的数据分享装置400。In some embodiments, when the first client user needs to request user data of the second client user, the first client user clicks on the request sharing portal in the first client page. The first client will pop up a dialog box prompting the user to enter the second client identity information. For example, the first client user enters a second client user phone number at a corresponding location in the dialog box. After the first client user clicks the OK button, the first client automatically obtains the first client identity information, and generates a request for sharing according to the first client identity information and the second client user phone number, and requests the request The sharing request is sent to the data sharing device 400 of the cloud server.
当第一获取单元420接收到第一客户端发送的索取分享请求后,通过解析该索取分享请求来获取第一客户端身份信息和第二客户端身份信息,并将获取到的第一客户端身份信息和第二客户端身份信息发送至读取单元430。读取单元430根据第二客户端身份信息查找与其相对应的第二客户端在云端服务器的存储区域,并从该存储区域读取第二客户端用户预先设置的关联列表。其中,该关联列表包括第二客户端同步至云端服务器中用户数据的标识信息与客户端身份信息的对应关系。After the first obtaining unit 420 receives the request sharing request sent by the first client, the first client identity information and the second client identity information are obtained by parsing the request sharing request, and the obtained first client is obtained. The identity information and the second client identity information are sent to the reading unit 430. The reading unit 430 searches the storage area of the cloud server corresponding to the second client corresponding to the second client identity information, and reads the association list preset by the second client user from the storage area. The association list includes a correspondence between the identifier information of the user data synchronized by the second client to the cloud server and the client identity information.
读取单元430将读取到的关联列表、第一客户端身份信息和第二客户端身份信息传递给第一判断单元440。第一判断单元440将判断该关联列表内是否存在第一客户端身份信息。例如,当第一客户端身份信息为用户电话号码时,则第一判断单元440将判断该关联列表内是否存在该用户电话号码。The reading unit 430 passes the read association list, the first client identity information, and the second client identity information to the first determining unit 440. The first determining unit 440 will determine whether the first client identity information exists in the associated list. For example, when the first client identity information is the user phone number, the first determining unit 440 determines whether the user phone number exists in the association list.
若第一判断单元440判断出该关联列表中存在第一客户端身份信息,则第一判断单元440将该关联列表和第一客户端身份信息传递至第二获取单元450。第二获取单元450将根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息。If the first determining unit 440 determines that the first client identity information exists in the association list, the first determining unit 440 passes the association list and the first client identity information to the second acquiring unit 450. The second obtaining unit 450 acquires the identification information of the user data to be shared corresponding to the first client identity information according to the association list.
具体地,第二获取单元450在该关联列表中查找与第一客户端身份信息相匹配的客户端身份信息,并将该客户端身份信息对应的标识信息作为与第一客户端身份信息相对应的待分享用户数据的标识信息。Specifically, the second obtaining unit 450 searches for the client identity information that matches the first client identity information in the association list, and uses the identifier information corresponding to the client identity information as the first client identity information. Identification information of the user data to be shared.
例如,当第一客户端用户为第二客户端用户的妈妈时,第一客户端身份信息为妈妈的手机号码,第二获取单元450在读取的关联列表中通过查找与妈妈的手机号码相匹配的客户端身份信息来获取到该100张生活照片的标识信息。可以理解的是,该100张生活照片为待分享用户数据。For example, when the first client user is the mother of the second client user, the first client identity information is the mom's mobile phone number, and the second obtaining unit 450 searches for the mobile phone number of the mom in the read association list. Matching client identity information to obtain identification information of the 100 life photos. It can be understood that the 100 life photos are user data to be shared.
当第二获取单元450查找到与第一客户端身份信息相对应的标识信息后,第二获取单元450将该标识信息和第一客户端身份信息传递至生成发送单元460中。生成发送单元460将根据该标识信息生成用户数据分享链接,并发送该用户数据分享链接至第一客户端,使得第一客户端用户通过点击该用户数据分享链接即可获得第二客户端存储在云服务器内的用户数据。After the second obtaining unit 450 finds the identification information corresponding to the first client identity information, the second obtaining unit 450 passes the identification information and the first client identity information to the generation sending unit 460. The generating and sending unit 460 generates a user data sharing link according to the identification information, and sends the user data sharing link to the first client, so that the first client user can obtain the second client by clicking the user data sharing link. User data within the cloud server.
可以理解的是,上述步骤是在第一判断单元440判断出关联列表中存在该第一客户端身份信息的情况下的数据分享方法。若第一判断单元440判断出该关联列表中不存在第一客户端身份信息,则第一判断单元440将向第二判断单元470中的第一判断子单元471发送第一信号、第一客户端身份信息和第二客户端身份信息,使得第一判断子单元471根据该第一信号判断第二客户端是否处于登陆状态。It can be understood that the foregoing step is a data sharing method in a case where the first determining unit 440 determines that the first client identity information exists in the associated list. If the first determining unit 440 determines that the first client identity information does not exist in the association list, the first determining unit 440 sends the first signal, the first client to the first determining subunit 471 in the second determining unit 470. The end identity information and the second client identity information are such that the first determining subunit 471 determines whether the second client is in the login state according to the first signal.
若第一判断子单元471判断出第二客户端未处于登陆状态,则第一判断子单元471向提示子单元475发送第二信号和第一客户端身份信息,使得提示子单元475根据该第二信号发送提示信息至第一客户端,其中,该提示信息用于提示第一客户端用户无法访问第二客户端用户数据。If the first determining subunit 471 determines that the second client is not in the login state, the first determining subunit 471 sends the second signal and the first client identity information to the prompting subunit 475, so that the prompting subunit 475 is according to the first The second signal sends the prompt information to the first client, where the prompt information is used to prompt the first client user to access the second client user data.
若第一判断子单元471判断出第二客户端处于登陆状态,则第一判断子单元471向生成发送子单元472发送第三信号、第一客户端身份信息和第二客户端身份信息,使得生成发送子单元472在接收到该第三信号后,根据第一客户端身份信息生成分享请求提示信息,并发送该分享请求提示信息至第二客户端。If the first determining subunit 471 determines that the second client is in the login state, the first determining subunit 471 sends the third signal, the first client identity information, and the second client identity information to the generating and transmitting subunit 472, so that After receiving the third signal, the generating and sending subunit 472 generates the sharing request prompt information according to the first client identity information, and sends the sharing request prompt information to the second client.
在此,分享请求提示信息中包括第一客户端身份信息,使得第二客户端用户通过第二客户端观看到该分享请求提示信息后,得知第一客户端用户需要访问其用户数据。若第二客户端用户希望第一客户端用户访问其用户数据,则在第二客户端用户选择好待分享用户数据后,第二客户端将获取待分享用户数据的标识信息,并根据待分享用户数据的标识信息生成含有该标识信息的操作指令,并发送该含有标识信息的操作指令至数据分享装置400。数据分享装置400的获取子单元473将获取该操作指令,并将获取到的操作指令传递至第二判断子单元474。Here, the sharing request prompt information includes the first client identity information, so that after the second client user views the sharing request prompt information, the second client user needs to access the user data. If the second client user wants the first client user to access the user data, after the second client user selects the user data to be shared, the second client obtains the identification information of the user data to be shared, and according to the to-be-shared The identification information of the user data generates an operation instruction including the identification information, and transmits the operation instruction including the identification information to the data sharing device 400. The acquisition sub-unit 473 of the data sharing device 400 will acquire the operation instruction and deliver the acquired operation instruction to the second determination sub-unit 474.
需要说明的是,在第二客户端用户同意分享其用户数据的情况下,含有标识信息的操作指令可以仅由待分享用户数据的标识信息组成,也可以由待分享用户数据的标识信息和其他指令组成。例如,在分享请求提示信息中设有接受按钮,若第二客户端用户同意分享其用户数据时,第二客户端用户点击该接受按钮,第二客户端将根据待分享用户数据的标识信息和点击接受按钮的操作信息生成含有标识信息的操作指令。It should be noted that, in the case that the second client user agrees to share the user data, the operation instruction containing the identification information may be composed only of the identification information of the user data to be shared, or may be the identification information of the user data to be shared and other The instruction consists of. For example, an acceptance button is provided in the sharing request prompt information. If the second client user agrees to share the user data, the second client user clicks the accept button, and the second client will identify the user data according to the information to be shared. Click the operation information of the accept button to generate an operation instruction containing the identification information.
若第二客户端用户不希望第一客户端用户访问其用户数据,则第二客户端根据第二客户端用户的操作生成一个不含有标识信息的操作指令,并发送该不含有标识信息的操作指令至云端服务器。获取子单元473将获取该操作指令。例如,在分享请求提示信息中设有拒绝按钮,若第二客户端用户不同意分享其用户数据时,则第二客户端用户点击拒绝按钮,第二客户端获取到点击拒绝按钮的操作信息后,将生成一个空的操作指令,并发送该空的操作指令至云端服务器。If the second client user does not want the first client user to access the user data, the second client generates an operation instruction that does not include the identification information according to the operation of the second client user, and sends the operation that does not include the identification information. Command to the cloud server. The acquisition subunit 473 will acquire the operation instruction. For example, a rejection button is provided in the sharing request prompt information. If the second client user does not agree to share the user data, the second client user clicks the reject button, and the second client obtains the operation information of the click rejection button. , an empty operation instruction will be generated, and the empty operation instruction will be sent to the cloud server.
第二判断子单元474判断该操作指令中是否存在待分享用户数据的标识信息。若存在待分享用户数据的标识信息,即此时的操作指令为含有标识信息的操作指令,说明第二客户端用户希望分享标识信息所对应的待分享用户数据给第一客户端用户。此时,第二判断子单元474将向生成发送单元460发送第四信号、标识信息和第一客户端身份信息,使得生成发送单元460在获取到该第四信号后,根据标识信息生成用户数据分享链接,并发送用户数据分享链接至第一客户端,这样,第一客户端用户可以通过点击该数据分享链接即可以浏览或下载待分享用户数据,从而实现在第一客户端身份信息不存在关联列表的情况下,依然可以实现数据分享。The second determining sub-unit 474 determines whether there is identification information of the user data to be shared in the operation instruction. If there is any identification information of the user data to be shared, that is, the operation instruction at this time is an operation instruction containing the identification information, the second client user wants to share the to-share user data corresponding to the identification information to the first client user. At this time, the second determining sub-unit 474 will send the fourth signal, the identification information, and the first client identity information to the generation sending unit 460, so that the generation sending unit 460 generates the user data according to the identification information after acquiring the fourth signal. Sharing the link and sending a user data sharing link to the first client, so that the first client user can browse or download the user data to be shared by clicking the data sharing link, thereby realizing that the first client identity information does not exist. In the case of an associated list, data sharing can still be achieved.
若第二判断子单元474判断出该操作指令中不存在待分享用户数据的标识信息,即该操作指令为空的操作指令,说明第二客户端用户不希望分享其数据给第一客户端用户。此时,第二判断子单元474将向提示子单元475发送第五信号和第一客户端身份信息,使得提示子单元475根据该第五信号发送无法访问第二客户端用户数据的提示信息至第一客户端。If the second determining sub-unit 474 determines that there is no identification information of the user data to be shared in the operation instruction, that is, the operation instruction is an empty operation instruction, indicating that the second client user does not want to share the data to the first client user. . At this time, the second judging subunit 474 will send the fifth signal and the first client identity information to the prompting subunit 475, so that the prompting subunit 475 sends the prompt information that the second client user data cannot be accessed according to the fifth signal to The first client.
本发明实施例提供的数据分享装置400,可以让第一客户端用户在需要访问第二客户端用户数据时,数据分享装置400根据第二客户端用户提前设置的关联列表将相应的用户数据分享给第一客户端用户,而在此分享过程中,第二客户端用户无需登陆客户端进行分享等操作,给数据分享带来便利,增强了用户在数据分享过程中的满意度。同时,当关联列表中不存在第一客户端身份信息时,第一判断子单元471在判断出第二客户端处于登陆状态后,生产发送子单元472将生成的分享请求提示信息发送至第二客户端,从而使得第二客户端可以根据该分享请求提示信息及时分享用户数据给第一客户端。这样即使第一客户端身份信息不存在关联列表中,第一客户端用户也可以通过该方法获取到想要的用户数据,使得整个分享过程更加的合理化。The data sharing device 400 provided by the embodiment of the present invention can enable the first client user to share the corresponding user data according to the association list set by the second client user when the second client user data needs to be accessed. For the first client user, in the sharing process, the second client user does not need to log in to the client to share and other operations, which brings convenience to data sharing and enhances user satisfaction in the data sharing process. Meanwhile, when the first client identity information does not exist in the association list, the first determining sub-unit 471 sends the generated sharing request prompt information to the second after determining that the second client is in the login state. The client, so that the second client can share the user data to the first client in time according to the sharing request prompt information. In this way, even if the first client identity information does not exist in the association list, the first client user can obtain the desired user data by using the method, so that the entire sharing process is more rationalized.
本发明实施例提供了一种服务器500,其中可以集成如上实施例所提供的任一数据备份装置,参考图6,其示出了本发明实施例所涉及的服务器500的结构示意图,具体来讲:The embodiment of the present invention provides a server 500, wherein any of the data backup devices provided in the above embodiments may be integrated. Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a server 500 according to an embodiment of the present invention. :
该服务器500可以包括一个或者一个以上处理核心的处理器501、一个或一个以上计算机可读存储介质的存储器502、通信单元503、电源504、输入单元505、以及显示单元506等部件。The server 500 can include one or more processors 501 of processing cores, a memory 502 of one or more computer readable storage media, a communication unit 503, a power source 504, an input unit 505, and a display unit 506.
本领域技术人员可以理解,图6中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:It will be understood by those skilled in the art that the server structure illustrated in FIG. 6 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
处理器501是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。Processor 501 is the control center of the server, connecting various portions of the server with various interfaces and lines, by running or executing software programs and/or modules stored in memory 502, and recalling data stored in memory 502, Execute the server's various functions and process data to monitor the server as a whole.
在一些实施例中,处理器501可包括一个或多个处理核心;在一些实施例中,处理器501可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器501中。In some embodiments, processor 501 can include one or more processing cores; in some embodiments, processor 501 can integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, a user Interfaces, applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 501.
存储器502可用于存储软件程序以及模块,存储器502存储的软件程序中包含有可在处理器中执行的指令,处理器501通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。The memory 502 can be used to store software programs and modules, the software programs stored in the memory 502 include instructions executable in the processor, and the processor 501 executes various functional applications by running software programs and modules stored in the memory 502, and data processing.
通信单元503可用于收发信息过程中,信号的接收和发送,特别地,通讯单元503接收终端发送的信号,并将信号交由一个或者一个以上处理器501处理。同时,通讯单元503将处理器501发出的反馈信号发送给终端。The communication unit 503 can be used for receiving and transmitting signals during transceiving information. In particular, the communication unit 503 receives signals transmitted by the terminal and hands the signals to one or more processors 501 for processing. At the same time, the communication unit 503 transmits the feedback signal sent by the processor 501 to the terminal.
服务器500还包括给各个部件供电的电源504(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源504还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server 500 also includes a power source 504 (such as a battery) that powers the various components. In some embodiments, the power source can be logically coupled to the processor 501 through a power management system to manage charging, discharging, and power management through the power management system. And other functions. The power supply 504 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
该服务器500还可包括输入单元505,该输入单元505可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。 The server 500 can also include an input unit 505 that can be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
该服务器500还可包括显示单元506,该显示单元506可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元508可包括显示面板,在一些实施例中,可以采用液晶显示器 (LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。The server 500 can also include a display unit 506 that can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the server, which can be represented by graphics, text, icons, videos. And any combination of them to constitute. Display unit 508 can include a display panel, and in some embodiments, a liquid crystal display can be employed (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting) Diode) and other forms to configure the display panel.
在一些实施例中,服务器500中的处理器501会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能,如下:In some embodiments, the processor 501 in the server 500 loads the executable file corresponding to the process of one or more applications into the memory 502 according to the following instructions, and is executed by the processor 501 to be stored in the memory. The application in 502, thus implementing various functions, as follows:
获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。Obtaining a request sharing request sent by the first client, where the requesting sharing request includes first client identity information and second client identity information; and reading an association list according to the second client identity information, wherein the association The list includes the correspondence between the identification information of the user data of the second client and the client identity information, and the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list; The identification information generates a user data sharing link and sends the user data sharing link to the first client.
处理器501还运行存储在存储器502中的应用程序,如下:获取第二客户端的用户数据;获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表。The processor 501 also runs an application stored in the memory 502, as follows: acquiring user data of the second client; acquiring identification information of the user data, and acquiring the second client according to the identification information and the identity of the client An associative list generated by the correspondence between the information.
处理器501在根据所述第二客户端身份信息读取关联列表时,执行如下应用程序:根据所述第二客户端身份信息查找服务器上与所述第二客户端对应的存储区域;从所述存储区域读取关联列表。The processor 501, when reading the association list according to the second client identity information, is configured to: search for a storage area corresponding to the second client on the server according to the second client identity information; The storage area reads the associated list.
处理器501在根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息时,执行如下应用程序:从所述关联列表中查找与所述第一客户端身份信息相匹配的客户端身份信息;将查找到的客户端身份信息对应的标识信息确定为与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The processor 501, when acquiring the identification information of the user data to be shared corresponding to the first client identity information according to the association list, executing an application: searching from the association list with the first client The identity information of the client identity information that matches the identity information is determined by the identifier information corresponding to the client identity information that is found as the identity information of the user data to be shared corresponding to the first client identity information.
处理器501在执行所述根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息应用程序之前,还执行如下应用程序:判断所述关联列表中是否存在所述第一客户端身份信息;若所述关联列表中存在所述第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The processor 501, before executing the identifier information application for acquiring the user data to be shared corresponding to the first client identity information according to the association list, further executing an application: determining whether the association list exists And the first client identity information; if the first client identity information exists in the association list, acquiring, according to the association list, an identifier of the user data to be shared corresponding to the first client identity information information.
处理器501在执行判断所述关联列表中是否存在所述第一客户端身份信息应用程序之后,还需要执行如下应用程序:若所述关联列表中不存在所述第一客户端身份信息,则判断所述第二客户端是否处于登陆状态;若所述第二客户端处于登陆状态,则根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;判断所述操作指令中是否存在待分享用户数据的标识信息;若所述操作指令中存在所述待分享用户数据的标识信息,则根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端;若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。After performing the determining whether the first client identity information application exists in the association list, the processor 501 further needs to execute an application, if the first client identity information does not exist in the association list, Determining whether the second client is in a login state; if the second client is in a login state, generating sharing request prompt information according to the first client identity information, and sending the sharing request prompt information to the a second client; obtaining an operation instruction that is sent by the second client according to the sharing request prompt information; determining whether there is identification information of the user data to be shared in the operation instruction; if the operation instruction exists in the operation instruction Sharing the identification information of the user data, generating a user data sharing link according to the identification information, and sending the user data sharing link to the first client; if the operation instruction does not have the user data to be shared Identifying information, sending prompt information that cannot access the second client user data to the first client
处理器501在所述判断所述操作指令中是否存在待分享用户数据的标识信息之后,还用于执行如下应用程序:若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。The processor 501 is further configured to: after the determining, by the operation instruction, the identifier information of the user data to be shared, if the identifier of the user data to be shared is not present in the operation instruction, Sending prompt information that cannot access the second client user data to the first client.
在上述实施例中,每个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对数据分享方法的详细描述,此处不再赘述。In the foregoing embodiments, the descriptions of the embodiments are different, and the detailed descriptions of the data sharing methods are not described herein.
本发明实施例提供的所述数据分享装置与上文实施例中的数据分享方法属于同一构思,在所述数据分享装置上可以运行所述数据分享方法实施例中提供的任一方法,其具体实现过程详见所述数据分享方法实施例,此处不再赘述。The data sharing device provided by the embodiment of the present invention is the same as the data sharing method in the foregoing embodiment, and any method provided in the data sharing method embodiment may be run on the data sharing device, and the specific For details, refer to the data sharing method embodiment, which is not described here.
需要说明的是,对本发明所述数据分享方法而言,本领域普通测试人员可以理解实现本发明实施例所述数据分享方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述数据分享的方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, in the data sharing method of the present invention, a common tester in the art can understand all or part of the process of implementing the data sharing method in the embodiment of the present invention, which can be completed by controlling a related hardware through a computer program. The computer program may be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and may include a method of data sharing as described in the execution process. The flow of an embodiment. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
对本发明实施例的所述数据分享装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the data sharing device of the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module, if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .
本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一实施例所述的数据分享方法。The embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the data sharing method described in any of the foregoing embodiments.
以上对本发明实施例所提供的一种数据分享方法、装置、存储介质及服务器进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The data sharing method, device, storage medium and server provided by the embodiments of the present invention are described in detail. The principles and implementations of the present invention are described in the specific examples. The description of the above embodiments is only used. To help understand the method of the present invention and its core ideas; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific embodiments and application scope, in summary, the contents of this specification It should not be construed as limiting the invention.
综上所述,虽然本发明已以一些实施例揭露如上,但上述实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In the above, the present invention has been disclosed in some embodiments, but the above embodiments are not intended to limit the present invention, and those skilled in the art can make various kinds without departing from the spirit and scope of the invention. The scope of protection of the present invention is determined by the scope defined by the claims.

Claims (16)

  1. 一种数据分享方法,其中,包括:A data sharing method, including:
    获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;Obtaining a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
    根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;Reading the association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
    根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及Obtaining, according to the association list, identification information of the user data to be shared corresponding to the first client identity information;
    根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。Generating a user data sharing link according to the identification information, and transmitting the user data sharing link to the first client.
  2. 根据权利要求1所述的数据分享方法,其中,在所述获取第一客户端发送的索取分享请求之前,还包括:The data sharing method according to claim 1, wherein before the obtaining the request for sharing by the first client, the method further comprises:
    获取第二客户端的用户数据;Obtaining user data of the second client;
    获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表。Acquiring the identification information of the user data, and acquiring an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
  3. 根据权利要求1所述的数据分享方法,其中,根据所述第二客户端身份信息读取关联列表,包括:The data sharing method according to claim 1, wherein the reading the association list according to the second client identity information comprises:
    根据所述第二客户端身份信息查找服务器上与所述第二客户端对应的存储区域;Searching, according to the second client identity information, a storage area corresponding to the second client on the server;
    从所述存储区域读取关联列表。The associated list is read from the storage area.
  4. 根据权利要求1所述的数据分享方法,其中,根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息,包括:The data sharing method according to claim 1, wherein the obtaining the identification information of the user data to be shared corresponding to the first client identity information according to the association list comprises:
    从所述关联列表中查找与所述第一客户端身份信息相匹配的客户端身份信息;Finding client identity information that matches the first client identity information from the association list;
    将查找到的客户端身份信息对应的标识信息确定为与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
  5. 根据权利要求1所述的数据分享方法,其中,在所述根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息之前,还包括:The data sharing method according to claim 1, wherein before the obtaining the identification information of the user data to be shared corresponding to the first client identity information according to the association list, the method further includes:
    判断所述关联列表中是否存在所述第一客户端身份信息;Determining whether the first client identity information exists in the association list;
    若所述关联列表中存在所述第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息。If the first client identity information exists in the association list, the identifier information of the user data to be shared corresponding to the first client identity information is obtained according to the association list.
  6. 根据权利要求5所述的数据分享方法,其中,在所述判断所述关联列表中是否存在所述第一客户端身份信息之后,还包括:The data sharing method according to claim 5, further comprising: after determining whether the first client identity information exists in the association list, further comprising:
    若所述关联列表中不存在所述第一客户端身份信息,则判断所述第二客户端是否处于登陆状态;If the first client identity information does not exist in the association list, determining whether the second client is in a login state;
    若所述第二客户端处于登陆状态,则根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;If the second client is in the login state, generating sharing request prompt information according to the first client identity information, and sending the sharing request prompt information to the second client;
    获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;Obtaining an operation instruction that is sent by the second client according to the sharing request prompt information;
    判断所述操作指令中是否存在待分享用户数据的标识信息;Determining whether there is identification information of the user data to be shared in the operation instruction;
    若所述操作指令中存在所述待分享用户数据的标识信息,则根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。If the identification information of the user data to be shared exists in the operation instruction, generate a user data sharing link according to the identification information, and send the user data sharing link to the first client.
  7. 根据权利要求6所述的数据分享方法,其中,在所述判断所述操作指令中是否存在待分享用户数据的标识信息之后,还包括:The data sharing method according to claim 6, wherein after determining whether the identification information of the user data is to be shared in the operation instruction, the method further comprises:
    若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。If the identification information of the user data to be shared does not exist in the operation instruction, sending the prompt information that cannot access the second client user data to the first client.
  8. 一种数据分享装置,其中,包括:A data sharing device, comprising:
    第一获取单元,用于获取第一客户端发送的索取分享请求,其中所述索取分享请求包括第一客户端身份信息和第二客户端身份信息;a first obtaining unit, configured to acquire a request for sharing request sent by the first client, where the request for sharing includes the first client identity information and the second client identity information;
    读取单元,用于根据所述第二客户端身份信息读取关联列表,其中所述关联列表包括第二客户端的用户数据的标识信息与客户端身份信息的对应关系;a reading unit, configured to read an association list according to the second client identity information, where the association list includes a correspondence between the identifier information of the user data of the second client and the client identity information;
    第二获取单元,用于根据所述关联列表获取与所述第一客户端身份信息相对应的待分享用户数据的标识信息;以及a second acquiring unit, configured to acquire, according to the association list, identifier information of the user data to be shared corresponding to the first client identity information;
    生成发送单元,用于根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。And generating a sending unit, configured to generate a user data sharing link according to the identifier information, and send the user data sharing link to the first client.
  9. 根据权利要求8所述的数据分享装置,其中,所述数据分享装置还包括:第三获取单元;所述第三获取单元用于获取第二客户端的用户数据;获取所述用户数据的标识信息,以及获取所述第二客户端根据所述标识信息与客户端身份信息之间对应关系生成的关联列表。The data sharing device of claim 8, wherein the data sharing device further comprises: a third obtaining unit; the third obtaining unit is configured to acquire user data of the second client; and obtain identification information of the user data And obtaining an association list generated by the second client according to the correspondence between the identifier information and the client identity information.
  10. 根据权利要求8所述的数据分享装置,其中,所述读取单元用于:The data sharing device according to claim 8, wherein said reading unit is configured to:
    根据所述第二客户端身份信息查找服务器上与所述第二客户端对应的存储区域;Searching, according to the second client identity information, a storage area corresponding to the second client on the server;
    从所述存储区域读取关联列表。The associated list is read from the storage area.
  11. 根据权利要求8所述的数据分享装置,其中,所述第二获取单元用于:The data sharing device according to claim 8, wherein the second obtaining unit is configured to:
    从所述关联列表中查找与所述第一客户端身份信息相匹配的客户端身份信息;Finding client identity information that matches the first client identity information from the association list;
    将查找到的客户端身份信息对应的标识信息确定为与所述第一客户端身份信息相对应的待分享用户数据的标识信息。The identifier information corresponding to the found client identity information is determined as the identifier information of the user data to be shared corresponding to the first client identity information.
  12. 根据权利要求8所述的数据分享装置,其中,所述数据分享装置还包括第一判断单元;The data sharing device according to claim 8, wherein the data sharing device further comprises a first determining unit;
    所述第一判断单元用于判断所述关联列表中是否存在所述第一客户端身份信息;The first determining unit is configured to determine whether the first client identity information exists in the association list;
    所述第二获取单元具体用于若所述关联列表中存在所述第一客户端身份信息,则根据所述关联列表获取与所述第一客户端身份信息相对应的用户数据的标识信息。And the second acquiring unit is configured to: if the first client identity information exists in the association list, obtain, according to the association list, identifier information of user data corresponding to the first client identity information.
  13. 根据权利要求12所述的数据分享装置,其中,所述数据分享装置还包括第二判断单元,其中,所述第二判断单元包括第一判断子单元、生成发送子单元、获取子单元和第二判断子单元;The data sharing device according to claim 12, wherein the data sharing device further comprises a second determining unit, wherein the second determining unit comprises a first determining subunit, a generating transmitting subunit, an obtaining subunit, and a Second judgment subunit;
    所述第一判断子单元用于若所述关联列表中不存在所述第一客户端身份信息,则判断所述第二客户端是否处于登陆状态;The first determining subunit is configured to determine whether the second client is in a login state if the first client identity information does not exist in the association list;
    所述生成发送子单元用于若所述第二客户端处于登陆状态,则根据所述第一客户端身份信息生成分享请求提示信息,并发送所述分享请求提示信息至所述第二客户端;The generating and sending subunit is configured to generate sharing request prompt information according to the first client identity information, and send the sharing request prompt information to the second client, if the second client is in a login state ;
    所述获取子单元用于获取所述第二客户端根据所述分享请求提示信息反馈的操作指令;The obtaining subunit is configured to acquire an operation instruction that is sent by the second client according to the sharing request prompt information;
    所述第二判断子单元用于判断所述操作指令中是否存在待分享用户数据的标识信息;The second determining subunit is configured to determine whether the identification information of the user data to be shared exists in the operation instruction;
    所述生成发送单元具体用于若所述操作指令中存在所述待分享用户数据的标识信息,则根据所述标识信息生成用户数据分享链接,并发送所述用户数据分享链接至所述第一客户端。The generating and sending unit is specifically configured to: if the identification information of the user data to be shared exists in the operation instruction, generate a user data sharing link according to the identification information, and send the user data sharing link to the first Client.
  14. 根据权利要求13所述的数据分享装置,其中,所述第二判断单元还包括提示子单元;所述提示子单元用于若所述操作指令中不存在所述待分享用户数据的标识信息,则发送无法访问所述第二客户端用户数据的提示信息至所述第一客户端。The data sharing device of claim 13, wherein the second determining unit further comprises a prompting subunit; the prompting subunit is configured to: if the operating instruction does not have the identification information of the user data to be shared, Sending prompt information that cannot access the second client user data to the first client.
  15. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1至7任一项所述的数据分享方法。A storage medium, wherein the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the data sharing method according to any one of claims 1 to 7.
  16. 一种服务器,其中,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行如权利要求1至7任一项所述的数据分享方法。A server, comprising a processor and a memory, the processor being electrically connected to the memory, the memory for storing instructions and data, the processor for performing the method of any one of claims 1 to The data sharing method described.
PCT/CN2017/094815 2016-10-25 2017-07-28 Data sharing method, device, storage medium and server WO2018076840A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610938130.9 2016-10-25
CN201610938130.9A CN106357521A (en) 2016-10-25 2016-10-25 Data sharing method and device

Publications (1)

Publication Number Publication Date
WO2018076840A1 true WO2018076840A1 (en) 2018-05-03

Family

ID=57864142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094815 WO2018076840A1 (en) 2016-10-25 2017-07-28 Data sharing method, device, storage medium and server

Country Status (2)

Country Link
CN (1) CN106357521A (en)
WO (1) WO2018076840A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260929A (en) * 2019-07-22 2021-01-22 腾讯科技(深圳)有限公司 Content sharing method and device, terminal and storage medium
CN114356231A (en) * 2021-12-27 2022-04-15 阿里巴巴(中国)有限公司 Data processing method, device and computer storage medium
WO2022252935A1 (en) * 2021-06-01 2022-12-08 深圳传音控股股份有限公司 Information processing method, device, and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357521A (en) * 2016-10-25 2017-01-25 广东欧珀移动通信有限公司 Data sharing method and device
CN109697129A (en) * 2017-10-23 2019-04-30 中兴通讯股份有限公司 A kind of information sharing method, equipment and computer readable storage medium
CN109729049A (en) * 2017-10-30 2019-05-07 北京国双科技有限公司 The sharing method and device of information
CN110336810B (en) * 2019-06-28 2022-06-14 华为云计算技术有限公司 Information sharing method, platform, computing device and storage medium
CN112905295B (en) * 2021-03-31 2021-10-15 掌阅科技股份有限公司 Data intercommunication method, computing device and computer storage medium
CN113783938A (en) * 2021-08-18 2021-12-10 深圳市冠旭电子股份有限公司 Data sharing method, system and device based on wearable device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227089A1 (en) * 2011-03-03 2012-09-06 Snu R&Db Foundation Apparatus and method for sharing contents of social network service in communication system
CN103002030A (en) * 2012-11-26 2013-03-27 北京百度网讯科技有限公司 File sharing method and system
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device
CN104410615A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system for accessing shared data
CN104601641A (en) * 2014-05-23 2015-05-06 腾讯科技(深圳)有限公司 Application link sharing method, device and system
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN104869143A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Data sharing method and device, client and server
CN104954398A (en) * 2014-03-26 2015-09-30 腾讯科技(深圳)有限公司 Method and device for acquiring content
CN104980334A (en) * 2014-04-23 2015-10-14 腾讯科技(深圳)有限公司 Information sharing method, device and system
CN105610949A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Method, device and system for sharing resource data permission
CN106357521A (en) * 2016-10-25 2017-01-25 广东欧珀移动通信有限公司 Data sharing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227746B (en) * 2012-01-31 2018-03-27 珠海德百祺科技有限公司 Data communications method and system
CN102740228A (en) * 2012-06-21 2012-10-17 北京小米科技有限责任公司 Method, device and system for sharing position information
CN104079470B (en) * 2013-03-27 2019-06-25 腾讯科技(深圳)有限公司 A kind of electronic name card exchange method, system and server
CN104079548B (en) * 2013-04-27 2018-10-09 腾讯科技(深圳)有限公司 Electronic name card management method, device, server and communication system
CN105100223B (en) * 2015-07-01 2019-10-15 北京奇虎科技有限公司 Sharing files method, apparatus and system based on cloud storage

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120227089A1 (en) * 2011-03-03 2012-09-06 Snu R&Db Foundation Apparatus and method for sharing contents of social network service in communication system
CN103002030A (en) * 2012-11-26 2013-03-27 北京百度网讯科技有限公司 File sharing method and system
CN104869143A (en) * 2014-02-26 2015-08-26 腾讯科技(深圳)有限公司 Data sharing method and device, client and server
CN104954398A (en) * 2014-03-26 2015-09-30 腾讯科技(深圳)有限公司 Method and device for acquiring content
CN104980334A (en) * 2014-04-23 2015-10-14 腾讯科技(深圳)有限公司 Information sharing method, device and system
CN103945009A (en) * 2014-05-09 2014-07-23 张志强 Software sharing method and device
CN104601641A (en) * 2014-05-23 2015-05-06 腾讯科技(深圳)有限公司 Application link sharing method, device and system
CN104410615A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system for accessing shared data
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN105610949A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Method, device and system for sharing resource data permission
CN106357521A (en) * 2016-10-25 2017-01-25 广东欧珀移动通信有限公司 Data sharing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260929A (en) * 2019-07-22 2021-01-22 腾讯科技(深圳)有限公司 Content sharing method and device, terminal and storage medium
CN112260929B (en) * 2019-07-22 2022-06-24 腾讯科技(深圳)有限公司 Content sharing method and device, terminal and storage medium
WO2022252935A1 (en) * 2021-06-01 2022-12-08 深圳传音控股股份有限公司 Information processing method, device, and storage medium
CN114356231A (en) * 2021-12-27 2022-04-15 阿里巴巴(中国)有限公司 Data processing method, device and computer storage medium
CN114356231B (en) * 2021-12-27 2023-10-20 阿里巴巴(中国)有限公司 Data processing method, device and computer storage medium

Also Published As

Publication number Publication date
CN106357521A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2018076841A1 (en) Data sharing method, apparatus, storage medium and server
WO2018076868A1 (en) Data synchronization method, device and system, storage medium and server
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2018076889A1 (en) Data backup method, device, system, storage medium and server
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2018076829A1 (en) Terminal data processing method, apparatus, system, storage medium and server
WO2017206883A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2018076866A1 (en) Data processing method, device, storage medium, electronic device and server
WO2012124985A2 (en) Method and apparatus for synchronizing personal inforamtion
WO2018076811A1 (en) Data sharing method, device, system, storage medium and electronic device
WO2018076873A1 (en) Data sharing method, apparatus, medium, electronic device and system
WO2017206878A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2018090823A1 (en) Method and system for protecting system partition key data, and terminal
WO2018076864A1 (en) Data synchronization method, apparatus, storage medium and electronic device
WO2017206875A1 (en) Data packet-based processing method and apparatus, storage medium, and electronic device
WO2019156506A1 (en) System and method for providing conversational contents
EP2888711A1 (en) Method and apparatus for sharing content
WO2018076870A1 (en) Data processing method and apparatus, storage medium, server, and data processing system
WO2018117536A1 (en) Electronic apparatus, control authority authentication method thereof and user terminal apparatus
WO2020032465A1 (en) Method for contents playback with continuity and electronic device therefor
WO2018076888A1 (en) Method, device and system for synchronizing data of mobile terminal, storage medium and mobile terminal
WO2018076842A1 (en) Data backup method, device, system, storage medium, and electronic device
WO2018076869A1 (en) Data backup method, apparatus, storage medium and electronic device

Legal Events

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

Ref document number: 17865844

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17865844

Country of ref document: EP

Kind code of ref document: A1