A data push method and device

By combining HTML and local storage technologies, flexible data push and caching are achieved, solving the problem that users cannot select data in traditional data push methods, improving user efficiency and reducing server load.

CN114629952BActive Publication Date: 2024-11-15CHINA CONSTR BANK CORP SICHUAN BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210257754.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-11-15
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

Traditional data push methods cannot flexibly select data, increase the user's processing workload, and have high server-side data integration costs.

Method used

By combining HTML and local storage technologies, historical and current data are integrated. Users can select the data they need and cache it through storage policy identifiers and business object identity identifiers, reducing server requests.

Benefits of technology

Improve user data processing efficiency, reduce server costs, reduce unnecessary data requests and transmissions, and enhance the flexibility of data push.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114629952B_ABST
    Figure CN114629952B_ABST
Patent Text Reader

Abstract

The present invention provides a data push method and device, the method comprising: when it is detected that a user clicks on a data push link in a message push page, acquiring push data corresponding to the data push link, extracting a storage policy identifier and a business object identity identifier from the push data when the push data meets a data processing condition; based on the storage policy identifier and the business object identity identifier, determining the page data of the business object to which the business object identity identifier belongs; caching the page data to obtain the cached data of the business object; based on the user's data requirements, determining the response data in the cached data, and updating the response data to the data push page displayed to the user, so as to complete the data push. By caching the extracted page data, the right to select data is given to the user, and data can be pushed to the user more flexibly, reducing the user's subsequent data processing workload.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data push, and particularly to a data push method and device. Background Art

[0002] In order to provide users with high-quality services and improve the company's economic benefits, various industries usually push business data or messages to users. The specific content of the data or messages pushed by different industries can be set according to actual needs.

[0003] The traditional way to push data to users is to call the message interface for push. When this recommended method is used, the data is pushed directly to the user, and the user cannot choose the data. The method of pushing data is not flexible enough, which increases the workload of the user for subsequent data processing. Summary of the invention

[0004] In view of this, the present invention provides a data push method and device, which can integrate the data when pushing data to the user, and the user can select the required data, providing a flexible data push mode and reducing the workload of the user in subsequent data processing.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] The first aspect of the present invention discloses a data push method, comprising:

[0007] When detecting that a user clicks a data push link in a message push page, obtaining pre-generated push data corresponding to the data push link;

[0008] Determining whether the pushed data meets a preset data processing condition;

[0009] If satisfied, extracting the storage policy identifier and the business object identity identifier from the pushed data;

[0010] Based on the storage policy identifier and the business object identifier, determining page data of the business object to which the business object identifier belongs;

[0011] Cache the page data in a preset cache update module to obtain cache data of the business object;

[0012] Based on the data demand of the user, response data is determined in the cache data, and the response data is updated to the data push page displayed to the user.

[0013] A second aspect of the present invention discloses a data push device, comprising:

[0014] A first acquisition unit, configured to acquire pre-generated push data corresponding to the data push link when detecting that a user clicks on a data push link in a message push page;

[0015] A judging unit, used to judge whether the pushed data meets a preset data processing condition;

[0016] An extraction unit, configured to extract a storage policy identifier and a business object identity identifier from the pushed data if the conditions are met;

[0017] A first determining unit, configured to determine, based on the storage policy identifier and the business object identifier, page data of the business object to which the business object identifier belongs;

[0018] A cache processing unit, used to perform cache processing on the page data in a preset cache update module to obtain cache data of the business object;

[0019] An updating unit is used to determine response data in the cache data based on the data demand of the user, and update the response data to the data push page displayed to the user.

[0020] Compared with the prior art, the present invention has the following advantages:

[0021] The present invention provides a data push method and device, which includes: when it is detected that a user clicks on a data push link in a message push page, the push data corresponding to the data push link is obtained, and when the push data meets the data processing conditions, the storage policy identifier and the business object identity identifier are extracted from the push data; based on the storage policy identifier and the business object identity identifier, the page data of the business object to which the business object identity identifier belongs is determined; the page data is cached to obtain the cached data of the business object; based on the data requirements of the user, the response data is determined in the cached data, and the response data is updated to the data push page displayed to the user. After the push data that meets the data processing conditions is obtained, the page data is extracted from the push data, and the page data is cached to obtain the cached data of the business object. The response data can be extracted from the cached data according to the user's requirements, and then displayed to the user on the data push page. By caching the extracted page data, the right to select data is given to the user, and data can be pushed to the user more flexibly, reducing the user's subsequent data processing workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0023] Figure 1 A method flow chart of a data push method provided by an embodiment of the present invention;

[0024] Figure 2 A flow chart of a method for determining page data of a business object to which a business object identity identifier belongs provided by an embodiment of the present invention;

[0025] Figure 3 A flow chart of a method for caching page data in a preset cache update module to obtain cache data of a business object provided in an embodiment of the present invention;

[0026] Figure 4 A flowchart of a data push method provided by an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of the structure of a data push device provided by an embodiment of the present invention;

[0028] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0031] In various industries, pushing data to users is a common application scenario. For example, banks sometimes need to push data or information to relevant users. The current message push method is based on the message interface of its own or third-party tools. Web messages are built according to the interface requirements, and the message interface is called for push. In this way, the information between single messages or historical messages is isolated from each other, and users cannot choose data independently. In addition, it is difficult to integrate the pushed information, and it is difficult for users to obtain valuable information from different categories of messages or historical message records. If the messages are integrated and pushed on the back-end server, the server-side overhead will increase, which will increase the corresponding cost.

[0032] In order to solve the above problems, the present invention combines HTML technology with local storage technology, can save data locally, and then push historical data and current data to users after integration, can push data to users according to user needs, can push data to users comprehensively, improve the efficiency of subsequent user data processing and reduce the difficulty of user data processing. In addition, it can also reduce the number of requests for data from the server, thereby reducing unnecessary data requests, reducing unnecessary data transmission between the browser and the server, and reducing the application cost of the server.

[0033] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0034] The method provided in the embodiment of the present invention can be applied to smart terminals, such as mobile phones, computers, IPADs and other devices, and the execution subject can be the front-end processor of the smart terminal.

[0035] Reference Figure 1 , is a method flow chart of a data push method provided by an embodiment of the present invention, and is specifically described as follows:

[0036] S101: When it is detected that a user clicks a data push link in a message push page, pre-generated push data corresponding to the data push link is acquired.

[0037] In the method provided by the embodiment of the present invention, the data push link can be sent to the user through the enterprise WeChat. When the user opens the enterprise WeChat, the page contains the data push link, and the page is the message push page.

[0038] When the user clicks the data push link in the message push page, a data request is sent to the backend server, so that the backend server determines the push data based on the data request, and the push data is pre-generated data. Preferably, the push data can be rendered in the front-end page.

[0039] The backend server will process the data in advance to obtain the push data, generate a data push link corresponding to the push data, and send the data push link to the user.

[0040] Furthermore, the process of generating push data is further described as follows:

[0041] Obtain the data set to be pushed, which contains at least one business message data;

[0042] Determine the business object to which the data set to be pushed belongs, and determine the push requirements of the business object;

[0043] Determine whether a push identifier exists in the push request;

[0044] If there is a push identifier in the push demand, a business object identifier is generated based on the current timestamp and the keyword of the business object, and each business message data is encapsulated into push data using the business object identifier and the timestamp of each business message data;

[0045] If there is no push identifier in the push request, the data set to be pushed is determined as push data.

[0046] In an embodiment of the present invention, a backend processing module can be used to generate push data. The backend processing module is set in the backend server. The backend processing module obtains a data set to be pushed, wherein different data sets to be pushed correspond to different business objects. The data set to be pushed contains at least one business message data. The business message data is data generated after business processing corresponding to the business object is performed. Each business message data has a corresponding timestamp, which is the time when the business message data is generated.

[0047] In the method provided by the embodiment of the present invention, each business object has a corresponding push demand, and the push demand is proposed by the business department according to actual needs. When there is an encapsulation identifier in the push demand, it is necessary to encapsulate and process each business message data, and the back-end processing module uses the current time of the server as the timestamp for generating the business object identity identifier, determines the keyword of the business object, combines the keyword and the timestamp, thereby obtaining the business object identity identifier of the business object, and encapsulates the business object identity identifier and each business message to obtain the encapsulated data. Preferably, the push data can be an HTML file, and further, the HTML file has a corresponding data push link. Further, each business object may have multiple business object identities, but each business object identity identifier of the business object is unique. Preferably, when encapsulating each business message, a corresponding storage strategy identifier is added according to the push demand. Preferably, when encapsulating each business message data, a preset page template can also be used to encapsulate and process each business message data and business object identifier, so as to obtain the corresponding push data.

[0048] In the method provided by the embodiment of the present invention, in the process of encapsulating each business message data, it is necessary to generate a business object identity, and the way to generate the business object identity is as follows: using a timestamp and a keyword of the business object to generate the business object identity; specifically: the backend processing module uses the current time of the server as the timestamp for generating the business object identity, determines the keyword of the business object, and combines the keyword and the timestamp to obtain the business object identity of the business object. Furthermore, each business object may have multiple business object identities, but each business object identity of the business object is unique.

[0049] It should be noted that business objects include: customers, accounts, institutional products and other business objects. Different business objects have different keywords. One way to determine the keywords of business objects is to encrypt the identity number of the business object through the MD5 algorithm and then add a 4-5-digit identification code to obtain it, for example: 1001+MD5 (identity number), 1001 represents the customer, and the identity number is the unique identifier of the business object corresponding to the bank. Furthermore, the business object identity identifier of the business object is generated using a timestamp in order to distinguish different push data of the same business object.

[0050] It should be noted that each business message data has a corresponding timestamp, which is the time when the business message data is generated. The business object identifier and the timestamp of each business message data are used to encapsulate each business message data, and the obtained push data meets the preset data format. Furthermore, the data format is JSON format. Exemplarily, the specific form of the push data can be: {business object identity identifier: [{timestamp 1, business message data 1}, {timestamp 2, business message data 2}, {timestamp 3, business message data 3}]}.

[0051] Furthermore, after determining that there is no encapsulation identifier in the push demand, it is not necessary to encapsulate each business message data in the push data set, and each business message data can be directly encapsulated into push data.

[0052] It should be noted that after generating push data, the back-end processing module will generate a data push link corresponding to the push data, and feedback the push link to the user. The feedback can be through corporate WeChat, SMS, email, and web pages. The page that the user opens after opening corporate WeChat, SMS or email is the message push page.

[0053] S102: Determine whether the pushed data meets the preset data processing conditions; if the pushed data meets the data processing conditions, execute S103; if the pushed data does not meet the data processing conditions, execute S107.

[0054] The process of determining whether the pushed data meets the preset data processing conditions is as follows:

[0055] Parse the pushed data to determine whether the business object identity exists in the pushed data;

[0056] If the business object identity exists in the pushed data, it is determined that the pushed data meets the data processing conditions;

[0057] If the business object identity does not exist in the pushed data, it is determined that the pushed data does not meet the data processing condition.

[0058] In the method provided by the embodiment of the present invention, steps S103 to S106 can be performed only when the business object identity exists in the pushed data, which can be understood as only when the business object identity exists in the pushed data can the data push method provided by the embodiment of the present invention be used. Further, when it is determined that the business object identity exists in the pushed data, it can be considered that the business object identity is generated by the above method.

[0059] Preferably, when judging whether the pushed data meets the preset data processing conditions, it can be judged by whether there is a business object identity identifier in the pushed data, and it can also be judged by the front-end page when the user clicks the data push link. Specifically, if there is an identity identifier element in the front-end page, it can be determined that the pushed data meets the data processing conditions; otherwise, it can be determined that the pushed data does not meet the data processing conditions. Furthermore, the identity identifier element will only exist in the page when there is a business object identity identifier in the pushed data.

[0060] S103: Extracting a storage policy identifier and a business object identity identifier from the pushed data.

[0061] The storage policy identifier has been encapsulated in the push data when the push data is generated. Further, when the storage policy identifier is encapsulated in the push data, the storage policy identifier can be obtained from the push demand. Further, the storage policy identifier only exists in the push demand with the encapsulation identifier.

[0062] S104: Determine page data of the business object to which the business object identity belongs based on the storage policy identifier and the business object identity identifier.

[0063] Reference Figure 2 , which is a flow chart of a method for determining page data of a business object to which a business object identity identifier belongs provided by an embodiment of the present invention, and is specifically described as follows:

[0064] S201: Determine a policy type based on a storage policy identifier.

[0065] Different storage policy identifiers correspond to different policy types. For example, when the storage policy identifier is a response identifier, the determined policy type is a response type; when the storage policy identifier is an automatic identifier, the determined policy type is an automatic type. There are two policy types of the present invention, one is an automatic type and the other is a response type.

[0066] S202: Determine whether the policy type is an automatic type; if it is determined that the policy type is an automatic type, execute S203; if it is determined that the policy type is not an automatic type, execute S204.

[0067] S203: Determine the pushed data as page data of the business object.

[0068] When the policy type is automatic, the pushed data is directly determined as the page data of the business object. Further, when the policy type is automatic, there is no need to wait for the user's response, and the pushed data is directly determined as the page data of the business object, thereby improving the data processing efficiency.

[0069] S204: Determine that the policy type is a response type, generate a data selection page based on each business message data, and display the data selection page to the user to obtain data selection information input by the user based on the data selection page.

[0070] When the policy type is response type, it is necessary to wait for the user's response before further processing.

[0071] Preferably, the data selection page includes information about each business message data, such as a description of the content of the business message data.

[0072] The data selection information input by the user based on the data selection page is actually the data input by the user in response to the data selection page.

[0073] S205: Determine target business message data from each business message data based on the data selection information, and encapsulate each target business message data into page data of the business object based on the business object identity and the timestamp of each target business message data.

[0074] The data selection information includes information of each business message data selected by the user.

[0075] In the method provided by the embodiment of the present invention, when the policy type is a response type, it is necessary to wait for the user's response. Therefore, the user can independently select the service message data to meet the user's needs in different application scenarios.

[0076] S105: Cache the page data in a preset cache update module to obtain cache data of the business object.

[0077] Reference Figure 3 , which is a flow chart of a method for caching page data in a preset cache update module to obtain cache data of a business object provided by an embodiment of the present invention, and is specifically described as follows:

[0078] S301: Determine whether there is data corresponding to the business object in the cache update module; if there is no data corresponding to the business object in the cache update module, execute S302; if there is data corresponding to the business object in the cache update module, execute S303.

[0079] The cache update module is a local module of the terminal, and the data contained in the cache update module are all data historically acquired by the user.

[0080] If the data corresponding to the business object does not exist in the cache update module, it can be determined that the data of the business object in the cache update module is empty.

[0081] S302: Save the page data to the cache update module and use the page data as cache data of the business object.

[0082] S303: Determine the data corresponding to the business object as target data.

[0083] S304: For each business message data in the page data, determine whether there is data corresponding to the business message data in the target data. If not, save the business message data and determine the business message data as the first data. If so, do not save the business message data.

[0084] In the method provided by an embodiment of the present invention, for each business message data in the page data, when determining whether there is data corresponding to the business message data in the target data, specifically: determining whether there is data with the same timestamp as the business message data in the target data; if there is data with the same timestamp as the business message data in the target data, then determining that there is data corresponding to the business message data in the target data, and at this time, it needs to be saved in the business message data. Further, the business message data can be saved as data corresponding to the business object; if there is no data with the same timestamp as the business message data in the target data, then the business message data does not need to be saved.

[0085] S305: Determine the target data and each first data as cache data of the business object.

[0086] In the method provided in the embodiment of the present invention, the target data and each first data in the cache update module are determined as cache data of the business object. It should be noted that the cache data includes data that does not correspond to the data push link clicked by the user this time. In other words, the cache data includes data that has been cached in the cache update module and is other data push links. This provides the possibility of pushing data in different data push links to users, and pushing data from multiple data push links to users after integrating them.

[0087] S106: Based on the user's data demand, determine the response data in the cache data, and update the response data to the data push page displayed to the user.

[0088] It should be noted that the cache data includes at least one piece of business information data, the response data is data that meets the data needs of the user, and the response data includes at least one piece of business information data.

[0089] A data display page for cached data can be generated and displayed to the user, and selection information input by the user in response to the data display page can be received. Response data can be determined in the cached data based on the selection information. Specifically, the selection information includes information on various business information data selected by the user in the cached data.

[0090] Furthermore, the data push page is an HTML file, which is a web page file displayed to the user on the front end. The file contains various business information data selected by the user. Furthermore, when the business information data selected by the user is not the data of the data recommendation link clicked by the user this time, the HTML file can be generated by binding the data interface corresponding to the business information data. Thus, when the HTML file is displayed to the user, the data in the HTML page can be updated.

[0091] S107: Push the push data directly to the user.

[0092] In the method provided by the embodiment of the present invention, when it is detected that the user clicks on the data push link in the message push page, the pre-generated push data corresponding to the data push link is obtained; it is determined whether the push data meets the preset data processing conditions; if so, the storage policy identifier and the business object identity identifier are extracted from the push data; based on the storage policy identifier and the business object identity identifier, the page data of the business object to which the business object identity identifier belongs is determined; the page data is cached in the preset cache update module to obtain the cache data of the business object; based on the user's data requirements, the response data is determined in the cache data, and the response data is updated to the data push page displayed to the user. When the acquired push data meets the data processing conditions, the page data is determined from the push data, and the page data is cached in the cache update module to obtain the cache data, and the response data can be determined in the cache data according to the user's requirements, and the response data is updated in the data push page pushed to the user, so as to push the response data to the user. By caching page data and allowing users to select the data they need from the cached data, the flexibility of pushing data to users is improved, effectively reducing the user's subsequent workload for data processing, improving user work efficiency, and when pushing data to users, effectively reducing the number of times data is requested from the server, reducing the server's workload.

[0093] Reference Figure 4 , which is a flow chart of a data push method provided by an embodiment of the present invention, as shown in the figure, and is specifically described as follows:

[0094] Before pushing data to users, the data needs to be processed first, wherein the backend processing module is the module that processes the business message data.

[0095] The back-end processing module is used to process each business message data to obtain push data. In the process of processing the business message data by the back-end processing module, the business message data can be processed according to the push requirements of the business object to which the business message data belongs. If the push requirements contain an encapsulation identifier, the back-end processing module needs to generate a business object identity identifier, and encapsulate the business object identity identifier and the business message data into push data. At this time, the push data contains a storage policy identifier and a business object identity identifier; if the push requirements do not contain an encapsulation identifier, the back-end processing module directly determines the business message data as push data. At this time, the push data does not contain a storage policy identifier and a business object identity identifier. The storage policy identifier is used to determine the policy type, and the policy type is divided into an automatic type and a response type.

[0096] It should be noted that the back-end processing module uses the timestamp and the keywords of the business object to generate the business object identity. Furthermore, after generating the push data, the back-end processing module will also generate a data push link corresponding to the push data. After the user clicks the data push link, the push data can be rendered using a preset page template to obtain a front-end page containing the push data, and the front-end page is displayed to the user. When there is an encapsulation mark in the push demand, the H5 element representing the identity mark is embedded in the rendered front-end page. Preferably, the H5 in the front-end page contains the business object identity mark of the push data.

[0097] After generating the push data, the backend processing module feeds back the data push link of the push data to the user. After clicking the data push link, the detection module starts working.

[0098] The detection module obtains the push data corresponding to the data push link and determines whether the push data meets the data processing conditions. There are two ways to judge: one is to judge based on whether there is a business object identity in the push data, and the other is to judge based on whether there is an identity element in the front-end page of the data push link.

[0099] When judging based on whether the business object identity exists in the pushed data, such as Figure 4 As shown, the pushed data is parsed to determine whether there is an ID in the pushed data, where the ID refers to the business object identity; if it exists, the storage policy identifier is obtained; if it does not exist, the pushed data is directly displayed to the user. Further, when judging whether there is an identity element in the front-end page based on the data push link, the front-end page is scanned to determine whether there is an identity element, and if it exists, the storage policy identifier is obtained; if it does not exist, the pushed data is directly displayed to the user.

[0100] After obtaining the storage policy identifier, the data processing module determines the policy type based on the storage policy identifier. When the policy type is determined to be an automatic type, the pushed data is determined to be page data; when the policy type is determined to be a response type, a data selection page for the pushed data can be generated, and the data selection page is displayed to the user to wait for the user's response. After the user responds, the data selection information input by the user is received, and data is selected from the pushed data based on the data selection information, and page data is generated based on the selected data, and the page data is cached. Furthermore, the storage format of the page data is a JSON string, with the business object identity as the storage key, and the timestamp and specific data of the business message data as the value. The storage format example is: {Business object identity: [{timestamp 1, business message data 1}, {timestamp 2, business message data 2}, {timestamp 3, business message data 3}]}.

[0101] The cache update module is used to cache the page data. Based on the business object identity in the page data, the business object to which the business object identity belongs is determined, and it is judged whether there is data corresponding to the business object in the cache update module. If not, the page data is directly saved. If so, the data corresponding to the business object is determined as the target data, and the data in the page data that is different from the target data is saved, thereby realizing data update in the cache update module. Furthermore, when saving data in the cache update module, it can be done through the Web Storage API interface.

[0102] After updating the data in the cache update module, the cache data can be obtained. The cache data is all the data corresponding to the business object in the cache update module after the data is updated; the data display module generates a display page based on the cache data, and displays the display page to the user, so that the user can independently select the required data, and the user's selected data is updated in the data push page. Further, when the data push page is fed back to the user, it can be pushed to the user's mobile phone through the communication client interface, and the communication client is such as enterprise WeChat and other communication applications. When the data display module generates a data push page based on the cache data, the data binding method can be adopted, that is, the data in the cache data is bound to the corresponding elements in the preset push page template. After the data is updated, the data in the data push page displayed to the user will also be updated.

[0103] The embodiment of the present invention provides a message push plus local storage method based on Web Storage, which allows users to integrate and obtain the information they need from different messages more quickly and efficiently, improves the user's information extraction rate, and enhances the user experience, while eliminating the need for the server to perform additional data processing.

[0104] Exemplarily, when using the traditional method to push data, the messages are isolated from each other, and message A cannot access the data of message B, especially when pushing data to the same business objects, for example, the bank needs to push the relevant data of the customer to the account manager, and there are two pushes of customer large transaction reminder and customer risk information reminder. When the technical solution is implemented, the account manager can check whether there is any risk warning information before when receiving the transaction reminder, and can check the previous transaction information when receiving the risk warning information. In order to achieve the same effect, the traditional solution needs to integrate the data on the back-end server, which is bound to increase the cost of the back-end server. When there are new projects that need to be integrated, it will involve redevelopment, which increases the cost. The present invention uses Web Storage to save data locally. After saving the data locally, there is no need to request data from the back-end server, which reduces unnecessary data requests, reduces the data transmission between the front-end and the back-end, reduces network traffic, and can instantly obtain data from the local, which is much faster than obtaining data from the server through the network, thereby improving the performance of reading data.

[0105] and Figure 1 Correspondingly, an embodiment of the present invention provides a data push device, which is used to support Figure 1 The method shown in the real life implementation, refer to Figure 5 , is a structural diagram of a data push device provided by an embodiment of the present invention, and is specifically described as follows:

[0106] The first acquisition unit 501 is used to acquire pre-generated push data corresponding to the data push link when detecting that a user clicks on the data push link in the message push page;

[0107] The judging unit 502 is used to judge whether the pushed data meets the preset data processing conditions;

[0108] An extraction unit 503 is used to extract a storage policy identifier and a business object identity identifier from the pushed data if the conditions are met;

[0109] A first determining unit 504 is configured to determine page data of a business object to which the business object identity belongs based on the storage policy identifier and the business object identity identifier;

[0110] A cache processing unit 505, configured to perform cache processing on the page data in a preset cache update module to obtain cache data of the business object;

[0111] The updating unit 506 is used to determine the response data in the cache data based on the data demand of the user, and update the response data to the data push page displayed to the user.

[0112] In the device provided by the embodiment of the present invention, when it is detected that the user clicks on the data push link in the message push page, the pre-generated push data corresponding to the data push link is obtained; it is determined whether the push data meets the preset data processing conditions; if so, the storage policy identifier and the business object identity identifier are extracted from the push data; based on the storage policy identifier and the business object identity identifier, the page data of the business object to which the business object identity identifier belongs is determined; the page data is cached in the preset cache update module to obtain the cache data of the business object; based on the user's data requirements, the response data is determined in the cache data, and the response data is updated to the data push page displayed to the user. When the acquired push data meets the data processing conditions, the page data is determined from the push data, and the page data is cached in the cache update module to obtain the cache data, and the response data can be determined in the cache data according to the user's requirements, and the response data is updated in the data push page displayed to the user, so that the response data is pushed to the user. By caching page data and allowing users to select the data they need from the cached data, the flexibility of pushing data to users is improved, effectively reducing the user's subsequent workload for data processing, improving user work efficiency, and when pushing data to users, effectively reducing the number of times data is requested from the server, reducing the server's workload.

[0113] The device provided in the embodiment of the present invention may also be configured as follows:

[0114] A second acquisition unit, configured to acquire a data set to be pushed, wherein the data set includes at least one business message data;

[0115] A second determining unit, configured to determine the business object to which the data set to be pushed belongs, and determine a push requirement of the business object;

[0116] A third determining unit, configured to determine whether there is a packaging identifier in the push request;

[0117] an encapsulation unit, for, if present, generating a business object identity based on a current timestamp and a keyword of the business object, and encapsulating each of the business message data into push data using the business object identity and a timestamp of each of the business message data;

[0118] The fourth determining unit is configured to determine the to-be-pushed data set as the pushed data if the to-be-pushed data set does not exist.

[0119] In the device provided in the embodiment of the present invention, the determining unit 502 may be configured as follows:

[0120] The parsing subunit is used to parse the pushed data and determine whether there is a business object identity in the pushed data;

[0121] The first determining subunit is configured to determine that the pushed data satisfies the data processing condition if the business object identity identifier exists in the pushed data.

[0122] In the device provided in the embodiment of the present invention, the first determining unit 504 may be configured as follows:

[0123] A second determining subunit, configured to determine a policy type based on the storage policy identifier;

[0124] A third determining subunit, configured to determine the pushed data as page data of the business object when the policy type is an automatic type;

[0125] a generating subunit, configured to generate a data selection page based on each of the service message data when the policy type is a response type, and display the data selection page to the user to obtain data selection information input by the user based on the data selection page;

[0126] The encapsulation subunit is used to determine the target business message data in each of the business message data based on the data selection information, and encapsulate each of the target business message data into the page data of the business object based on the business object identity and the timestamp of each of the target business message data.

[0127] In the device provided by the embodiment of the present invention, the cache processing unit 505 may be configured as follows:

[0128] A judging subunit, used for judging whether there is data corresponding to the business object in the cache updating module;

[0129] a saving subunit, configured to save the page data to the cache update module and use the page data as cache data of the business object if the data corresponding to the business object does not exist in the cache update module;

[0130] a fourth determining subunit, configured to determine the data corresponding to the business object as target data if data corresponding to the business object exists in the cache update module;

[0131] a fifth determining subunit, for determining, for each business message data in the page data, whether data corresponding to the business message data exists in the target data; if not, saving the business message data and determining the business message data as the first data; and if so, not saving the business message data;

[0132] The sixth determining subunit is used to determine the target data and each of the first data as cache data of the business object.

[0133] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned data pushing method.

[0134] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to execute the one or more instructions 602 to perform the above-mentioned data pushing method.

[0135] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.

[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0137] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0138] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data push method, characterized in that: include: When detecting that a user clicks a data push link in a message push page, obtaining pre-generated push data corresponding to the data push link; Determining whether there is a business object identity in the pushed data; If the business object identity identifier exists in the pushed data, determining that the pushed data meets the preset data processing condition; If the business object identity does not exist in the pushed data, determining that the pushed data does not meet the preset data processing condition; If the pushed data meets the preset data processing condition, extracting the storage policy identifier and the business object identity identifier from the pushed data; Based on the storage policy identifier and the business object identifier, determining page data of the business object to which the business object identifier belongs; Cache the page data in a preset cache update module to obtain cache data of the business object; Based on the data demand of the user, determining response data in the cache data, and updating the response data to the data push page displayed to the user; If the pushed data does not meet the preset data processing condition, the pushed data is pushed to the user.

2. The method according to claim 1, characterized in that The process of generating push data includes: Acquire a data set to be pushed, wherein the data set includes at least one business message data; Determine the business object to which the data set to be pushed belongs, and determine the push requirement of the business object; Determine whether there is a packaging mark in the push request; If it exists, generating a business object identity based on the current timestamp and the keyword of the business object, and using the business object identity and the timestamp of each business message data to encapsulate each business message data into push data; If not, the to-be-pushed data set is determined as the pushed data.

3. The method according to claim 2, characterized in that The step of determining the page data of the business object to which the business object identity belongs based on the storage policy identifier and the business object identity identifier includes: Determining a policy type based on the storage policy identifier; When the policy type is an automatic type, determining the pushed data as page data of the business object; When the policy type is a response type, a data selection page is generated based on each of the service message data, and the data selection page is displayed to the user to obtain data selection information input by the user based on the data selection page; Based on the data selection information, target business message data is determined in each of the business message data, and based on the business object identity and the timestamp of each of the target business message data, each of the target business message data is encapsulated into page data of the business object.

4. The method according to claim 3, characterized in that The cache processing of the page data in a preset cache update module to obtain cache data of the business object includes: Determine whether there is data corresponding to the business object in the cache update module; If the data corresponding to the business object does not exist in the cache update module, the page data is saved in the cache update module and the page data is used as cache data of the business object; If data corresponding to the business object exists in the cache update module, the data corresponding to the business object is determined as target data; For each business message data in the page data, determining whether there is data corresponding to the business message data in the target data, if not, saving the business message data and determining the business message data as the first data, if existing, not saving the business message data; The target data and each of the first data are determined as cache data of the business object.

5. A data push device, characterized in that: include: A first acquisition unit, configured to acquire pre-generated push data corresponding to the data push link when detecting that a user clicks on a data push link in a message push page; a judgment unit, configured to judge whether there is a business object identity in the pushed data; if there is a business object identity in the pushed data, determining that the pushed data meets a preset data processing condition; If the business object identity does not exist in the pushed data, determining that the pushed data does not meet the preset data processing condition; An extraction unit, configured to extract a storage policy identifier and a business object identity identifier from the pushed data if the pushed data does not satisfy a preset data processing condition; A first determining unit, configured to determine, based on the storage policy identifier and the business object identifier, page data of the business object to which the business object identifier belongs; A cache processing unit, used to perform cache processing on the page data in a preset cache update module to obtain cache data of the business object; An updating unit, configured to determine response data in the cache data based on the data demand of the user, and update the response data to a data push page displayed to the user; And if the pushed data does not meet the preset data processing conditions, the pushed data is pushed to the user.

6. The device according to claim 5, characterized in that Also includes: A second acquisition unit, configured to acquire a data set to be pushed, wherein the data set includes at least one business message data; A second determining unit, configured to determine the business object to which the data set to be pushed belongs, and determine a push requirement of the business object; A third determining unit, configured to determine whether there is a packaging identifier in the push request; an encapsulation unit, for, if present, generating a business object identity based on a current timestamp and a keyword of the business object, and encapsulating each of the business message data into push data using the business object identity and a timestamp of each of the business message data; The fourth determining unit is configured to determine the to-be-pushed data set as the pushed data if the to-be-pushed data set does not exist.

7. The device according to claim 6, characterized in that The first determining unit includes: A second determining subunit, configured to determine a policy type based on the storage policy identifier; A third determining subunit, configured to determine the pushed data as page data of the business object when the policy type is an automatic type; a generating subunit, configured to generate a data selection page based on each of the service message data when the policy type is a response type, and display the data selection page to the user to obtain data selection information input by the user based on the data selection page; The encapsulation subunit is used to determine the target business message data in each of the business message data based on the data selection information, and encapsulate each of the target business message data into the page data of the business object based on the business object identity and the timestamp of each of the target business message data.

8. The device according to claim 7, characterized in that The cache processing unit comprises: A judging subunit, used for judging whether there is data corresponding to the business object in the cache updating module; a saving subunit, configured to save the page data to the cache update module and use the page data as cache data of the business object if the data corresponding to the business object does not exist in the cache update module; a fourth determining subunit, configured to determine the data corresponding to the business object as target data if data corresponding to the business object exists in the cache update module; a fifth determining subunit, for determining, for each business message data in the page data, whether data corresponding to the business message data exists in the target data; if not, saving the business message data and determining the business message data as the first data; and if so, not saving the business message data; The sixth determining subunit is used to determine the target data and each of the first data as cache data of the business object.