WO2015070698A1 - Content collecting method, server and terminal - Google Patents

Content collecting method, server and terminal Download PDF

Info

Publication number
WO2015070698A1
WO2015070698A1 PCT/CN2014/089563 CN2014089563W WO2015070698A1 WO 2015070698 A1 WO2015070698 A1 WO 2015070698A1 CN 2014089563 W CN2014089563 W CN 2014089563W WO 2015070698 A1 WO2015070698 A1 WO 2015070698A1
Authority
WO
WIPO (PCT)
Prior art keywords
collection
content
terminal
index
user
Prior art date
Application number
PCT/CN2014/089563
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 WO2015070698A1 publication Critical patent/WO2015070698A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for collecting content, a server, and a terminal.
  • the collection of web content is currently implemented by a client application (application, App).
  • App application
  • the user opens the App he can see the previously collected content, which is convenient for storing the user data locally on the client.
  • the user wants to view the favorite content on multiple terminals, it is necessary to first install the application supported by the terminal. For example, when collecting, a specific application, such as an Evernote, must be installed, and the specific application must be installed when browsing the favorite record. Such as Evernote can be viewed. Moreover, when the user adds a favorite record, the user will see the favorite record after collecting through the A terminal App, and the record of the newly collected record is still not viewed from the B terminal App.
  • a specific application such as an Evernote
  • Embodiments of the present invention provide a method for collecting content, a server, and a terminal, which are used to reduce the usage threshold of the content collection function and improve the synchronization rate of the collection record.
  • a method of content collection including:
  • the server receiving terminal requests to perform a collection request for a collection operation of the content collection object
  • the server After receiving the collection request, the server adds a temporary collection index to the collection index corresponding to the user, records the temporary collection index as being processed, sends a collection success message to the terminal, and performs content collection processing. ;
  • the server modifies the temporary collection index to a processing completion state after the content collection processing ends.
  • a method of content collection including:
  • the terminal After receiving the collection success message of the server, the terminal displays the collection success prompt information
  • the terminal After receiving the content synchronization instruction input by the user, the terminal sends a synchronization request of the request result data to the server;
  • the terminal receives result data corresponding to the content collection object sent by the server.
  • a server that includes:
  • a request receiving unit configured to receive a collection request by the terminal to perform a collection operation on the content collection object
  • An index control unit configured to: after the request receiving unit receives the collection request, add a temporary collection index in the collection index corresponding to the user, and record the temporary collection index as being processed, in the content collection processing After the end, the temporary collection index is modified to a processing completion state;
  • a sending unit configured to send a collection success message to the terminal after the index control unit records the temporary collection index as being processed
  • a collection processing unit configured to start performing content collection processing when the sending unit sends the collection success message.
  • a terminal comprising:
  • the instruction receiving unit is configured to receive a favorite instruction input by the user, where the favorite instruction carries a content collection object; and receives a content synchronization instruction input by the user;
  • a request sending unit configured to send a bookmark request to the server, requesting to perform a bookmark operation of the content favorite object received by the instruction receiving unit; and send a synchronization request of the request result data to the server;
  • a prompt display unit configured to display a collection success prompt message after receiving a collection success message of the server
  • the result receiving unit is configured to receive result data corresponding to the content collection object sent by the server.
  • the program does not need to install a dedicated APP in the terminal, which reduces the use of the content collection function. threshold.
  • the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Synchronize the collection results that the user can see in multiple terminals, and improve the synchronization rate of the favorite records.
  • FIG. 1A is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 1B is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for content collection, as shown in FIG. 1A, including step 101A. Go to step 105A.
  • the server receiving terminal requests to perform a collection request for performing a bookmark operation on the content collection object.
  • the foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
  • the server After receiving the collection request, the server adds a temporary collection index to the collection index corresponding to the user, records the temporary collection index as being processed, sends a collection success message to the terminal, and performs content collection processing.
  • the collection success message can be directly sent to the terminal, so that the terminal can improve the response speed of the server without waiting for the collection processing to be completed.
  • the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously.
  • executing the content collection process comprises: sending a favorite operation instruction of the content collection object to the asynchronous processing pool to wait for execution of the content collection process.
  • the server Before the server in the background performs the collection processing, it may be necessary to perform identity verification on the user of the terminal.
  • the identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination.
  • the server After receiving the collection request, the server further includes:
  • the following solutions are provided: if the verification fails, the re-verification is performed, because the authentication fails, and the verification fails. If it still fails, the collection request is rejected.
  • the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected. The number of times of performing the re-checking does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
  • the embodiment of the present invention further provides a solution for adding a temporary collection index to the collection index corresponding to the user, as the user may repeatedly collect the same content object.
  • the identity verification is passed, determining whether the content collection object is a duplicate collection of the user, and if yes, sending a collection success message to the terminal; if not, adding in the collection index corresponding to the user Temporary collection index.
  • the above solution can avoid the unnecessary content collection processing process caused by the server performing the repeated collection, and can save system resources.
  • the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
  • the temporary favorite index is modified to a processing completion state after the content collection processing ends.
  • the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established as two separate steps, so that the server can quickly inform the terminal whether the collection is successful.
  • the user can see the synchronized collection result on multiple terminals, and the synchronization rate of the favorite record is improved.
  • the embodiment of the present invention further provides a subsequent use scheme of the collection result.
  • the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of the post-content collection processing, and should not be understood as
  • the technical solution of the technical solution of the embodiment of the present invention is further provided, and the method may further include:
  • the result data of the content collection process is sent to the terminal.
  • This embodiment relates to a content update-based content asynchronous update scheme.
  • the user can quickly see the favorite record in the browser through the terminal, and improve the ingress processing capability of the background server through the asynchronous processing method, and at the same time, through the user initiative.
  • Trigger the synchronization service to synchronize the asynchronous processing results to the front page display.
  • the view of the favorite record is low, and can be viewed in time to update the front page content asynchronously.
  • Another embodiment of the present invention provides a method for collecting content, as shown in FIG. 1B, including steps 101B to 105B.
  • the terminal receives a favorite instruction input by the user, where the favorite instruction carries a content collection object.
  • the above-mentioned collection instruction may be sent by the user in the terminal by operating a general-purpose APP such as a browser, and the specific transmission manner is not limited in the embodiment of the present invention.
  • the terminal sends a collection request to the server, requesting to perform a collection operation on the content collection object.
  • the foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
  • the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing state. Sending a favorite success message to the terminal and performing content collection processing; modifying the temporary collection index to a processing completion state after the content collection processing ends.
  • the collection success prompt message is displayed.
  • the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing.
  • the background server will receive the content collection process, please be patient and wait for the prompt, 2.
  • Temporary When the collection index record is in the processing completion state, the server will return the result data corresponding to the content collection object to the terminal.
  • the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful.
  • the user can see the synchronized collection result on multiple terminals, and the synchronization rate of the favorite record is improved.
  • the embodiment of the present invention can support a Hypertext Markup Language (Html5) webpage APP (WebApp), and the user can browse in any browser such as a mobile browser, a pap browser, a personal computer (PC).
  • the URL of the server that accesses the favorite web page, such as http://sc.qq.com/, can view the records that the user has previously collected.
  • the embodiment of the invention is an asynchronous update scheme for content based on content collection, which is a background technical solution based on browser content collection, which enables the user to collect the browser content in the browser of any terminal, and can view the user simultaneously in any browser. Collection of records.
  • the browsing threshold is very low, as long as you have a browser.
  • FIG. 2 it can be implemented based on a device binding scheme of a two-dimensional code, and is a scheme in which a client and a background are closely combined.
  • the following is a specific example of a browser. Including the following steps:
  • the user sends a collection request for collecting an article through a browser or other account of a certain terminal.
  • the browser client sends the favorite request to the background server.
  • the collection may be based on an instant messaging account, and if the identity verification fails, the user is prompted to log in again. If the authentication is successful, proceed to the next step.
  • the status is marked as extracted.
  • the client After receiving the feedback, the client informs the user that the collection is successful by popping up a message, such as a prompt (Tips).
  • a prompt such as a prompt
  • the background server sends the user's favorite request to the event asynchronous processing pool for processing while feeding back to the client.
  • the processing of the event asynchronous processing pool includes extracting the Url of the user's favorite, pre-fetching the image, saving the extracted content, and updating the temporary index written for the user in step 205.
  • the operation of extracting the user's favorite Url takes a long time, which is close to 1 s.
  • the total processing time of the entire asynchronous processing process exceeds 1 s.
  • the pre-fetched image can be placed in the image cache. When the user accesses the image, the user can quickly locate the Cache, so that the user can quickly see the image. After the extraction is completed, the extraction status can be updated to the extraction success or failure.
  • step 206 If the user accesses the favorite favorite content through the browser and requests to obtain the favorite index during the unfinished period in step 206, an index of the latest favorite may be displayed in the index. In front of the user, the user is also informed that the stamp is being processed. After the step 206 is processed, as long as the user triggers the synchronization request on the favorite page, for example, the function of pulling up more content can be realized by clicking the page, the background server sends the processing result of step 206 to the front end page, and the front end browser is Update the content of the user just collected. The processing of step 206 generally takes no more than 2 seconds.
  • the page collection method includes steps 301 to 316, and the page collection process can be divided into two parts, one part is a request processing process, and the other part is a server background collection processing process.
  • the server receives a collection request sent by the terminal, and requests to process the collected object.
  • the server performs identity verification on the user of the terminal.
  • This step determines if there is the same collection.
  • This step is whether the backend server replies to the user of the terminal whether the collection is successful.
  • 311 Determine the favorite type, enter 312 if it is a webpage URL, and enter 316 if it is a picture URL.
  • 314 Determine if a retry is required, if yes, go to 315, otherwise go to 317.
  • step 318 Update the index and write the file content.
  • the extraction status in step 309 can be updated to the extraction success/failure, and if the extraction is successful, the extraction result (the piece content) is stored.
  • the background can add a temporary index to the user, and the user can immediately see the record he just collected, regardless of the browser in which the user opens the bookmark, and does not appear in the terminal A to open. , the situation that can not be seen when the terminal B is opened.
  • the processing time of no more than 10ms in the background allows the user to instantly open and see, and will not think that the collection fails.
  • Html5App uses a full cloud implementation.
  • the user triggers the synchronized network request on the Html5 page, and the processing result can be synchronized to the front page.
  • the asynchronous processing pool is used, and the time-consuming processing, such as Url extraction and image processing, are transferred to the asynchronous processing pool for queuing processing, thereby improving the processing capability of the background service portal, and not because of a processing.
  • the Url extraction takes too much time to cause the processing thread to stagnate and reduce the business processing capability.
  • This method is suitable for network requests that do not require high real-time performance.
  • An embodiment of the present invention provides a server, as shown in FIG. 4, including: a request receiving unit 401, an index control unit 402, a sending unit 403, and a favorite processing unit 404.
  • the request receiving unit 401 is configured to receive a collection request that the terminal requests to perform a collection operation on the content collection object.
  • the foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
  • the index control unit 402 is configured to: after the request receiving unit 401 receives the bookmark request, add a temporary bookmark index in the bookmark index corresponding to the user, and record the temporary bookmark index as being processed, in the content After the collection process ends, the temporary collection index is modified to a processing completion state.
  • the sending unit 403 is configured to send a collection success message to the terminal after the index control unit 402 records the temporary collection index as being processed.
  • the collection processing unit 404 is configured to start performing content collection processing when the sending unit 403 sends the collection success message.
  • This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function.
  • the successful collection message can be returned to the terminal, and the content collection processing
  • the establishment of the collection index is two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
  • the collection success message can be directly sent to the terminal, so that the terminal can improve the response speed of the server without waiting for the collection processing to be completed.
  • the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously.
  • the collection processing unit 404 is configured to send a favorite operation instruction of the content collection object to the asynchronous processing pool to wait for execution of the content collection process when the sending unit 403 sends the collection success message.
  • the server in the background may be authenticated.
  • the identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination, as shown in FIG. 5
  • the server further includes a verification unit 501.
  • the checking unit 501 is configured to perform identity verification on the user of the terminal after the request receiving unit 401 receives the collection request.
  • the index control unit 402 is further configured to add a temporary collection index to the collection index corresponding to the user if the verification unit passes the verification.
  • the verification unit 501 is also used for the identity verification, which may cause a verification failure due to a user input error or the like.
  • the embodiment of the present invention provides the following solution: If the verification fails, re-verification is performed, and if it still fails, the collection request is rejected.
  • the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected.
  • the specific number of re-checks does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
  • the embodiment of the present invention further provides a solution as shown in FIG. 6.
  • the server further includes a repetition determining unit 601, as the user may repeatedly collect the same content object.
  • the repetition determining unit 601 is configured to determine, if the verification unit passes the verification, before the index control unit 402 adds a temporary collection index in the collection index corresponding to the user, whether the content collection object is the User's duplicate collection.
  • the sending unit 403 is further configured to: if the repetition determining unit 601 determines that the result is yes, then The terminal sends a collection success message.
  • the index control unit 402 is configured to add a temporary collection index to the favorite index corresponding to the user if the result of the determination by the repetition determining unit 601 is negative.
  • This solution can avoid unnecessary content collection processing process caused by the server performing repeated collection, and can save system resources.
  • the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
  • the embodiment of the present invention further provides a subsequent use scheme of the collection result.
  • the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of the post-content collection processing, and should not be understood as
  • the necessary technical solution for solving the technical solution of the embodiment of the present invention is as shown in FIG. 7.
  • the server may further include a result data sending unit 701.
  • the result data sending unit 701 is configured to: if the synchronization request sent by the user through the terminal is received, send result data of the content collection process to the terminal.
  • the embodiment of the present invention further provides a terminal, as shown in FIG. 8, comprising: an instruction receiving unit 801, a request sending unit 802, a prompt display unit 803, and a result receiving unit 804.
  • the instruction receiving unit 801 is configured to receive a favorite instruction input by a user, where the favorite instruction includes a content collection object, and receive a content synchronization instruction input by the user.
  • the request sending unit 802 is configured to send a bookmark request to the server, request to perform a bookmark operation of the content favorite object received by the command receiving unit 801, and send a synchronization request of the request result data to the server.
  • the prompt display unit 803 is configured to display the collection success prompt information after receiving the collection success message of the server.
  • the result receiving unit 804 is configured to receive result data corresponding to the content collection object sent by the server.
  • This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function.
  • the terminal can receive the message of successful collection by the server, and the content collection processing and the collection index are established as two separate steps, so that the terminal can quickly receive feedback on whether the collection sent by the server is successful. . Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
  • the server On the server side, after the server receives the request for the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing status.
  • the terminal transmits a collection success message and performs content collection processing; after the content collection processing ends, the temporary collection index is modified to a processing completion state.
  • the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing.
  • the user sends a synchronization request through the terminal in this step there may be two results: 1.
  • the temporary collection index record is in the processing state, then the terminal will receive the process that the background server is performing the content collection processing. Please wait patiently for the prompt.
  • the temporary collection index record is the processing completion state, then the server will return the result data corresponding to the content collection object to the terminal.
  • FIG. 9 Another embodiment of the present invention provides a server, as shown in FIG. 9, including: a receiver 901, a transmitter 902, and a processor 903.
  • the processor 903 is configured to receive, by the receiver 901, a request for performing a bookmarking operation on a content collection object by the terminal; and after receiving the bookmark request, increase the bookmark index corresponding to the user.
  • Temporary collection index recording the temporary collection index as a processing state, instructing the transmitter 902 to send a collection success message to the terminal and performing content collection processing; modifying the temporary collection index to be after the content collection processing ends Processing completion status.
  • the foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
  • This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function.
  • the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
  • the collection success message can be directly sent to the terminal, so that the terminal does not have to wait for the collection process to be completed, which can improve the response speed of the server.
  • the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously.
  • the processor 904 The method for executing content collection processing includes: sending a favorite operation instruction to the content collection object to an asynchronous processing pool to wait for execution of content collection processing.
  • the user of the terminal may also need to perform identity verification, where the identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination.
  • the processor 903 is further configured to perform identity verification on the user of the terminal after receiving the collection request, and if the verification passes, add a temporary collection index in the collection index corresponding to the user.
  • the solution of the present invention provides a solution for the identity verification, which may cause a verification failure due to a user input error or the like.
  • the embodiment of the present invention provides the following solution: It is also used to perform re-verification if the verification fails, and reject the collection request if it still fails.
  • the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected. The number of times of re-checking does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
  • the user may provide a temporary collection index in the collection index corresponding to the user, because the user may perform the same collection of the same content object.
  • the identity verification is passed, determining whether the content collection object is a duplicate collection of the user, and if yes, instructing the transmitter 902 to send a collection success message to the terminal; if not, then The temporary collection index is added to the favorite index corresponding to the user.
  • the above solution can avoid the unnecessary content collection processing process caused by the server performing the repeated collection, and can save system resources.
  • the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
  • the embodiment of the present invention further provides a subsequent use scheme of the collection result.
  • the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of post-content collection processing. It should not be understood as a necessary technical solution to solve the technical solutions of the embodiments of the present invention.
  • the processor 903 is further configured to: if the synchronization request sent by the user through the terminal is received, send result data of the content collection process to the terminal.
  • An embodiment of the present invention further provides another terminal, as shown in FIG. 10, including: a receiver 1001. Transmitter 1002 and processor 1003.
  • the processor 1003 is configured to receive a collection instruction input by a user, where the collection instruction carries a content collection object, and the indication transmitter 1002 sends a collection request to the server, requesting to perform a collection operation on the content collection object; After receiving the collection success message of the server through the receiver 1001, the collection success prompt information is displayed; after receiving the content synchronization instruction input by the user, the transmitter 1002 is instructed to send a synchronization request of the request result data to the server; receiving by the receiver 1001 Result data sent by the server corresponding to the content collection object.
  • This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function.
  • the terminal can receive the message of successful collection by the server, and the content collection processing and the collection index are established as two separate steps, so that the terminal can quickly receive whether the collection sent by the server is successful. Feedback. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
  • the server On the server side, after the server receives the request for the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing status.
  • the terminal transmits a collection success message and performs content collection processing; after the content collection processing ends, the temporary collection index is modified to a processing completion state.
  • the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing.
  • the terminal After sending the synchronization request in this step, there may be two results: 1.
  • the temporary collection index record is in the processing state, then the terminal will receive the process that the background server is performing the content collection processing, please be patient and wait for the prompt, 2. If the temporary collection index record is in the processing completion state, the server will return the result data corresponding to the content collection object to the terminal.
  • the embodiment of the present invention further provides another terminal.
  • the terminal may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, etc., and the terminal is a mobile phone as an example for description.
  • FIG. 11 is a block diagram showing the structure of a main part of a terminal such as a mobile phone provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, The input unit 1130, the display unit 1140, the sensor 1150, the audio circuit 1160, the wireless fidelity (WiFi) module 1170, the processor 1180, and the power source 1190 and the like.
  • RF radio frequency
  • the input unit 1130, the display unit 1140, the sensor 1150, the audio circuit 1160, the wireless fidelity (WiFi) module 1170, the processor 1180, and the power source 1190 and the like RF
  • WiFi wireless fidelity
  • the RF circuit 1110 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 1180; in addition, transmitting the designed uplink data to the base station.
  • RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 1110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120.
  • the memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 1130 may include a touch panel 1131 and other input devices 1132.
  • the touch panel 1131 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation) and according to a preset schedule Drive the corresponding connecting device.
  • the touch panel 1131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1180 is provided and can receive commands from the processor 1180 and execute them.
  • the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1130 may also include other input devices 1132.
  • other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 1140 may include a display panel 1141.
  • the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 according to the touch event. The type provides a corresponding visual output on the display panel 1141.
  • the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide audio between the user and the mobile phone. interface.
  • the audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access.
  • FIG. 11 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 1180.
  • the handset also includes a power source 1190 (such as a battery) that powers the various components.
  • a power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 1180 included in the terminal further has the following functions:
  • the processor 1180 is configured to receive, by the input unit 1130, a favorite instruction input by a user, where the favorite instruction carries a content collection object, and indicates that the collection request is sent to the server through the WiFi module 1170 or the RF circuit 1110, and the request is performed.
  • the synchronization request for transmitting the request result data is transmitted to the server through the WiFi module 1170 or the RF circuit 1110; and the result data corresponding to the content collection object transmitted by the server is received by the WiFi module 1170 or the RF circuit 1110.
  • Display unit 1140 displays the received result data corresponding to the content collection object.
  • This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function.
  • the included units are only divided according to functional logic, but are not limited to the foregoing, as long as the corresponding functions can be implemented;
  • the specific names of the units are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the computer readable storage medium can be a computer readable storage medium that is separately present and not incorporated into the device.
  • the computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of content collection, the method comprising:
  • the temporary collection index is modified to a processing completion state after the content collection processing ends.
  • the one or more programs may be used by one or more processors to perform another method of content collection, the method comprising:

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A content collecting method, server and terminal, implementing the method comprising: after receiving a collection request from a terminal to perform a collecting operation on a content collecting object, adding a temporary collection index to a collection index corresponding to a user, recording the temporary collection index as being processed, sending a collection success message to the terminal and conducting content collection processing; after completing the content collection processing, modifying the status of the temporary collection index to processing completed. The solution does not need to install a dedicated application (APP) on the terminal, thus lowering technical requirements for using a content collecting function. After creating a collection index, the server can feed back a collection success message to the terminal; the content collection processing and collection index creation are two separate steps, so that the server can quickly inform the terminal of whether the collection was successful. The present invention allows a user to view synchronous collection results on multiple terminals, thus improving the synchronization rate of collection records.

Description

一种内容收藏的方法,服务器以及终端Method for collecting content, server and terminal
本申请要求于2013年11月13日提交中国专利局、申请号为201310565582.3、发明名称为“一种内容收藏的方法,服务器以及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201310565582.3, entitled "Method for Content Collection, Server and Terminal", filed on November 13, 2013, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及通信技术领域,特别涉及一种内容收藏的方法,服务器以及终端。The present invention relates to the field of communications technologies, and in particular, to a method for collecting content, a server, and a terminal.
背景技术Background technique
对网页内容的收藏,目前一般都采用客户端应用程序(application,App)来实现。用户打开App可以看到以前收藏的内容,便于在客户端本地对用户数据做存储。The collection of web content is currently implemented by a client application (application, App). When the user opens the App, he can see the previously collected content, which is convenient for storing the user data locally on the client.
如果用户想要在多个终端上查看收藏的内容,需要先安装该终端支持的App,例如收藏时须安装特定的应用程序,如印象笔记,浏览收藏记录时也须安装该特定的应用程序,如印象笔记方可查看。并且,当用户添加一条收藏记录时,会出现用户通过A终端App收藏后看到收藏记录,从B终端App仍未查看到刚收藏的记录的情况。If the user wants to view the favorite content on multiple terminals, it is necessary to first install the application supported by the terminal. For example, when collecting, a specific application, such as an Evernote, must be installed, and the specific application must be installed when browsing the favorite record. Such as Evernote can be viewed. Moreover, when the user adds a favorite record, the user will see the favorite record after collecting through the A terminal App, and the record of the newly collected record is still not viewed from the B terminal App.
发明内容Summary of the invention
本发明实施例提供了一种内容收藏的方法,服务器以及终端,用于降低内容收藏功能的使用技术门槛,并提高收藏记录的同步速率。Embodiments of the present invention provide a method for collecting content, a server, and a terminal, which are used to reduce the usage threshold of the content collection function and improve the synchronization rate of the collection record.
一种内容收藏的方法,包括:A method of content collection, including:
服务器接收终端请求执行对内容收藏对象的收藏操作的收藏请求;The server receiving terminal requests to perform a collection request for a collection operation of the content collection object;
所述服务器接收到所述收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;After receiving the collection request, the server adds a temporary collection index to the collection index corresponding to the user, records the temporary collection index as being processed, sends a collection success message to the terminal, and performs content collection processing. ;
所述服务器在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。 The server modifies the temporary collection index to a processing completion state after the content collection processing ends.
一种内容收藏的方法,包括:A method of content collection, including:
终端接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;Receiving, by the terminal, a favorite instruction input by the user, where the favorite instruction carries a content collection object;
所述终端向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作;Sending, by the terminal, a collection request to the server, requesting to perform a collection operation on the content collection object;
所述终端接收到服务器的收藏成功消息后,展示收藏成功提示信息;After receiving the collection success message of the server, the terminal displays the collection success prompt information;
所述终端在接收到用户输入的内容同步指令后,向服务器发送请求结果数据的同步请求;After receiving the content synchronization instruction input by the user, the terminal sends a synchronization request of the request result data to the server;
所述终端接收服务器发送的与所述内容收藏对象对应的结果数据。The terminal receives result data corresponding to the content collection object sent by the server.
一种服务器,包括:A server that includes:
请求接收单元,用于接收终端请求执行对内容收藏对象的收藏操作的收藏请求;a request receiving unit, configured to receive a collection request by the terminal to perform a collection operation on the content collection object;
索引控制单元,用于在所述请求接收单元接收到所述收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态;An index control unit, configured to: after the request receiving unit receives the collection request, add a temporary collection index in the collection index corresponding to the user, and record the temporary collection index as being processed, in the content collection processing After the end, the temporary collection index is modified to a processing completion state;
发送单元,用于在所述索引控制单元将所述临时收藏索引记录为正在处理状态后,向所述终端发送收藏成功消息;a sending unit, configured to send a collection success message to the terminal after the index control unit records the temporary collection index as being processed;
收藏处理单元,用于在所述发送单元发送收藏成功消息时开始执行内容收藏处理。And a collection processing unit, configured to start performing content collection processing when the sending unit sends the collection success message.
一种终端,包括:A terminal comprising:
指令接收单元,用于接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;接收用户输入的内容同步指令;The instruction receiving unit is configured to receive a favorite instruction input by the user, where the favorite instruction carries a content collection object; and receives a content synchronization instruction input by the user;
请求发送单元,用于向服务器发送收藏请求,请求执行对所述指令接收单元接收到的内容收藏对象的收藏操作;向服务器发送请求结果数据的同步请求;a request sending unit, configured to send a bookmark request to the server, requesting to perform a bookmark operation of the content favorite object received by the instruction receiving unit; and send a synchronization request of the request result data to the server;
提示展示单元,用于在接收到服务器的收藏成功消息后,展示收藏成功提示信息;a prompt display unit, configured to display a collection success prompt message after receiving a collection success message of the server;
结果接收单元,用于接收服务器发送的与所述内容收藏对象对应的结果数据。The result receiving unit is configured to receive result data corresponding to the content collection object sent by the server.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门 槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理与收藏索引的建立为两个分离的步骤,使得服务器可以迅速的告知终端收藏是否成功。使用户能够在多个终端看到的收藏结果同步,提高了收藏记录的同步速率。The program does not need to install a dedicated APP in the terminal, which reduces the use of the content collection function. threshold. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Synchronize the collection results that the user can see in multiple terminals, and improve the synchronization rate of the favorite records.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1A为本发明实施例方法流程示意图;1A is a schematic flowchart of a method according to an embodiment of the present invention;
图1B为本发明实施例方法流程示意图;1B is a schematic flowchart of a method according to an embodiment of the present invention;
图2为本发明实施例方法流程示意图;2 is a schematic flowchart of a method according to an embodiment of the present invention;
图3为本发明实施例方法流程示意图;3 is a schematic flowchart of a method according to an embodiment of the present invention;
图4为本发明实施例服务器结构示意图;4 is a schematic structural diagram of a server according to an embodiment of the present invention;
图5为本发明实施例服务器结构示意图;FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
图6为本发明实施例服务器结构示意图;6 is a schematic structural diagram of a server according to an embodiment of the present invention;
图7为本发明实施例服务器结构示意图;7 is a schematic structural diagram of a server according to an embodiment of the present invention;
图8为本发明实施例终端结构示意图;8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图9为本发明实施例服务器结构示意图;9 is a schematic structural diagram of a server according to an embodiment of the present invention;
图10为本发明实施例终端结构示意图;10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图11为本发明实施例终端结构示意图。FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种内容收藏的方法,如图1A所示,包括步骤101A 至步骤105A。An embodiment of the present invention provides a method for content collection, as shown in FIG. 1A, including step 101A. Go to step 105A.
101A:服务器接收终端请求执行对内容收藏对象进行收藏操作的收藏请求。101A: The server receiving terminal requests to perform a collection request for performing a bookmark operation on the content collection object.
以上收藏请求,可以是用户在终端通过操作例如浏览器等通用APP发出的,具体发送方式本发明实施例不予限定。The foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
102A:服务器收到所述收藏请求后在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理。102A: After receiving the collection request, the server adds a temporary collection index to the collection index corresponding to the user, records the temporary collection index as being processed, sends a collection success message to the terminal, and performs content collection processing.
以上实施例中,临时收藏索引建立以后就可以直接发送收藏成功消息给终端,这样可以使终端不必等待收藏处理完毕,可以提高服务器响应速度。另外也将后台的服务器处理收藏请求与执行内容收藏处理的过程分离,使得执行内容收藏处理的过程可以异步进行。可选地,执行内容收藏处理包括:将对内容收藏对象的收藏操作指令发送到异步处理池中等待执行内容收藏处理。In the above embodiment, after the temporary collection index is established, the collection success message can be directly sent to the terminal, so that the terminal can improve the response speed of the server without waiting for the collection processing to be completed. In addition, the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously. Optionally, executing the content collection process comprises: sending a favorite operation instruction of the content collection object to the asynchronous processing pool to wait for execution of the content collection process.
在后台的服务器执行收藏处理之前可能还需要对终端的用户进行身份校验,这里进行身份校验可以是因权限的目的进行校验,也可以是身份确定的校验。服务器收到所述收藏请求后还包括:Before the server in the background performs the collection processing, it may be necessary to perform identity verification on the user of the terminal. Here, the identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination. After receiving the collection request, the server further includes:
对所述终端的用户进行身份校验,若校验通过,则在所述用户对应的收藏索引内增加临时收藏索引。Performing identity verification on the user of the terminal, and if the verification passes, adding a temporary collection index in the collection index corresponding to the user.
由于身份校验有时候会因用户输入错误等原因导致校验失败,为了避免一次校验失败导致的收藏请求拒绝,本发明实施例提供了如下解决方案:若校验失败,则进行重校验,若仍失败,则拒绝所述收藏请求。In the present invention, the following solutions are provided: if the verification fails, the re-verification is performed, because the authentication fails, and the verification fails. If it still fails, the collection request is rejected.
另需说明的是,本发明实施例进行重校验的次数,可以依据经验值进行设定,例如设定重校验三次,均失败,就拒绝收藏请求。具体进行重校验的次数,不影响本发明实施例的实现,本发明实施例对此不予限定。It should be noted that, the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected. The number of times of performing the re-checking does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
由于用户可能对同一内容对象进行了重复的收藏,本发明实施例还提供了如下解决方案:在所述用户对应的收藏索引内增加临时收藏索引之前还包括:The embodiment of the present invention further provides a solution for adding a temporary collection index to the collection index corresponding to the user, as the user may repeatedly collect the same content object.
若所述身份校验通过,则确定所述内容收藏对象是否为所述用户的重复收藏,若是,则向所述终端发送收藏成功消息;若否,则在所述用户对应的收藏索引内增加临时收藏索引。 If the identity verification is passed, determining whether the content collection object is a duplicate collection of the user, and if yes, sending a collection success message to the terminal; if not, adding in the collection index corresponding to the user Temporary collection index.
以上方案可以避免服务器执行重复收藏所导致不必要的内容收藏处理流程,可以节省系统资源。另外,在出现重复收藏的情况下,一旦确认是重复收藏,那么可以直接向终端的用户返回收藏成功的结果,这样服务器的响应速度也会很快。The above solution can avoid the unnecessary content collection processing process caused by the server performing the repeated collection, and can save system resources. In addition, in the case of repeated collections, once it is confirmed that the collection is repeated, the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
103A:在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。103A: The temporary favorite index is modified to a processing completion state after the content collection processing ends.
本实施例,不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理与收藏索引的建立为两个分离的步骤,使得服务器可以迅速地告知终端收藏是否成功。使用户能够在多个终端看到同步后的收藏结果,提高了收藏记录的同步速率。In this embodiment, it is not necessary to install a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established as two separate steps, so that the server can quickly inform the terminal whether the collection is successful. The user can see the synchronized collection result on multiple terminals, and the synchronization rate of the favorite record is improved.
本发明实施例还提供了收藏结果的后续使用方案,需要说明的是,内容收藏的结果数据的使用是用户同步结果数据进行查看的步骤,并不是内容收藏后处理的必要步骤,不应理解为解决本发明实施例技术方案的必要技术方案,所述方法还可以包括:The embodiment of the present invention further provides a subsequent use scheme of the collection result. It should be noted that the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of the post-content collection processing, and should not be understood as The technical solution of the technical solution of the embodiment of the present invention is further provided, and the method may further include:
若接收到所述用户通过终端发送的同步请求,则将内容收藏处理的结果数据发送给所述终端。If the synchronization request sent by the user through the terminal is received, the result data of the content collection process is sent to the terminal.
该实施例是关于基于内容收藏的内容异步更新方案,用户收藏一个记录后,可迅速通过终端在浏览器看到收藏记录,并通过异步处理方法,提高后台服务器的入口处理能力,同时通过用户主动触发同步服务,将异步处理结果同步至前端页面展示。相对客户端App的方案而言,查看收藏记录门槛低,并且可及时查看,异步更新前端页面内容。This embodiment relates to a content update-based content asynchronous update scheme. After a user collects a record, the user can quickly see the favorite record in the browser through the terminal, and improve the ingress processing capability of the background server through the asynchronous processing method, and at the same time, through the user initiative. Trigger the synchronization service to synchronize the asynchronous processing results to the front page display. Compared with the client app's solution, the view of the favorite record is low, and can be viewed in time to update the front page content asynchronously.
本发明实施例还提供了另一种内容收藏的方法,如图1B所示,包括步骤101B至步骤105B。Another embodiment of the present invention provides a method for collecting content, as shown in FIG. 1B, including steps 101B to 105B.
101B:终端接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象。101B: The terminal receives a favorite instruction input by the user, where the favorite instruction carries a content collection object.
以上收藏指令,可以是用户在终端通过操作例如浏览器等通用APP发出的,具体发送方式本发明实施例不予限定。The above-mentioned collection instruction may be sent by the user in the terminal by operating a general-purpose APP such as a browser, and the specific transmission manner is not limited in the embodiment of the present invention.
102B:终端向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作。 102B: The terminal sends a collection request to the server, requesting to perform a collection operation on the content collection object.
以上收藏请求,可以是用户在终端通过操作例如浏览器等通用APP发出的,具体发送方式本发明实施例不予限定。The foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
在服务器一侧,服务器接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,并将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。On the server side, after the server receives the request for performing the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing state. Sending a favorite success message to the terminal and performing content collection processing; modifying the temporary collection index to a processing completion state after the content collection processing ends.
103B:接收到服务器的收藏成功消息后,展示收藏成功提示信息。103B: After receiving the collection success message of the server, the collection success prompt message is displayed.
104B:在接收到用户输入的内容同步指令后,向服务器发送请求结果数据的同步请求。104B: After receiving the content synchronization instruction input by the user, send a synchronization request of the request result data to the server.
需要说明的是,由于收藏请求的处理与内容收藏处理的进程是两个流程,因此终端的用户收到收藏成功提示信息,也并不意味着后台服务器一定执行完了内容收藏处理的整个流程,因此在本步骤发送同步请求以后,可能会有两个结果:1、临时收藏索引记录为正在处理状态,那么将会收到后台服务器正在执行内容收藏处理的过程,请耐心等待的提示,2、临时收藏索引记录为处理完成状态,那么服务器将会向终端返回内容收藏对象对应的结果数据。It should be noted that since the processing of the collection request and the process of the content collection processing are two processes, the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing. After sending the synchronization request in this step, there may be two results: 1. The temporary collection index record is in the processing state, then the background server will receive the content collection process, please be patient and wait for the prompt, 2. Temporary When the collection index record is in the processing completion state, the server will return the result data corresponding to the content collection object to the terminal.
105B:接收服务器发送的与所述内容收藏对象对应的结果数据。105B: Receive result data sent by the server corresponding to the content collection object.
本实施例中,不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理与收藏索引的建立为两个分离的步骤,使得服务器可以迅速的告知终端收藏是否成功。使用户能够在多个终端看到同步后的收藏结果,提高了收藏记录的同步速率。In this embodiment, it is not necessary to install a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. The user can see the synchronized collection result on multiple terminals, and the synchronization rate of the favorite record is improved.
本发明实施例可以支持超文本标记语言(Hypertext Markup Language,Html5)的网页APP(WebApp),用户可在任何浏览器,如手机浏览器、Pad浏览器、,个人计算机(personal computer,PC)浏览器等访问收藏网页的服务器的网址,如http://sc.qq.com/即可查看到用户曾经收藏的记录。The embodiment of the present invention can support a Hypertext Markup Language (Html5) webpage APP (WebApp), and the user can browse in any browser such as a mobile browser, a pap browser, a personal computer (PC). The URL of the server that accesses the favorite web page, such as http://sc.qq.com/, can view the records that the user has previously collected.
本发明实施例是基于内容收藏的内容异步更新方案,是基于浏览器内容收藏的一个后台技术方案,实现用户在任何终端的浏览器对浏览器内容进行收藏,可以在任何浏览器同时查看到用户的收藏记录。浏览门槛非常低,只要有浏览器即可。 The embodiment of the invention is an asynchronous update scheme for content based on content collection, which is a background technical solution based on browser content collection, which enables the user to collect the browser content in the browser of any terminal, and can view the user simultaneously in any browser. Collection of records. The browsing threshold is very low, as long as you have a browser.
如图2所示,可以基于二维码的设备绑定方案来实现,是一套客户端与后台紧密结合的方案,以下以浏览器为例子做具体阐述。包括如下步骤:As shown in FIG. 2, it can be implemented based on a device binding scheme of a two-dimensional code, and is a scheme in which a client and a background are closely combined. The following is a specific example of a browser. Including the following steps:
201:用户通过某一终端的浏览器或其他帐号发出收藏一篇文章的收藏请求。201: The user sends a collection request for collecting an article through a browser or other account of a certain terminal.
202:浏览器客户端将该收藏请求发至后台服务器。202: The browser client sends the favorite request to the background server.
203:后台服务器收到收藏请求后,进行身份校验。203: After the background server receives the collection request, perform identity verification.
在本步骤中,所述收藏可以基于即时通讯账号,若身份校验失效,则提示用户重新登录。若身份验证成功进入下一步。In this step, the collection may be based on an instant messaging account, and if the identity verification fails, the user is prompted to log in again. If the authentication is successful, proceed to the next step.
204:判断用户是否重复收藏,若重复收藏,则返回给客户端,告知用户收藏成功。若无重复收藏,进入下一步。204: Determine whether the user repeats the collection. If the collection is repeated, return to the client to inform the user that the collection is successful. If there is no duplicate collection, go to the next step.
实际应用中,可以通过将当前的收藏记录与已有的收藏记录进行对比或者拉取用户上一条收藏记录进行对比来判断用户是否重复收藏。In practical applications, it is possible to determine whether the user repeats the collection by comparing the current favorite record with the existing favorite record or pulling the user's previous favorite record for comparison.
205:在用户收藏索引高速缓冲存储器(Cache)中为所述即时通讯账号增加一条临时收藏索引,反馈给客户端告知用户收藏成功。205: Add a temporary collection index to the instant messaging account in the user favorite index cache (Cache), and feed back to the client to notify the user that the collection is successful.
如果该临时收藏索引处于抽取状态,则将该状态标为抽取中。If the temporary collection index is in an extracted state, the status is marked as extracted.
需要说明的是如果是通过即时通讯账号进行此次收藏,那么此处增加收藏记录即为该即时通讯账号插入一条记录,成功率接近100%,耗时在10ms以内。It should be noted that if the collection is made through an instant messaging account, then adding a favorite record here inserts a record for the instant messaging account, the success rate is close to 100%, and the time is less than 10ms.
客户端收到反馈后,通过弹出消息的方式例如提示(Tips)告知用户收藏成功。After receiving the feedback, the client informs the user that the collection is successful by popping up a message, such as a prompt (Tips).
206:后台服务器在反馈给客户端的同时,将用户这个收藏请求发送到事件异步处理池中进行处理。206: The background server sends the user's favorite request to the event asynchronous processing pool for processing while feeding back to the client.
事件异步处理池的处理包括对用户收藏的Url做抽取、图片预抓取、保存抽取内容、更新在步骤205为用户写的临时索引。其中对用户收藏的Url进行抽取的操作耗时较高,接近1s。所述整个异步处理过程总处理时间超过1s。实际应用中,可以将预抓取后的图片放在图片Cache中,当用户访问图片时可以迅速在Cache中定位,使用户很快能看到图片。抽取结束后,可以将抽取状态更新为抽取成功或者失败。若用户在步骤206执行未完成期间,通过浏览器访问收藏的收藏内容并请求获取收藏索引,则最新收藏的一条索引即可展现在 用户面前,同时告知用户这篇丈章正在处理中。步骤206处理完后,只要用户在收藏页面触发同步请求,比如可以通过点击页面来实现向上拉取更多内容的功能,后台服务器便将步骤206的处理结果下发给前端页面,前端浏览器则更新用户刚收藏的正丈内容。步骤206的处理的用时一般不超过2秒。The processing of the event asynchronous processing pool includes extracting the Url of the user's favorite, pre-fetching the image, saving the extracted content, and updating the temporary index written for the user in step 205. The operation of extracting the user's favorite Url takes a long time, which is close to 1 s. The total processing time of the entire asynchronous processing process exceeds 1 s. In actual applications, the pre-fetched image can be placed in the image cache. When the user accesses the image, the user can quickly locate the Cache, so that the user can quickly see the image. After the extraction is completed, the extraction status can be updated to the extraction success or failure. If the user accesses the favorite favorite content through the browser and requests to obtain the favorite index during the unfinished period in step 206, an index of the latest favorite may be displayed in the index. In front of the user, the user is also informed that the stamp is being processed. After the step 206 is processed, as long as the user triggers the synchronization request on the favorite page, for example, the function of pulling up more content can be realized by clicking the page, the background server sends the processing result of step 206 to the front end page, and the front end browser is Update the content of the user just collected. The processing of step 206 generally takes no more than 2 seconds.
请参阅图3所示,页面收藏方法包括步骤301至步骤316,可以将页面收藏过程分为两个部分,一部分为请求处理过程,一部分为服务器后台收藏处理过程。Referring to FIG. 3, the page collection method includes steps 301 to 316, and the page collection process can be divided into two parts, one part is a request processing process, and the other part is a server background collection processing process.
301:服务器接收终端发送的收藏请求,请求处理收藏的对象。301: The server receives a collection request sent by the terminal, and requests to process the collected object.
302:服务器对终端的用户进行身份校验。302: The server performs identity verification on the user of the terminal.
303:确定校验是否成功,是则进入304,否则进入310。303: Determine whether the verification is successful, if yes, enter 304, otherwise enter 310.
304:确定用户是否为指定用户,例如是否为微信/PC用的收藏,是则进入305,否则进入306;304: Determine whether the user is a designated user, for example, whether it is a collection for WeChat/PC, if yes, go to 305, otherwise go to 306;
305:读写书签,然后进入306。305: Read and write bookmarks, then enter 306.
306:拉取索引。本步骤建立了一条临时的索引。306: Pull the index. This step establishes a temporary index.
307:确定是否拉取成功,是则308,否则进入310。307: Determine whether the pull is successful, then 308, otherwise enter 310.
308:确定URL是否一致,如果是,进入310,如果否,进入309。308: Determine whether the URLs are consistent, if yes, go to 310, if no, go to 309.
本步骤确定是否有相同的收藏。This step determines if there is the same collection.
309:写索引。本步骤是在没有相同收藏的情况下,在索引中写入内容,此处索引写入的内容,初始状态是抽取状态为正在处理。然后异步触发进行服务器后台收藏处理过程,即异步触发进入311。309: Write an index. This step is to write the content in the index without the same collection, where the contents of the index are written, and the initial state is that the extraction state is being processed. Then asynchronously triggers the server background collection processing process, that is, asynchronous triggering enters 311.
310:回响应包。本步骤是后台服务器回复终端的用户是否收藏成功。310: Back to the response packet. This step is whether the backend server replies to the user of the terminal whether the collection is successful.
311:确定收藏类型,如果为网页URL则进入312,如果为图片URL则进入316。311: Determine the favorite type, enter 312 if it is a webpage URL, and enter 316 if it is a picture URL.
312:对网页URL执行抽取操作。312: Perform a extraction operation on the webpage URL.
313:确定抽取内容是否为图片,如果是进入316,否则进入314。313: Determine whether the extracted content is a picture, if it is entering 316, otherwise enter 314.
314:确定是否需要重试,如果是,进入315,否则进入317。314: Determine if a retry is required, if yes, go to 315, otherwise go to 317.
315:调用重试线程,然后进入312。315: Call the retry thread, then go to 312.
316:执行图片处理,进入318。316: Perform image processing and enter 318.
317:进行细节处理。 317: Perform detailed processing.
318:更新索引,写文件内容。本步骤可以将步骤309中的抽取状态更新为抽取成功/失败,若抽取成功则将抽取结果(丈件内容)存储起来。318: Update the index and write the file content. In this step, the extraction status in step 309 can be updated to the extraction success/failure, and if the extraction is successful, the extraction result (the piece content) is stored.
本发明实施例中,用户收藏成功后,后台即可为用户添加临时索引,不管用户在什么浏览器打开收藏,都可以即刻看到他刚收藏的记录,不会出现在终端A打开可看到,在终端B打开看不到的情况。同时,后台不超过10ms的处理时间让用户即刻打开便可看到,不会以为收藏失败。Html5App采用全云端的实现方式。In the embodiment of the present invention, after the user collects successfully, the background can add a temporary index to the user, and the user can immediately see the record he just collected, regardless of the browser in which the user opens the bookmark, and does not appear in the terminal A to open. , the situation that can not be seen when the terminal B is opened. At the same time, the processing time of no more than 10ms in the background allows the user to instantly open and see, and will not think that the collection fails. Html5App uses a full cloud implementation.
本发明实施例中,只要后台服务器将步骤206处理完成,用户在Html5页面触发同步的网络请求,便可将处理结果同步至前端页面。In the embodiment of the present invention, as long as the background server finishes the processing in step 206, the user triggers the synchronized network request on the Html5 page, and the processing result can be synchronized to the front page.
本发明实施例中,使用异步处理池,将耗时高的处理,如Url抽取、图片处理等都转移到异步处理池中进行排队处理,提高了后台服务入口的处理能力,不会因为一个处理,例如Url抽取耗时太高而导致处理线程停滞,降低业务处理能力。本方法适用于非要求高实时性的网络请求。In the embodiment of the present invention, the asynchronous processing pool is used, and the time-consuming processing, such as Url extraction and image processing, are transferred to the asynchronous processing pool for queuing processing, thereby improving the processing capability of the background service portal, and not because of a processing. For example, the Url extraction takes too much time to cause the processing thread to stagnate and reduce the business processing capability. This method is suitable for network requests that do not require high real-time performance.
本发明实施例提供了一种服务器,如图4所示,包括:请求接收单元401、索引控制单元402、发送单元403和收藏处理单元404。An embodiment of the present invention provides a server, as shown in FIG. 4, including: a request receiving unit 401, an index control unit 402, a sending unit 403, and a favorite processing unit 404.
所述请求接收单元401,用于接收终端请求执行对内容收藏对象的收藏操作的收藏请求。The request receiving unit 401 is configured to receive a collection request that the terminal requests to perform a collection operation on the content collection object.
以上收藏请求,可以是用户在终端通过操作例如浏览器等通用APP发出的,具体发送方式本发明实施例不予限定。The foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
所述索引控制单元402,用于在所述请求接收单元401接收到收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。The index control unit 402 is configured to: after the request receiving unit 401 receives the bookmark request, add a temporary bookmark index in the bookmark index corresponding to the user, and record the temporary bookmark index as being processed, in the content After the collection process ends, the temporary collection index is modified to a processing completion state.
所述发送单元403,用于在所述索引控制单元402将所述临时收藏索引记录为正在处理状态后,向所述终端发送收藏成功消息。The sending unit 403 is configured to send a collection success message to the terminal after the index control unit 402 records the temporary collection index as being processed.
收藏处理单元404,用于在所述发送单元403发送收藏成功消息时开始执行内容收藏处理。The collection processing unit 404 is configured to start performing content collection processing when the sending unit 403 sends the collection success message.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理 与收藏索引的建立为两个分离的步骤,使得服务器可以迅速的告知终端收藏是否成功。使用户能够在多个终端看到同步的收藏结果,提高了收藏记录的同步速率。This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing The establishment of the collection index is two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
以上实施例中,临时收藏索引建立以后就可以直接发送收藏成功消息给终端,这样可以使终端不必等待收藏处理完毕,可以提高服务器响应速度。另外也将后台的服务器处理收藏请求与执行内容收藏处理的过程分离,使得执行内容收藏处理的过程可以异步进行。可选地,所述收藏处理单元404,用于在所述发送单元403发送收藏成功消息时将对所述内容收藏对象的收藏操作指令发送到异步处理池中等待执行内容收藏处理。In the above embodiment, after the temporary collection index is established, the collection success message can be directly sent to the terminal, so that the terminal can improve the response speed of the server without waiting for the collection processing to be completed. In addition, the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously. Optionally, the collection processing unit 404 is configured to send a favorite operation instruction of the content collection object to the asynchronous processing pool to wait for execution of the content collection process when the sending unit 403 sends the collection success message.
进一步地,在后台的服务器执行收藏处理之前还可以对终端的用户进行身份校验,这里进行身份校验可以是因权限的目的进行校验,也可以是身份确定的校验,如图5所示,所述服务器还包括校验单元501。Further, before the server in the background performs the collection process, the user of the terminal may be authenticated. The identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination, as shown in FIG. 5 The server further includes a verification unit 501.
所述校验单元501,用于在所述请求接收单元401接收到所述收藏请求后,对所述终端的用户进行身份校验。The checking unit 501 is configured to perform identity verification on the user of the terminal after the request receiving unit 401 receives the collection request.
所述索引控制单元402,还用于若所述检验单元校验通过,则在所述用户对应的收藏索引内增加临时收藏索引。The index control unit 402 is further configured to add a temporary collection index to the collection index corresponding to the user if the verification unit passes the verification.
由于身份校验有时候会因用户输入错误等原因导致校验失败,为了避免一次校验失败导致的收藏请求拒绝,本发明实施例提供了如下解决方案:所述校验单元501,还用于若校验失败,则进行重校验,若仍失败,则拒绝所述收藏请求。The present invention provides the following solution: the verification unit 501 is also used for the identity verification, which may cause a verification failure due to a user input error or the like. In order to avoid the rejection of the collection request caused by a verification failure, the embodiment of the present invention provides the following solution: If the verification fails, re-verification is performed, and if it still fails, the collection request is rejected.
另需说明的是,本发明实施例进行重校验的次数,可以依据经验值进行设定,例如设定重校验三次,均失败,就拒绝收藏请求。重校验的具体次数,不影响本发明实施例的实现,本发明实施例对此不予限定。It should be noted that, the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected. The specific number of re-checks does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
由于用户可能对同一内容对象进行了重复的收藏,本发明实施例还提供了如下解决方案,如图6所示,所述服务器还包括重复确定单元601。The embodiment of the present invention further provides a solution as shown in FIG. 6. The server further includes a repetition determining unit 601, as the user may repeatedly collect the same content object.
所述重复确定单元601,用于若所述检验单元校验通过,在所述索引控制单元402在所述用户对应的收藏索引内增加临时收藏索引之前,确定所述内容收藏对象是否为所述用户的重复收藏。The repetition determining unit 601 is configured to determine, if the verification unit passes the verification, before the index control unit 402 adds a temporary collection index in the collection index corresponding to the user, whether the content collection object is the User's duplicate collection.
所述发送单元403,还用于若所述重复确定单元601确定结果为是,则向 所述终端发送收藏成功消息。The sending unit 403 is further configured to: if the repetition determining unit 601 determines that the result is yes, then The terminal sends a collection success message.
所述索引控制单元402,用于若所述重复确定单元601确定结果为否,则在所述用户对应的收藏索引内增加临时收藏索引。The index control unit 402 is configured to add a temporary collection index to the favorite index corresponding to the user if the result of the determination by the repetition determining unit 601 is negative.
本方案可以避免服务器执行重复收藏所导致不必要的内容收藏处理流程,可以节省系统资源。另外,在出现重复收藏的情况下,一旦确认是重复收藏,那么可以直接向终端的用户返回收藏成功的结果,这样服务器的响应速度也会很快。This solution can avoid unnecessary content collection processing process caused by the server performing repeated collection, and can save system resources. In addition, in the case of repeated collections, once it is confirmed that the collection is repeated, the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
本发明实施例还提供了收藏结果的后续使用方案,需要说明的是,内容收藏的结果数据的使用是用户同步结果数据进行查看的步骤,并不是内容收藏后处理的必要步骤,不应理解为解决本发明实施例技术方案的必要技术方案,如图7所示,所述服务器还可以包括结果数据发送单元701。The embodiment of the present invention further provides a subsequent use scheme of the collection result. It should be noted that the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of the post-content collection processing, and should not be understood as The necessary technical solution for solving the technical solution of the embodiment of the present invention is as shown in FIG. 7. The server may further include a result data sending unit 701.
所述结果数据发送单元701,用于若接收到所述用户通过终端发送的同步请求,则将内容收藏处理的结果数据发送给所述终端。The result data sending unit 701 is configured to: if the synchronization request sent by the user through the terminal is received, send result data of the content collection process to the terminal.
本发明实施例还提供了一种终端,如图8所示,包括:指令接收单元801、请求发送单元802、提示展示单元803和结果接收单元804。The embodiment of the present invention further provides a terminal, as shown in FIG. 8, comprising: an instruction receiving unit 801, a request sending unit 802, a prompt display unit 803, and a result receiving unit 804.
所述指令接收单元801,用于接收用户输入的收藏指令,所述收藏指令中包含内容收藏对象;接收用户输入的内容同步指令。The instruction receiving unit 801 is configured to receive a favorite instruction input by a user, where the favorite instruction includes a content collection object, and receive a content synchronization instruction input by the user.
所述请求发送单元802,用于向服务器发送收藏请求,请求执行对所述指令接收单元801接收到的内容收藏对象的收藏操作;向服务器发送请求结果数据的同步请求。The request sending unit 802 is configured to send a bookmark request to the server, request to perform a bookmark operation of the content favorite object received by the command receiving unit 801, and send a synchronization request of the request result data to the server.
所述提示展示单元803,用于在接收到服务器的收藏成功消息后,展示收藏成功提示信息。The prompt display unit 803 is configured to display the collection success prompt information after receiving the collection success message of the server.
所述结果接收单元804,用于接收服务器发送的与所述内容收藏对象对应的结果数据。The result receiving unit 804 is configured to receive result data corresponding to the content collection object sent by the server.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后,终端即可收到由服务器反馈的收藏成功的消息,内容收藏处理与收藏索引的建立为两个分离的步骤,使得终端可以迅速收到服务器发送的收藏是否成功的反馈。使用户能够在多个终端看到同步的收藏结果,提高了收藏记录的同步速率。 This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the terminal can receive the message of successful collection by the server, and the content collection processing and the collection index are established as two separate steps, so that the terminal can quickly receive feedback on whether the collection sent by the server is successful. . Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
在服务器一侧,服务器接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。On the server side, after the server receives the request for the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing status. The terminal transmits a collection success message and performs content collection processing; after the content collection processing ends, the temporary collection index is modified to a processing completion state.
需要说明的是,由于收藏请求的处理与内容收藏处理的进程是两个流程,因此终端的用户收到收藏成功提示信息,也并不意味着后台服务器一定执行完了内容收藏处理的整个流程,因此在本步骤用户通过终端发送同步请求以后,可能会有两个结果:1、临时收藏索引记录为正在处理状态,那么终端将会收到后台服务器正在执行内容收藏处理的过程,请耐心等待的提示,2、临时收藏索引记录为处理完成状态,那么服务器将会向终端返回内容收藏对象对应的结果数据。It should be noted that since the processing of the collection request and the process of the content collection processing are two processes, the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing. After the user sends a synchronization request through the terminal in this step, there may be two results: 1. The temporary collection index record is in the processing state, then the terminal will receive the process that the background server is performing the content collection processing. Please wait patiently for the prompt. 2, the temporary collection index record is the processing completion state, then the server will return the result data corresponding to the content collection object to the terminal.
本发明实施例还提供了另一种服务器,如图9所示,包括:接收器901、发射器902和处理器903。Another embodiment of the present invention provides a server, as shown in FIG. 9, including: a receiver 901, a transmitter 902, and a processor 903.
其中,所述处理器903,用于通过所述接收器901接收终端请求执行对内容收藏对象的收藏操作的收藏请求;在接收到所述收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,指示所述发射器902向所述终端发送收藏成功消息并执行内容收藏处理;在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。The processor 903 is configured to receive, by the receiver 901, a request for performing a bookmarking operation on a content collection object by the terminal; and after receiving the bookmark request, increase the bookmark index corresponding to the user. Temporary collection index, recording the temporary collection index as a processing state, instructing the transmitter 902 to send a collection success message to the terminal and performing content collection processing; modifying the temporary collection index to be after the content collection processing ends Processing completion status.
以上收藏请求,可以是用户在终端通过操作例如浏览器等通用APP发出的,具体发送方式本发明实施例不予限定。The foregoing collection request may be sent by the user in the terminal by using a general-purpose APP such as a browser, and the specific sending manner is not limited in the embodiment of the present invention.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理与收藏索引的建立为两个分离的步骤,使得服务器可以迅速的告知终端收藏是否成功。使用户能够在多个终端看到同步的收藏结果,提高了收藏记录的同步速率。This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
以上实施例中,临时收藏索引建立以后就可以直接发送收藏成功消息给终端,这样可以使终端不必等待收藏处理完毕,这样可以提高服务器响应速度。另外也将后台的服务器处理收藏请求与执行内容收藏处理的过程分离,使得执行内容收藏处理的过程可以异步进行。具体如下:可选地,所述处理器904, 用于执行内容收藏处理包括:用于将对所述内容收藏对象的收藏操作指令发送到异步处理池中等待执行内容收藏处理。In the above embodiment, after the temporary collection index is established, the collection success message can be directly sent to the terminal, so that the terminal does not have to wait for the collection process to be completed, which can improve the response speed of the server. In addition, the background server processing collection request is also separated from the process of executing the content collection processing, so that the process of executing the content collection processing can be performed asynchronously. Specifically as follows: optionally, the processor 904, The method for executing content collection processing includes: sending a favorite operation instruction to the content collection object to an asynchronous processing pool to wait for execution of content collection processing.
可选地,在后台的服务器执行收藏处理之前可能还需要对终端的用户进行身份校验,这里进行身份校验可以是因权限的目的进行校验,也可以是身份确定的校验,所述处理器903,还用于接收到所述收藏请求后,对所述终端的用户进行身份校验,若校验通过,则在所述用户对应的收藏索引内增加临时收藏索引。Optionally, before the server in the background performs the collection process, the user of the terminal may also need to perform identity verification, where the identity verification may be performed for the purpose of the permission, or may be the verification of the identity determination. The processor 903 is further configured to perform identity verification on the user of the terminal after receiving the collection request, and if the verification passes, add a temporary collection index in the collection index corresponding to the user.
可选地,由于身份校验有时候会因用户输入错误等原因导致校验失败,为了避免一次校验失败导致的收藏请求拒绝,本发明实施例提供了如下解决方案:所述处理器903,还用于若校验失败,则进行重校验,若仍失败,则拒绝所述收藏请求。The solution of the present invention provides a solution for the identity verification, which may cause a verification failure due to a user input error or the like. In order to avoid the rejection of the collection request caused by a verification failure, the embodiment of the present invention provides the following solution: It is also used to perform re-verification if the verification fails, and reject the collection request if it still fails.
另需说明的是,本发明实施例进行重校验的次数,可以依据经验值进行设定,例如设定重校验三次,均失败,就拒绝收藏请求。重校验的次数不影响本发明实施例的实现,本发明实施例对此不予限定。It should be noted that, the number of times of re-verification performed by the embodiment of the present invention may be set according to an empirical value, for example, if the re-check is set three times, and all fail, the collection request is rejected. The number of times of re-checking does not affect the implementation of the embodiment of the present invention, which is not limited by the embodiment of the present invention.
可选地,由于用户可能对同一内容对象进行了重复的收藏,本发明实施例还提供了如下解决方案:所述处理器903,还用于在所述用户对应的收藏索引内增加临时收藏索引之前,若所述身份校验通过,则确定所述内容收藏对象是否为所述用户的重复收藏,若是,则指示所述发射器902向所述终端发送收藏成功消息;若否,则在所述用户对应的收藏索引内增加临时收藏索引。Optionally, the user may provide a temporary collection index in the collection index corresponding to the user, because the user may perform the same collection of the same content object. Previously, if the identity verification is passed, determining whether the content collection object is a duplicate collection of the user, and if yes, instructing the transmitter 902 to send a collection success message to the terminal; if not, then The temporary collection index is added to the favorite index corresponding to the user.
以上方案可以避免服务器执行重复收藏所导致不必要的内容收藏处理流程,可以节省系统资源。另外,在出现重复收藏的情况下,一旦确认是重复收藏,那么可以直接向终端的用户返回收藏成功的结果,这样服务器的响应速度也会很快。The above solution can avoid the unnecessary content collection processing process caused by the server performing the repeated collection, and can save system resources. In addition, in the case of repeated collections, once it is confirmed that the collection is repeated, the result of the collection success can be directly returned to the user of the terminal, so that the response speed of the server is also fast.
可选地,本发明实施例还提供了收藏结果的后续使用方案,需要说明的是,内容收藏的结果数据的使用是用户同步结果数据进行查看的步骤,并不是内容收藏后处理的必要步骤,不应理解为解决本发明实施例技术方案的必要技术方案。所述处理器903,还用于若接收到所述用户通过终端发送的同步请求,则将内容收藏处理的结果数据发送给所述终端。Optionally, the embodiment of the present invention further provides a subsequent use scheme of the collection result. It should be noted that the use of the result data of the content collection is a step of viewing the user synchronization result data, and is not a necessary step of post-content collection processing. It should not be understood as a necessary technical solution to solve the technical solutions of the embodiments of the present invention. The processor 903 is further configured to: if the synchronization request sent by the user through the terminal is received, send result data of the content collection process to the terminal.
本发明实施例还提供了另一种终端,如图10所示,包括:接收器1001、 发射器1002以及处理器1003。An embodiment of the present invention further provides another terminal, as shown in FIG. 10, including: a receiver 1001. Transmitter 1002 and processor 1003.
其中,所述处理器1003,用于接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;指示发射器1002向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作;在通过接收器1001接收到服务器的收藏成功消息后,展示收藏成功提示信息;在接收到用户输入的内容同步指令后,指示发射器1002向服务器发送请求结果数据的同步请求;通过接收器1001接收服务器发送的与所述内容收藏对象对应的结果数据。The processor 1003 is configured to receive a collection instruction input by a user, where the collection instruction carries a content collection object, and the indication transmitter 1002 sends a collection request to the server, requesting to perform a collection operation on the content collection object; After receiving the collection success message of the server through the receiver 1001, the collection success prompt information is displayed; after receiving the content synchronization instruction input by the user, the transmitter 1002 is instructed to send a synchronization request of the request result data to the server; receiving by the receiver 1001 Result data sent by the server corresponding to the content collection object.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后,终端即可收到由服务器反馈的收藏成功的消息,内容收藏处理与收藏索引的建立为两个分离的步骤,使得终端可以迅速地收到服务器发送的收藏是否成功的反馈。使用户能够在多个终端看到同步的收藏结果,提高了收藏记录的同步速率。This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the terminal can receive the message of successful collection by the server, and the content collection processing and the collection index are established as two separate steps, so that the terminal can quickly receive whether the collection sent by the server is successful. Feedback. Enables users to see synchronized collection results on multiple terminals, increasing the synchronization rate of favorite records.
在服务器一侧,服务器接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。On the server side, after the server receives the request for the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, and records the temporary collection index as the processing status. The terminal transmits a collection success message and performs content collection processing; after the content collection processing ends, the temporary collection index is modified to a processing completion state.
需要说明的是,由于收藏请求的处理与内容收藏处理的进程是两个流程,因此终端的用户收到收藏成功提示信息,也并不意味着后台服务器一定执行完了内容收藏处理的整个流程,因此在本步骤发送同步请求以后,可能会有两个结果:1、临时收藏索引记录为正在处理状态,那么终端将会收到后台服务器正在执行内容收藏处理的过程,请耐心等待的提示,2、临时收藏索引记录为处理完成状态,那么服务器将会向终端返回内容收藏对象对应的结果数据。It should be noted that since the processing of the collection request and the process of the content collection processing are two processes, the user of the terminal receives the collection success prompt information, which does not mean that the background server must complete the entire process of the content collection processing. After sending the synchronization request in this step, there may be two results: 1. The temporary collection index record is in the processing state, then the terminal will receive the process that the background server is performing the content collection processing, please be patient and wait for the prompt, 2. If the temporary collection index record is in the processing completion state, the server will return the result data corresponding to the content collection object to the terminal.
本发明实施例还提供了另一种终端,如图11所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端是一手机为例进行说明。The embodiment of the present invention further provides another terminal. As shown in FIG. 11 , for the convenience of description, only parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. . The terminal may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, etc., and the terminal is a mobile phone as an example for description.
图11示出的是与本发明实施例提供的终端如手机的主要部分结构的框图。所述手机包括:射频(Radio Frequency,RF)电路1110、存储器1120、 输入单元1130、显示单元1140、传感器1150、音频电路1160、无线保真(wireless fidelity,WiFi)模块1170、处理器1180、以及电源1190等部件。本领域技术人员可以理解,图11中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 11 is a block diagram showing the structure of a main part of a terminal such as a mobile phone provided by an embodiment of the present invention. The mobile phone includes: a radio frequency (RF) circuit 1110, a memory 1120, The input unit 1130, the display unit 1140, the sensor 1150, the audio circuit 1160, the wireless fidelity (WiFi) module 1170, the processor 1180, and the power source 1190 and the like. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 11 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图11对所述手机的各个构成部件进行具体的介绍:The components of the mobile phone are specifically described below with reference to FIG. 11:
RF电路1110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1180处理;另外,将设计上行的数据发送给基站。通常,RF电路1110包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1110 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 1180; in addition, transmitting the designed uplink data to the base station. Generally, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
存储器1120可用于存储软件程序以及模块,处理器1180通过运行存储在存储器1120的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1120 can be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 1120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1130可包括触控面板1131以及其他输入设备1132。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上或在触控面板1131附近的操作),并根据预先设定的程 式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1180,并能接收处理器1180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132。具体地,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. The touch panel 1131, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1131 or near the touch panel 1131. Operation) and according to a preset schedule Drive the corresponding connecting device. Optionally, the touch panel 1131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1180 is provided and can receive commands from the processor 1180 and execute them. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132. Specifically, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1140可包括显示面板1141,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。进一步的,触控面板1131可覆盖显示面板1141,当触控面板1131检测到在其上或附近的触摸操作后,传送给处理器1180以确定触摸事件的类型,随后处理器1180根据触摸事件的类型在显示面板1141上提供相应的视觉输出。虽然在图11中,触控面板1131与显示面板1141是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1131与显示面板1141集成而实现手机的输入和输出功能。The display unit 1140 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 1140 may include a display panel 1141. Alternatively, the display panel 1141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141. After the touch panel 1131 detects a touch operation thereon or nearby, the touch panel 1131 transmits to the processor 1180 to determine the type of the touch event, and then the processor 1180 according to the touch event. The type provides a corresponding visual output on the display panel 1141. Although in FIG. 11 , the touch panel 1131 and the display panel 1141 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated. Realize the input and output functions of the phone.
所述手机还可包括至少一种传感器1150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1141的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1141 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路1160、扬声器1161,传声器1162可提供用户与手机之间的音频 接口。音频电路1160可将接收到的音频数据转换后的电信号,传输到扬声器1161,由扬声器1161转换为声音信号输出;另一方面,传声器1162将收集的声音信号转换为电信号,由音频电路1160接收后转换为音频数据,再将音频数据输出处理器1180处理后,经RF电路1110以发送给比如另一手机,或者将音频数据输出至存储器1120以便进一步处理。An audio circuit 1160, a speaker 1161, and a microphone 1162 can provide audio between the user and the mobile phone. interface. The audio circuit 1160 can transmit the converted electrical data of the received audio data to the speaker 1161, and convert it into a sound signal output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signal into an electrical signal, and the audio circuit 1160 After receiving, it is converted into audio data, and then processed by the audio data output processor 1180, transmitted to the other mobile phone via the RF circuit 1110, or outputted to the memory 1120 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1170可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图11示出了WiFi模块1170,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 1170, which provides users with wireless broadband Internet access. Although FIG. 11 shows the WiFi module 1170, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器1180是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1120内的软件程序和/或模块,以及调用存储在存储器1120内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1180可包括一个或多个处理单元;优选的,处理器1180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器1180中。The processor 1180 is a control center for the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1120, and invoking data stored in the memory 1120, The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 1180.
手机还包括给各个部件供电的电源1190(比如电池),优选的,电源可以通过电源管理系统与处理器1180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 1190 (such as a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 1180 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
在本发明实施例中,该终端所包括的处理器1180还具有以下功能:In the embodiment of the present invention, the processor 1180 included in the terminal further has the following functions:
所述处理器1180,用于通过所述输入单元1130接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;指示通过WiFi模块1170或者RF电路1110向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作;在通过WiFi模块1170或者RF电路1110接收到服务器的收藏成功消息后,通过所述显示单元1140展示收藏成功提示信息;在通过输入单元1130接收到用户输入的内容同步指令后,指示通过WiFi模块1170或者RF电路1110向服务器发送请求结果数据的同步请求;通过WiFi模块1170或者RF电路1110接收服务器发送的与所述内容收藏对象对应的结果数据。还可以通过显示单元 1140将接收到的与所述内容收藏对象对应的结果数据进行显示。The processor 1180 is configured to receive, by the input unit 1130, a favorite instruction input by a user, where the favorite instruction carries a content collection object, and indicates that the collection request is sent to the server through the WiFi module 1170 or the RF circuit 1110, and the request is performed. a collection operation of the content collection object; after receiving the collection success message of the server through the WiFi module 1170 or the RF circuit 1110, displaying the collection success prompt information through the display unit 1140; receiving the user input content through the input unit 1130 After the synchronization command, the synchronization request for transmitting the request result data is transmitted to the server through the WiFi module 1170 or the RF circuit 1110; and the result data corresponding to the content collection object transmitted by the server is received by the WiFi module 1170 or the RF circuit 1110. Display unit 1140 displays the received result data corresponding to the content collection object.
该方案不需要在终端安装专用APP,降低了内容收藏功能的使用技术门槛。服务器收藏索引的建立后即可回馈收藏成功的消息给终端,内容收藏处理与收藏索引的建立为两个分离的步骤,使得服务器可以迅速的告知终端收藏是否成功。使用户能够在多个终端看到的收藏结果同步,提高了收藏记录的同步速率。This solution does not require the installation of a dedicated APP in the terminal, which reduces the technical threshold for the use of the content collection function. After the server collection index is established, the successful collection message can be returned to the terminal, and the content collection processing and the collection index are established in two separate steps, so that the server can quickly inform the terminal whether the collection is successful. Synchronize the collection results that the user can see in multiple terminals, and improve the synchronization rate of the favorite records.
值得注意的是,所述服务器和终端实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于所述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It should be noted that, in the server and the terminal embodiment, the included units are only divided according to functional logic, but are not limited to the foregoing, as long as the corresponding functions can be implemented; The specific names of the units are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
另外,本领域普通技术人员可以理解实现所述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,所述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps in implementing the method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
所述计算机可读存储介质可以是单独存在,未装配入设备中的计算机可读存储介质。该计算机可读存储介质存储有一个或者一个以上程序,该一个或者一个以上程序被一个或者一个以上的处理器用来执行一种内容收藏的方法,该方法包括:The computer readable storage medium can be a computer readable storage medium that is separately present and not incorporated into the device. The computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of content collection, the method comprising:
接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,在用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;After receiving the collection request for the terminal to perform the collection operation of the content collection object, adding a temporary collection index to the collection index corresponding to the user, recording the temporary collection index as the processing status, and sending the collection success message to the terminal Perform content collection processing;
在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。The temporary collection index is modified to a processing completion state after the content collection processing ends.
该一个或者一个以上程序被一个或者一个以上的处理器还可以用来执行另一种内容收藏的方法,该方法包括:The one or more programs may be used by one or more processors to perform another method of content collection, the method comprising:
接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;Receiving a favorite instruction input by the user, where the favorite instruction carries a content collection object;
向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作;Sending a collection request to the server, requesting to perform a collection operation on the content collection object;
接收到服务器的收藏成功消息后,展示收藏成功提示信息;After receiving the collection success message of the server, displaying the collection success prompt information;
在接收到用户输入的内容同步指令后,向服务器发送请求结果数据的同步请求; After receiving the content synchronization instruction input by the user, sending a synchronization request of the request result data to the server;
接收服务器发送的与所述内容收藏对象对应的结果数据。Receiving result data corresponding to the content collection object sent by the server.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (14)

  1. 一种内容收藏的方法,其特征在于,包括:A method for collecting content, characterized in that it comprises:
    服务器接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,在用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,向所述终端发送收藏成功消息并执行内容收藏处理;After receiving the request for the terminal to perform the collection operation of the collection operation of the content collection object, the server adds a temporary collection index to the collection index corresponding to the user, records the temporary collection index as being processed, and sends a collection success message to the terminal. And perform content collection processing;
    所述服务器在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态。The server modifies the temporary collection index to a processing completion state after the content collection processing ends.
  2. 根据权利要求1所述方法,其特征在于,所述执行内容收藏处理包括:The method of claim 1 wherein said performing content collection processing comprises:
    将对所述内容收藏对象的收藏操作指令发送到异步处理池中执行内容收藏处理。The collection operation instruction of the content collection object is sent to the asynchronous processing pool to perform content collection processing.
  3. 根据权利要求1所述方法,其特征在于,所述服务器接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后还包括:The method according to claim 1, wherein the server further comprises: after receiving the request for the terminal to perform the collection operation of the bookmarking operation of the content collection object:
    对所述用户进行身份校验,若校验通过,则在所述用户对应的收藏索引内增加临时收藏索引。Perform identity verification on the user, and if the verification passes, add a temporary collection index in the favorite index corresponding to the user.
  4. 根据权利要求3所述方法,其特征在于,还包括:The method of claim 3, further comprising:
    若所述身份校验失败,则进行重校验,若仍失败,则拒绝所述收藏请求。If the identity verification fails, re-verification is performed, and if it still fails, the collection request is rejected.
  5. 根据权利要求3或4所述方法,其特征在于,所述在所述用户对应的收藏索引内增加临时收藏索引之前还包括:The method according to claim 3 or 4, wherein the adding the temporary collection index to the favorite index corresponding to the user further comprises:
    若所述身份校验通过,则确定所述内容收藏对象是否为所述用户的重复收藏,若是,则向所述终端发送收藏成功消息;若否,则在所述用户对应的收藏索引内增加临时收藏索引。If the identity verification is passed, determining whether the content collection object is a duplicate collection of the user, and if yes, sending a collection success message to the terminal; if not, adding in the collection index corresponding to the user Temporary collection index.
  6. 根据权利要求1至4任意一项所述方法,其特征在于,还包括:The method according to any one of claims 1 to 4, further comprising:
    若接收到所述用户通过终端发送的同步请求,则将内容收藏处理的结果数据发送给所述终端。If the synchronization request sent by the user through the terminal is received, the result data of the content collection process is sent to the terminal.
  7. 一种内容收藏的方法,其特征在于,包括:A method for collecting content, characterized in that it comprises:
    终端接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;Receiving, by the terminal, a favorite instruction input by the user, where the favorite instruction carries a content collection object;
    所述终端向服务器发送收藏请求,请求执行对所述内容收藏对象的收藏操作; Sending, by the terminal, a collection request to the server, requesting to perform a collection operation on the content collection object;
    所述终端接收到服务器的收藏成功消息后,展示收藏成功提示信息;After receiving the collection success message of the server, the terminal displays the collection success prompt information;
    所述终端在接收到用户输入的内容同步指令后,向服务器发送请求结果数据的同步请求;After receiving the content synchronization instruction input by the user, the terminal sends a synchronization request of the request result data to the server;
    所述终端接收服务器发送的与所述内容收藏对象对应的结果数据。The terminal receives result data corresponding to the content collection object sent by the server.
  8. 一种服务器,其特征在于,包括:A server, comprising:
    请求接收单元,用于接收终端请求执行对内容收藏对象的收藏操作的收藏请求;a request receiving unit, configured to receive a collection request by the terminal to perform a collection operation on the content collection object;
    索引控制单元,用于在所述请求接收单元接收到所述收藏请求后,在所述用户对应的收藏索引内增加临时收藏索引,将所述临时收藏索引记录为正在处理状态,在内容收藏处理结束后将所述临时收藏索引修改为处理完成状态;An index control unit, configured to: after the request receiving unit receives the collection request, add a temporary collection index in the collection index corresponding to the user, and record the temporary collection index as being processed, in the content collection processing After the end, the temporary collection index is modified to a processing completion state;
    发送单元,用于在所述索引控制单元将所述临时收藏索引记录为正在处理状态后,向所述终端发送收藏成功消息;a sending unit, configured to send a collection success message to the terminal after the index control unit records the temporary collection index as being processed;
    收藏处理单元,用于在所述发送单元发送收藏成功消息时开始执行内容收藏处理。And a collection processing unit, configured to start performing content collection processing when the sending unit sends the collection success message.
  9. 根据权利要求8所述服务器,其特征在于,A server according to claim 8 wherein:
    所述收藏处理单元,用于在所述发送单元发送收藏成功消息时将对所述内容收藏对象的收藏操作指令发送到异步处理池中执行内容收藏处理。The collection processing unit is configured to send a collection operation instruction of the content collection object to the asynchronous processing pool to perform content collection processing when the sending unit sends the collection success message.
  10. 根据权利要求9所述服务器,其特征在于,还包括:The server according to claim 9, further comprising:
    校验单元,用于在所述请求接收单元接收到终端请求执行对内容收藏对象的收藏操作的收藏请求后,对所述终端的用户进行身份校验;a verification unit, configured to perform identity verification on a user of the terminal after the request receiving unit receives a request for performing a collection operation on a bookmark operation of the content collection object;
    所述索引控制单元,用于若所述身份校验通过,则在所述用户对应的收藏索引内增加临时收藏索引。The index control unit is configured to add a temporary collection index to the bookmark index corresponding to the user if the identity verification is passed.
  11. 根据权利要求10所述服务器,其特征在于,A server according to claim 10, wherein
    所述校验单元,还用于若所述身份校验失败,则进行重校验,若仍失败,则拒绝所述收藏请求。The verification unit is further configured to perform re-verification if the identity verification fails, and reject the collection request if it still fails.
  12. 根据权利要求10或11所述服务器,其特征在于,还包括:The server according to claim 10 or 11, further comprising:
    重复确定单元,用于若所述身份检验单元校验通过,在所述索引控制单元在所述用户对应的收藏索引内增加临时收藏索引之前,确定所述内容收藏对象是否为所述用户的重复收藏; a repetition determining unit, configured to determine whether the content collection object is a duplicate of the user before the index control unit adds a temporary collection index to the collection index corresponding to the user, if the identity verification unit passes the verification Collection
    所述发送单元,还用于若所述重复确定单元确定结果为是,则向所述终端发送收藏成功消息;The sending unit is further configured to: if the determination result of the repetition determining unit is yes, send a collection success message to the terminal;
    所述索引控制单元,用于若所述重复确定单元确定结果为否,则在所述用户对应的收藏索引内增加临时收藏索引。The index control unit is configured to add a temporary collection index to the collection index corresponding to the user if the determination result of the repetition determination unit is negative.
  13. 根据权利要求8至11任意一项所述服务器,其特征在于,还包括:The server according to any one of claims 8 to 11, further comprising:
    结果数据发送单元,用于若接收到所述用户通过终端发送的同步请求,则将内容收藏处理的结果数据发送给所述终端。The result data transmitting unit is configured to: if the synchronization request sent by the user through the terminal is received, send the result data of the content collection process to the terminal.
  14. 一种终端,其特征在于,包括:A terminal, comprising:
    指令接收单元,用于接收用户输入的收藏指令,所述收藏指令中携带有内容收藏对象;接收用户输入的内容同步指令;The instruction receiving unit is configured to receive a favorite instruction input by the user, where the favorite instruction carries a content collection object; and receives a content synchronization instruction input by the user;
    请求发送单元,用于向服务器发送收藏请求,请求执行对所述指令接收单元接收到的内容收藏对象的收藏操作;向服务器发送请求结果数据的同步请求;a request sending unit, configured to send a bookmark request to the server, requesting to perform a bookmark operation of the content favorite object received by the instruction receiving unit; and send a synchronization request of the request result data to the server;
    提示展示单元,用于在接收到服务器的收藏成功消息后,展示收藏成功提示信息;a prompt display unit, configured to display a collection success prompt message after receiving a collection success message of the server;
    结果接收单元,用于接收服务器发送的与所述内容收藏对象对应的结果数据。 The result receiving unit is configured to receive result data corresponding to the content collection object sent by the server.
PCT/CN2014/089563 2013-11-13 2014-10-27 Content collecting method, server and terminal WO2015070698A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310565582.3A CN104637509B (en) 2013-11-13 2013-11-13 A kind of method of content collection, server and terminal
CN201310565582.3 2013-11-13

Publications (1)

Publication Number Publication Date
WO2015070698A1 true WO2015070698A1 (en) 2015-05-21

Family

ID=53056749

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089563 WO2015070698A1 (en) 2013-11-13 2014-10-27 Content collecting method, server and terminal

Country Status (2)

Country Link
CN (1) CN104637509B (en)
WO (1) WO2015070698A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899270A (en) * 2015-05-26 2015-09-09 惠州Tcl移动通信有限公司 Intelligent terminal and information storage method for same
CN105930343A (en) * 2016-04-03 2016-09-07 北京设集约科技有限公司 Method and system for quoting favorited APP content
CN109683786A (en) * 2018-12-25 2019-04-26 北京微播视界科技有限公司 Update method, electronic equipment and the computer storage medium of user interface information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080056A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A management method and system of network browser collection folder of mobile terminal
CN101184302A (en) * 2007-12-27 2008-05-21 中兴通讯股份有限公司 Method for implementing favorite of Java virtual machine in mobile phone
JP2011227572A (en) * 2010-04-15 2011-11-10 Yahoo Japan Corp Browsing terminal and method
CN102722481A (en) * 2011-03-29 2012-10-10 阿里巴巴集团控股有限公司 Processing method and searching method for user favorite data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080056A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A management method and system of network browser collection folder of mobile terminal
CN101184302A (en) * 2007-12-27 2008-05-21 中兴通讯股份有限公司 Method for implementing favorite of Java virtual machine in mobile phone
JP2011227572A (en) * 2010-04-15 2011-11-10 Yahoo Japan Corp Browsing terminal and method
CN102722481A (en) * 2011-03-29 2012-10-10 阿里巴巴集团控股有限公司 Processing method and searching method for user favorite data

Also Published As

Publication number Publication date
CN104637509A (en) 2015-05-20
CN104637509B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
US20200278949A1 (en) Method and apparatus for viewing previously used file, and terminal
US11798107B2 (en) Scenario-based application recommendation method and apparatus
US10853437B2 (en) Method and apparatus for invoking application programming interface
CN108984548B (en) Page content caching method and device
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
WO2018196588A1 (en) Information sharing method, apparatus and system
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
US10643021B2 (en) Method and device for processing web page content
WO2018049887A1 (en) Data transmission processing method and terminal device
US10095666B2 (en) Method and terminal for adding quick link
TWI512496B (en) Method and system for sharing resources
US11481357B2 (en) Album display method, electronic device, and storage medium
WO2018107941A1 (en) Multi-screen linking method and system utilized in ar scenario
US20140351212A1 (en) Method and apparatus for processing reading history
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
WO2015000430A1 (en) Intelligent word selection method and device
WO2015003636A1 (en) Method and device for interception of page elements
WO2014206138A1 (en) Webpage data update method, apparatus and terminal device
WO2019096042A1 (en) Application program installation method and mobile terminal
WO2015067142A1 (en) Webpage display method and device
CN106156097B (en) Method and device for processing browser input records
US9582584B2 (en) Method, apparatus and system for filtering data of web page
CN104750730B (en) Browser display method and device
WO2015074387A1 (en) Sliding operation response method, apparatus and terminal device
WO2015043405A1 (en) Service processing method, apparatus, 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: 14861734

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 271016)

122 Ep: pct application non-entry in european phase

Ref document number: 14861734

Country of ref document: EP

Kind code of ref document: A1