Information push method, device, electronic device and storage medium
By extracting page information from the terminal and combining push configuration information for differentiated push, the problems of high pressure on front-end development and inflexible push in the existing technology are solved, and efficient and flexible information push is achieved, with strong adaptability and suitable for timeliness requirements. High scene.
Patent Information
- Application Number
- CN202111386862.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-11-22
AI Technical Summary
The existing information push methods lead to high pressure on front-end development, high transmission pressure and inflexible enough. The code needs to be updated frequently to adapt to changes in pages and pop-ups, which is inefficient and poorly applicable.
By extracting the target page information from the web page request sent by the terminal, combining the corresponding relationship between the page information in the push configuration information and the push information, the target push information is determined, and differentiated push is performed on the backend to reduce the parameter transmission and code development of the front-end need.
It realizes more flexible information push, reduces the resource consumption and development burden on the front-end, improves adaptability and efficiency, and can quickly adapt to changes in pages or pop-ups, and is suitable for scenarios with high timeliness requirements.
Smart Images

Figure CN114186124B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to an information push method, device, electronic device and storage medium. Background Art
[0002] With the development of Internet applications, the interaction between applications and users has become more and more frequent. For example, applications often use pop-up notifications to interact with users. In related technologies, when a user triggers a pop-up notification, the terminal will send a web page request to the server, such as an HTTP (Hyper Text Transfer Protocol) request. And it is necessary to send some pop-up related parameters to the server, such as pop-up identifiers, etc. In this way, the server can obtain pop-up information based on these parameters to push it to the terminal. The existing push method causes high front-end development pressure, transmission pressure and processing pressure; and when the page changes or the pop-up window changes, the front end needs to develop new development code to adapt to the page change or pop-up window change, such as developing corresponding pop-up push code for the new page, resulting in low efficiency and poor applicability; in addition, the existing push method is not flexible enough. Summary of the invention
[0003] The present disclosure provides an information push method, device, electronic device and storage medium to at least solve the problem of how to improve push flexibility and reduce front-end pressure in the related art. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an information push method, including:
[0005] Receiving a web page request sent by a target terminal, and extracting target page information from the web page request;
[0006] Acquire push configuration information, wherein the push configuration information includes a correspondence between page information and push information;
[0007] Based on the corresponding relationship, determining the target push information corresponding to the target page information;
[0008] The target push information is sent to the target terminal.
[0009] In a possible implementation, the correspondence also includes user account type information, and the method further includes:
[0010] Obtain target type information of a target user account corresponding to the target terminal;
[0011] The determining, based on the corresponding relationship, target push information corresponding to the target page information includes:
[0012] The target push information is determined based on the corresponding relationship, the target page information and the target type information.
[0013] In a possible implementation, the page information in the corresponding relationship is page address information, and the target page information is the target page address information for initiating the web page request; and extracting the target page information from the web page request includes:
[0014] The target page address information is extracted from the header field of the web page request.
[0015] In a possible implementation, the method further includes:
[0016] Obtain information about multiple pages to be configured, information about multiple account types to be configured, and information about multiple push notifications to be configured;
[0017] Combining the plurality of to-be-configured page information and the plurality of to-be-configured account type information to obtain a plurality of combinations;
[0018] At least one push information to be configured is configured for each combination to obtain the push configuration information.
[0019] In a possible implementation, the method further includes:
[0020] In response to the push configuration information update request, obtaining the configuration information to be updated;
[0021] The push configuration information is updated based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of a corresponding relationship to be updated, page information to be updated, user account type information to be updated, and push information to be updated.
[0022] In a possible implementation manner, sending the target push information to the target terminal includes:
[0023] Determine a push display style corresponding to the target push information;
[0024] The push display style and the target push information are sent to the target terminal.
[0025] According to a second aspect of an embodiment of the present disclosure, there is provided an information push device, including:
[0026] A target page information extraction module is configured to execute a web page request received from a target terminal and extract target page information from the web page request;
[0027] A push configuration information acquisition module is configured to execute acquisition of push configuration information, wherein the push configuration information includes a correspondence between page information and push information;
[0028] A target push information determination module is configured to determine the target push information corresponding to the target page information based on the corresponding relationship;
[0029] The push module is configured to execute sending the target push information to the target terminal.
[0030] In a possible implementation, the corresponding relationship also includes user account type information, and the device further includes:
[0031] A target type information acquisition module is configured to acquire target type information of a target user account corresponding to the target terminal;
[0032] The target push information determination module is further configured to determine the target push information based on the corresponding relationship, the target page information and the target type information.
[0033] In a possible implementation, the page information in the corresponding relationship is page address information, and the target page information is the target page address information for initiating the web page request; the target page information extraction module includes:
[0034] The address extraction unit is configured to execute a module to extract the target page address information from the header field of the web page request.
[0035] In a possible implementation, the method further includes:
[0036] An acquisition module is configured to execute acquisition of a plurality of to-be-configured page information, a plurality of to-be-configured account type information, and a plurality of to-be-configured push information;
[0037] A combination processing module is configured to perform combination processing on the plurality of to-be-configured page information and the plurality of to-be-configured account type information to obtain a plurality of combinations;
[0038] The push configuration information building module is configured to configure at least one push information to be configured for each combination to obtain the push configuration information.
[0039] In a possible implementation, the method further includes:
[0040] The to-be-updated configuration information acquisition module is configured to execute in response to the push configuration information update request and acquire the to-be-updated configuration information;
[0041] The update module is configured to execute updating of the push configuration information based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of the corresponding relationship to be updated, the page information to be updated, the user account type information to be updated, and the push information to be updated.
[0042] In a possible implementation, the push module includes:
[0043] A display style determining unit, configured to determine a push display style corresponding to the target push information;
[0044] The push unit is configured to execute sending the push display style and the target push information to the target terminal.
[0045] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a method as described in any one of the above-mentioned first aspects.
[0046] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any method described in the first aspect of the embodiment of the present disclosure.
[0047] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by a processor, enable a computer to execute any one of the methods described in the first aspect of an embodiment of the present disclosure.
[0048] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0049] By directly extracting the target page information from the web page request sent by the terminal, the backend implements differentiated push of different page information according to the target page information and push configuration information. The push is more flexible and does not require the front end to transmit parameters of the push information identifier (such as pop-up window identifier), thereby realizing parameter-free front-end perception and reducing transmission resource consumption. Moreover, by implementing differentiated push of information by the back end, the front end does not need to develop code for the push function for each page, thus saving storage resources and processing resources for front-end development. Furthermore, in the event that the page or pop-up window information changes or increases, the front end does not need to develop code, and can effectively adapt to changes in scenarios. It has strong generalization capabilities and high efficiency, and can be quickly applied to scenarios with high timeliness requirements. In addition, by implementing push in a configured manner, a unified and flexible push method can be achieved, which can effectively be compatible with various business needs.
[0050] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0052] Figure 1 It is a schematic diagram of an application environment according to an exemplary embodiment.
[0053] Figure 2 The figure is a flow chart of an information push method according to an exemplary embodiment.
[0054] Figure 3 The figure is a flow chart of another information pushing method according to an exemplary embodiment.
[0055] Figure 4 The present invention is a flow chart of a method for constructing push configuration information according to an exemplary embodiment.
[0056] Figure 5 The present invention is a flow chart of a method for updating push configuration information according to an exemplary embodiment.
[0057] Figure 6 The figure is a block diagram of an information pushing device according to an exemplary embodiment.
[0058] Figure 7 The invention is a block diagram of an electronic device for information push according to an exemplary embodiment. DETAILED DESCRIPTION
[0059] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0061] See also Figure 1 , Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment. Figure 1 As shown, the application environment may include a server 01 and a terminal 02 .
[0062] In an optional embodiment, server 01 can be used for information push processing. Specifically, server 01 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0063] In an optional embodiment, the terminal 02 can be used to send web page requests and display target push information (such as pop-up windows). Specifically, the terminal 02 can include but is not limited to smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices and other types of electronic devices. Optionally, the operating system running on the electronic device can include but is not limited to Android, IOS, Linux, Windows, etc.
[0064] In addition, it should be noted that Figure 1 What is shown is only one application environment of the information push method provided by the present disclosure.
[0065] In the embodiments of this specification, the server 01 and the terminal 02 may be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitation thereto.
[0066] It should be noted that the following figure shows a possible order of steps, which is not actually limited to this order. Some steps can be executed in parallel without relying on each other. The user information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to data for display, training data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0067] Figure 2 FIG. 1 is a flow chart of an information push method according to an exemplary embodiment. Figure 2 As shown, the following steps may be included.
[0068] In step S201, a web page request sent by a target terminal is received, and target page information is extracted from the web page request.
[0069] In the embodiments of this specification, the target terminal may be a terminal corresponding to any user account in the target application; the target page information may refer to information representing the source of the target page, the business type of the target page, or the activity type of the target page. This disclosure does not limit this, as long as differentiated push based on the page can be achieved.
[0070] In actual applications, the target terminal can send a web page request to the server. For example, when the target terminal triggers a web page request in a page of the target application, the web page request can be sent to the server. As an example, when the target terminal triggers a web page request, such as an HTTP request, the target page information of the request source page can be filled into the HTTP request. For example, when the target page information is the target page address information, the target page address information can be filled into the header field "Referer" of the request. Among them, the request source page can refer to the page that initiates the request.
[0071] Accordingly, when receiving a web page request sent by the target terminal, the server can extract the target page information from the web page request for subsequent push processing based on the target page information. The target page information here can refer to the type of page, and the type of the page can be divided based on different businesses. Taking short video applications as an example, the types of pages can include anchor pages, object selection pages (for anchors to select objects to be displayed in the live broadcast room), activity pages, etc., which are not limited in this disclosure.
[0072] In one example, in order to achieve more fine-grained information push, the target page information can be refined. For example, the target page information can be the target page address information for initiating a web page request. Accordingly, the page information in the above correspondence can be the page address information. Based on this, step S201 can include: extracting the target page address information from the header field of the web page request. That is, the target page address information can be extracted from the header field "Referer" of the HTTP request. By using the header field in the web page request, the existing fields can be fully utilized to save transmission resources; and this method of determining the request source page by the existing header field does not require changes to the front end in the case of page changes, user account type changes, or push information changes, that is, the front end does not need additional development, and only maintaining the sending of the web page request can be applicable to information push in the case of changes; and the target page information is refined into page address information to provide more fine-grained information push.
[0073] In step S203, push configuration information is obtained, where the push configuration information includes a correspondence between page information and push information.
[0074] In the embodiment of this specification, the push configuration information may be pre-configured, and the specific configuration method is described below and will not be repeated here. The push configuration information may include a correspondence between page information and push information. Among them, the push information may be a pop-up window information, which is not limited in this disclosure.
[0075] In step S205, based on the corresponding relationship, the target push information corresponding to the target page information is determined.
[0076] In actual applications, the target push information corresponding to the target page information can be determined based on the corresponding relationship. For example, the target push information corresponding to the target page information can be screened out from the corresponding relationship.
[0077] In a possible implementation, considering that accounts of different user account types can access the same page, if the same information is pushed, it may lead to a lack of participation and poor experience for different user accounts, resulting in inaccurate information push. Based on this, the above correspondence may also include user account type information, such as Figure 3 As shown, the method may also include step S301: obtaining target type information of the target user account corresponding to the target terminal; accordingly, step S205 may include step S303: determining the target push information based on the corresponding relationship, the target page information and the target type information. By setting the user account type information (user role) in the corresponding relationship, it is possible to further perform more fine-grained differentiated push based on the user account type on the basis of the page address information, realize user-level information push, and improve the accuracy of information push; and the user account type information is obtained by the backend, and the frontend does not need to transmit the parameter, further reducing the transmission resource consumption, and can achieve zero development cost of the frontend and efficiently adapt to the changes of pages and user roles.
[0078] As an example, the web page request may be a web page request in the target application, and accordingly, the user account type information may include at least one of the following: account identity type information, account activity type information, and account interest type information in the target application. Among them, the account identity type information may refer to the identity type of the account in the target application, for example, it may include anchor type, audience type, third-party type (merchant type), etc.; the account activity type information may refer to the account's interactive level information in the target application, for example, it may include active accounts, inactive accounts, etc.; the account interest type information may refer to the account's interest type in the target application, for example, it may refer to the interest in the object in the target application, for example, it may include music type, shopping type, art type, mother and baby type, etc. Here, the object in the target application may refer to the object displayed in the target application, such as a short video, interactive items, etc. By setting richer user account type information, the accuracy of information push can be further improved.
[0079] Regarding the specific form of the corresponding relationship, in one example, the corresponding relationship may be as follows:
[0080] Corresponding relationship identifier 1: page address information 1, account type information 1; pop-up window information 1;
[0081] Corresponding relationship identifier 2: page address information 2, account type information 2; pop-up window information 1, pop-up window information 2;
[0082] …
[0083] Corresponding relationship identifier n: page address information n, account type information m; pop-up window information h;
[0084] The above is only an example of the corresponding relationship, which can be a mapping relationship between page address information, account type information, and pop-up information. Among them, n can be the number of page address information, m can be the number of account type information, and h can be the number of pop-up information.
[0085] In another example, the correspondence may include a first mapping relationship between the page address information and the pop-up window information, and a second mapping relationship between the account type information and the pop-up window information. In this way, the first pop-up window information corresponding to the target page address information can be determined based on the first mapping relationship, and the second pop-up window information corresponding to the target type information can be determined based on the second mapping relationship, so that the repeated pop-up window information in the first pop-up window information and the second pop-up window information can be used as the target pop-up window information (target push information).
[0086] Optionally, the page address information, account type information and pop-up window information may be identification information, and when pushing, the corresponding target push information, that is, the content of the target pop-up window, may be obtained based on the identification information (target pop-up window information), so as to push the content of the target pop-up window.
[0087] In step S207, the target push information is sent to the target terminal.
[0088] In actual applications, the target push information can be sent to the target terminal to push information corresponding to the target account of the target terminal. Accordingly, the target terminal can display the target push information.
[0089] Optionally, step S207 may include the following steps:
[0090] Determine the push display style corresponding to the target push information;
[0091] Send the push display style and target push information to the target terminal.
[0092] In the embodiments of this specification, different push information display styles can be set, and when information is pushed, corresponding push display styles can be carried. By sending recommended display styles to the target terminal, the display diversity of push information can be improved, and the processing resources of the front end can be further saved.
[0093] By directly extracting the target page information from the web page request sent by the terminal, the backend implements differentiated push of different page information according to the target page information and push configuration information. The push is more flexible and does not require the front end to transmit parameters of the push information identifier (such as pop-up window identifier), thereby realizing parameter-free front-end perception and reducing transmission resource consumption. Moreover, by implementing differentiated push of information by the back end, the front end does not need to develop code for the push function for each page, thus saving storage resources and processing resources for front-end development. Furthermore, in the event that the page or pop-up window information changes or increases, the front end does not need to develop code, and can effectively adapt to changes in scenarios. It has strong generalization capabilities and high efficiency, and can be quickly applied to scenarios with high timeliness requirements. In addition, by implementing push in a configured manner, a unified and flexible push method can be achieved, which can effectively be compatible with various business needs.
[0094] Figure 4 FIG. 1 is a flow chart of a method for constructing push configuration information according to an exemplary embodiment. In a possible implementation, Figure 4 As shown, it may include:
[0095] In step S401, a plurality of pages to be configured, a plurality of account types to be configured, and a plurality of push information to be configured are obtained.
[0096] As an example, multiple pages that need to be pushed in pop-up windows can be selected from all pages included in a target application, and the identification information of each of these multiple pages can be used as multiple page information to be configured. According to the above introduction, a target application can include at least two account types, so the at least two account types can be determined as multiple account type information to be configured. Taking the push information as pop-up information as an example, all pop-up information in the target application can be used as multiple push information to be configured.
[0097] In step S403, a plurality of to-be-configured page information and a plurality of to-be-configured account type information are combined to obtain a plurality of combinations.
[0098] Considering that the purpose is to achieve customized push for different pages and different user roles, different pages and different user roles are selected to be combined, for example, each page can be combined with each user role. Specifically, each page information to be configured and each account type information to be configured can be combined, for example, there are 4 pages to be configured and 2 account type information to be configured, and 4*2=8 combinations can be obtained.
[0099] In step S405, at least one push information to be configured is configured for each combination to obtain push configuration information.
[0100] In the embodiment of this specification, at least one push information to be configured can be configured for each combination to obtain push configuration information. Optionally, when the correspondence is a correspondence between page information and push information, at least one push information to be configured can be directly configured for each page information to obtain push configuration information.
[0101] By constructing push configuration information in advance, the efficiency of information push can be improved, and this configuration item method can effectively adapt to changes in push information.
[0102] Figure 5 FIG. 1 is a flow chart of a method for updating push configuration information according to an exemplary embodiment. In a possible implementation, the push configuration information can be dynamically updated, such as Figure 5 As shown, it may include:
[0103] In step S501, in response to a push configuration information update request, the configuration information to be updated is obtained;
[0104] In step S503, the push configuration information is updated based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of the corresponding relationship to be updated, the page information to be updated, the user account type information to be updated, and the push information to be updated.
[0105] In the embodiments of this specification, the construction of the above push configuration information may be triggered by the configuration terminal, and accordingly, the update of the push configuration information here may also be triggered by the configuration terminal. Accordingly, in response to the push configuration information update request, the configuration information to be updated is obtained, and the configuration information to be updated may include at least one of the corresponding relationship to be updated, the page information to be updated, the user account type information to be updated, and the push information to be updated.
[0106] Furthermore, the push configuration information can be updated based on the configuration information to be updated. For example, when the correspondence to be updated is an existing correspondence in the push configuration information, the identification information of the correspondence to be updated can be compared with the identification information of the existing correspondence. If there is a match, the matching existing correspondence is determined as the target correspondence. In this way, the target correspondence can be updated based on at least one of the page information to be updated, the user account type information to be updated, and the push information to be updated. For example, if the configuration information to be updated includes the push information to be updated, the push information in the target correspondence can be modified to the push information to be updated.
[0107] The above is a modification of the existing corresponding relationship. You can also add corresponding relationships, such as adding a new page, adding a new user account type, or adding a pop-up window information. At this time, the corresponding relationship to be updated can be a new corresponding relationship, which can be added in the push configuration information. Specifically, the new corresponding relationship can be set by the configuration terminal or configured by the server. The method of configuring by the server can refer to the above Figure 4 The relevant content will not be repeated here.
[0108] By dynamically updating the push configuration information, changes in pages, user account types, and pop-up information can be timely and effectively adapted, making the information push method more scalable.
[0109] Figure 6 is a block diagram of an information push device according to an exemplary embodiment. Figure 6 , the device may include:
[0110] The target page information extraction module 601 is configured to execute a web page request received from a target terminal and extract the target page information from the web page request;
[0111] The push configuration information acquisition module 603 is configured to acquire push configuration information, wherein the push configuration information includes a correspondence between page information and push information;
[0112] The target push information determination module 605 is configured to determine the target push information corresponding to the target page information based on the corresponding relationship;
[0113] The push module 607 is configured to execute sending the target push information to the target terminal.
[0114] By directly extracting the target page information from the web page request sent by the terminal, the backend implements differentiated push of different page information according to the target page information and push configuration information. The push is more flexible and does not require the front end to transmit parameters of the push information identifier (such as pop-up window identifier), thereby realizing parameter-free front-end perception and reducing transmission resource consumption. Moreover, by implementing differentiated push of information by the back end, the front end does not need to develop code for the push function for each page, thus saving storage resources and processing resources for front-end development. Furthermore, in the event that the page or pop-up window information changes or increases, the front end does not need to develop code, and can effectively adapt to changes in scenarios. It has strong generalization capabilities and high efficiency, and can be quickly applied to scenarios with high timeliness requirements. In addition, by implementing push in a configured manner, a unified and flexible push method can be achieved, which can effectively be compatible with various business needs.
[0115] In a possible implementation, the corresponding relationship also includes user account type information, and the above-mentioned device may further include:
[0116] A target type information acquisition module is configured to acquire target type information of a target user account corresponding to the target terminal;
[0117] The target push information determination module is further configured to determine the target push information based on the corresponding relationship, the target page information and the target type information.
[0118] In a possible implementation, the page information in the corresponding relationship is page address information, and the target page information is the target page address information for initiating the web page request; the target page information extraction module 601 may include:
[0119] The address extraction unit is configured to execute a module to extract the target page address information from the header field of the web page request.
[0120] In a possible implementation, the device may further include:
[0121] An acquisition module is configured to execute acquisition of a plurality of to-be-configured page information, a plurality of to-be-configured account type information, and a plurality of to-be-configured push information;
[0122] A combination processing module is configured to perform combination processing on the plurality of to-be-configured page information and the plurality of to-be-configured account type information to obtain a plurality of combinations;
[0123] The push configuration information building module is configured to configure at least one push information to be configured for each combination to obtain the push configuration information.
[0124] In a possible implementation, the device may further include:
[0125] The to-be-updated configuration information acquisition module is configured to execute in response to the push configuration information update request and acquire the to-be-updated configuration information;
[0126] The update module is configured to execute updating of the push configuration information based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of the corresponding relationship to be updated, the page information to be updated, the user account type information to be updated, and the push information to be updated.
[0127] In a possible implementation, the push module 607 may include:
[0128] A display style determining unit, configured to determine a push display style corresponding to the target push information;
[0129] The push unit is configured to execute sending the push display style and target push information to the target terminal.
[0130] In a possible implementation, the web page request is a web page request in a target application, and the user account type information includes at least one of the following: account identity type information, account activity type information, and account interest type information in the target application.
[0131] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0132] Figure 7 is a block diagram of an electronic device for information push according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for information push is implemented.
[0133] Those skilled in the art will understand that Figure 7The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the information push method in the embodiment of the present disclosure.
[0135] In an exemplary embodiment, a computer-readable storage medium is also provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the information push method in the embodiment of the present disclosure. The computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0136] In an exemplary embodiment, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer is enabled to execute the information push method in the embodiment of the present disclosure.
[0137] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0138] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An information push method, characterized in that: include: Receiving a web page request sent by a target terminal, and extracting target page information from the web page request; Acquire push configuration information and target type information of the target terminal corresponding to the target user account, wherein the push configuration information includes a correspondence between page information and pop-up window information; Based on the corresponding relationship, determine the target pop-up window information corresponding to the target page information; Sending the target pop-up window information to the target terminal; Wherein, the corresponding relationship also includes user account type information, and the determining the target pop-up window information corresponding to the target page information based on the corresponding relationship includes: determining the target pop-up window information based on the corresponding relationship, the target page information and the target type information; The page information is page address information, the target page information is target page address information for initiating the web page request; the corresponding relationship includes a first mapping relationship between the page address information and the pop-up window information, and a second mapping relationship between the account type information and the pop-up window information; determining the target pop-up window information based on the corresponding relationship, the target page information and the target type information includes: Based on the first mapping relationship, determine the first pop-up window information corresponding to the target page address information; Based on the second mapping relationship, determine the second pop-up window information corresponding to the target type information; The repeated pop-up window information in the first pop-up window information and the second pop-up window information is used as the target pop-up window information.
2. The method according to claim 1, characterized in that The step of extracting target page information from the web page request includes: The target page address information is extracted from the header field of the web page request.
3. The method according to claim 1, characterized in that Also includes: Obtain information about multiple pages to be configured, information about multiple account types to be configured, and information about multiple pop-up windows to be configured; Combining the plurality of to-be-configured page information and the plurality of to-be-configured account type information to obtain a plurality of combinations; At least one pop-up window information to be configured is configured for each combination to obtain the push configuration information.
4. The method according to claim 3, characterized in that: Also includes: In response to the push configuration information update request, obtaining the configuration information to be updated; The push configuration information is updated based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of a corresponding relationship to be updated, page information to be updated, user account type information to be updated, and pop-up window information to be updated.
5. The method according to claim 1, characterized in that The sending the target pop-up window information to the target terminal includes: Determine the push display style corresponding to the target pop-up information; The push display style and the target pop-up window information are sent to the target terminal.
6. An information push device, characterized in that: include: A target page information extraction module is configured to execute a web page request received from a target terminal and extract target page information from the web page request; A push configuration information acquisition module is configured to execute acquisition of push configuration information, wherein the push configuration information includes a correspondence between page information and pop-up window information; A target pop-up window information determination module is configured to determine the target pop-up window information corresponding to the target page information based on the corresponding relationship; A push module, configured to execute sending of the target pop-up window information to the target terminal; Wherein, the corresponding relationship also includes user account type information, and the device also includes: A target type information acquisition module is configured to acquire target type information of a target user account corresponding to the target terminal; The target pop-up window information determination module is further configured to determine the target pop-up window information based on the corresponding relationship, the target page information and the target type information; Among them, the page information is the page address information, and the target page information is the target page address information for initiating the web page request; the corresponding relationship includes a first mapping relationship between the page address information and the pop-up window information, and a second mapping relationship between the account type information and the pop-up window information; the target pop-up window information determination module is also configured to execute based on the first mapping relationship, determine the first pop-up window information corresponding to the target page address information; based on the second mapping relationship, determine the second pop-up window information corresponding to the target type information; and use the repeated pop-up window information in the first pop-up window information and the second pop-up window information as the target pop-up window information.
7. The device according to claim 6, characterized in that The page information in the corresponding relationship is page address information, and the target page information is the target page address information for initiating the web page request; The target page information extraction module includes: The address extraction unit is configured to execute a module to extract the target page address information from the header field of the web page request.
8. The device according to claim 6, characterized in that Also includes: An acquisition module is configured to execute acquisition of a plurality of to-be-configured page information, a plurality of to-be-configured account type information, and a plurality of to-be-configured pop-up window information; A combination processing module is configured to perform combination processing on the plurality of to-be-configured page information and the plurality of to-be-configured account type information to obtain a plurality of combinations; The push configuration information building module is configured to execute configuring at least one pop-up window information to be configured for each combination to obtain the push configuration information.
9. The device according to claim 8, characterized in that Also includes: The to-be-updated configuration information acquisition module is configured to execute in response to the push configuration information update request and acquire the to-be-updated configuration information; The update module is configured to execute updating of the push configuration information based on the configuration information to be updated, wherein the configuration information to be updated includes at least one of the corresponding relationship to be updated, the page information to be updated, the user account type information to be updated, and the pop-up window information to be updated.
10. The device according to claim 6, characterized in that The push module includes: A display style determining unit, configured to determine a push display style corresponding to the target pop-up window information; The push unit is configured to execute sending the push display style and the target pop-up window information to the target terminal.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the information push method as described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the information push method as described in any one of claims 1 to 5.
13. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the information pushing method according to any one of claims 1 to 5 is implemented.
