CN113556391B - Page communication method, device, electronic equipment and readable storage medium - Google Patents

Page communication method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113556391B
CN113556391B CN202110806806.XA CN202110806806A CN113556391B CN 113556391 B CN113556391 B CN 113556391B CN 202110806806 A CN202110806806 A CN 202110806806A CN 113556391 B CN113556391 B CN 113556391B
Authority
CN
China
Prior art keywords
page
middleware
identification information
information
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110806806.XA
Other languages
Chinese (zh)
Other versions
CN113556391A (en
Inventor
尹家露
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110806806.XA priority Critical patent/CN113556391B/en
Publication of CN113556391A publication Critical patent/CN113556391A/en
Application granted granted Critical
Publication of CN113556391B publication Critical patent/CN113556391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/288Distributed intermediate devices, i.e. intermediate devices for interaction with other intermediate devices on the same level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Abstract

The disclosure relates to a page communication method, a device, an electronic device and a readable storage medium, wherein the method comprises the following steps: in response to receiving a first trigger operation of jumping from a first page to a second page, adding first identification information of middleware corresponding to the first page to a page link of the second page, and displaying the second page based on the page link; responding to receiving a second triggering operation based on the second page, acquiring second identification information of middleware corresponding to the second page, and acquiring the first identification information from the page link; and if the second identification information is consistent with the first identification information, sending operation information triggered based on the second triggering operation to the middleware, wherein the middleware is used for sending the operation information to the first page so as to communicate between the first page and the second page. By adopting the method, the stability of the communication service between the pages can be improved.

Description

Page communication method, device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of application programs, and in particular, to a page communication method, apparatus, electronic device, readable storage medium, and program product.
Background
The publish-subscribe mode is a communication mode for realizing multiparty communication through a stable middleware, for example, in a communication scene between two pages of an application program, if a function of a page A in the application program depends on a page B, when the page A and the page B are communicated, the page A is usually skipped to the page B by triggering a functional area of the page A, when the functional area of the page A is triggered, information is subscribed from the middleware at the same time, and after the page B executes operation of the functional area, operation information is published to the middleware, therefore, the page A receives the information published by the page B through subscribing the information of the middleware, and the communication between the two pages is realized.
However, when the communication is performed between two pages in the prior art, if the page a subscribes to the signal of the middleware a and the page B publishes the signal to the middleware B, the communication will fail, and it is difficult to ensure the stability of the service.
Disclosure of Invention
The disclosure provides a page communication method, device and system, which at least solve the problem that in the related art, if middleware corresponding to two pages is different, communication fails, and service stability is difficult to guarantee. The technical scheme of the present disclosure is as follows:
According to a first aspect of an embodiment of the present disclosure, there is provided a page communication method, including:
in response to receiving a first trigger operation of jumping from a first page to a second page, adding first identification information of middleware corresponding to the first page to a page link of the second page;
displaying the second page based on the page link;
responding to receiving a second triggering operation based on the second page, acquiring second identification information of middleware corresponding to the second page, and acquiring the first identification information from the page link;
and if the second identification information is consistent with the first identification information, sending operation information triggered based on the second triggering operation to the middleware, wherein the middleware is used for sending the operation information to the first page so as to communicate between the first page and the second page.
In an exemplary embodiment, the method further comprises:
if the second identification information is inconsistent with the first identification information, abnormal alarm information is sent to a server; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to obtain account identification information of a user account corresponding to the first page according to the anomaly alarm information, and configuring a corresponding first preset middleware for the account identification information; the method further comprises the steps of:
and responding to the trigger operation of the user account trigger to jump from the first page to the second page, and executing communication between the first page and the second page based on the first preset middleware.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; the method further comprises the steps of:
and responding to the trigger operation of skipping from the first page to the second page again, and executing communication between the first page and the second page based on the second preset middleware.
In an exemplary embodiment, the method further comprises:
acquiring pre-associated early warning client identification information;
and outputting the abnormal alarm information to an early-warning client corresponding to the early-warning client identification information.
In an exemplary embodiment, in response to receiving a first trigger operation for jumping from a first page to a second page, adding first identification information of middleware corresponding to the first page to a page link of the second page, further includes:
and in response to receiving a first trigger operation of jumping from a first page to a second page, sending an information subscription instruction to middleware corresponding to the first page, wherein the information subscription instruction is used for indicating the middleware corresponding to the first page to monitor operation information issued by the second page, and sending the operation information to the first page when the operation information is monitored.
In an exemplary embodiment, the adding the first identification information of the middleware corresponding to the first page to the page link of the second page includes:
acquiring a page link of the second page;
and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
According to a second aspect of the embodiments of the present disclosure, there is provided a page communication apparatus, including:
an adding unit configured to perform a first identification information of middleware corresponding to a first page to be added to a page link of a second page in response to receiving a first trigger operation of jumping from the first page to the second page;
A display unit configured to perform display of the second page based on the page link;
the acquisition unit is configured to perform the steps of responding to the received second triggering operation based on the second page, acquiring second identification information of middleware corresponding to the second page, and acquiring the first identification information from the page link;
and the processing unit is configured to execute sending operation information triggered based on the second triggering operation to the middleware if the second identification information is consistent with the first identification information, wherein the middleware is used for sending the operation information to the first page so as to perform communication between the first page and the second page.
In an exemplary embodiment, the processing unit is further configured to send an anomaly alert message to a server if the second identification information and the first identification information are inconsistent; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to obtain account identification information of a user account corresponding to the first page according to the anomaly alarm information, and configuring a corresponding first preset middleware for the account identification information; the apparatus further includes a communication unit configured to perform a trigger operation to jump from the first page to the second page in response to receiving the user account trigger again, the communication between the first page and the second page being performed based on the first preset middleware.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; and a communication unit configured to perform communication between the first page and the second page based on the second preset middleware in response to receiving a trigger operation to jump from the first page to the second page again.
In an exemplary embodiment, the processing unit is further configured to perform obtaining pre-associated early warning client identification information; and outputting the abnormal alarm information to an early-warning client corresponding to the early-warning client identification information.
In an exemplary embodiment, the apparatus further includes a sending unit configured to perform a first trigger operation in response to receiving a jump from a first page to a second page, send an information subscription instruction to a middleware corresponding to the first page, where the information subscription instruction is used to instruct the middleware corresponding to the first page to monitor operation information published by the second page, and send the operation information to the first page when the operation information is monitored.
In an exemplary embodiment, the adding unit is further configured to perform obtaining a page link of the second page; and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
According to a third aspect of embodiments of the present disclosure, there is provided a page communication electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page communication method as described in any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium comprising: the instructions in the computer-readable storage medium, when executed by a processor of the page communication electronic device, enable the page communication electronic device to perform the page communication method described in any one of the embodiments of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program stored in a computer readable storage medium, from which computer readable storage medium at least one processor of a device reads and executes the computer program, causing the device to perform the page communication method as described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the first identification information of the middleware corresponding to the first page is added to the page link of the second page after the first trigger operation of jumping from the first page to the second page is received, so that after the second page is displayed based on the page link, the first identification information can be obtained from the page link in response to the second trigger operation based on the second page, further after the second identification information of the middleware corresponding to the second page is obtained, whether the middleware corresponding to the first page is consistent with the middleware corresponding to the second page can be judged by comparing the second identification information with the first identification information, and when the two identification information are consistent, the operation information triggered based on the second trigger operation is sent to the middleware, so that the middleware sends the operation information to the first page, communication between the first page and the second page is performed, the problem that communication failure occurs between the first page and the second page is avoided, and the stability of communication service between the pages is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flow chart illustrating a method of page communication according to an exemplary embodiment.
Fig. 2 (a) is a schematic diagram of a page before information interaction between a first page and a second page, according to an exemplary embodiment.
Fig. 2 (b) is a schematic diagram of a second page shown according to an example embodiment.
Fig. 2 (c) is a schematic diagram of a page after information interaction between a first page and a second page, according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating another content recommendation method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating yet another content recommendation method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a structure of a page communication apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus device according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure.
Fig. 1 is a flowchart showing a page communication method according to an exemplary embodiment, which is described by taking the application of the method to a client as an example. In this embodiment, the method includes the steps of:
in step S102, in response to receiving a first trigger operation to jump from a first page to a second page, first identification information of middleware corresponding to the first page is added to a page link of the second page.
Wherein the first page may represent a page currently displayed by the client, the determination of a certain function or information in the first page being dependent on the second page.
The first identification information is unique identification information of the middleware corresponding to the first page, and the first identification information can be an ID number, a name of the middleware or other information with an identification function.
The page link is used for changing the client from displaying the first page to displaying the second page, and the second page can cover the first page.
It should be noted that the first page and the second page may represent two pages having a dependency relationship in the same Application (APP), or may represent two pages having a dependency relationship displayed in a browser. The middleware for collecting and distributing the operation information is provided by a client container, and in general, both ends of the middleware are unconditionally trusted middleware, a plurality of middleware can be arranged in the same application program, each middleware can collect and distribute the operation information for a plurality of pages, and each page is provided with a corresponding middleware.
In a specific implementation, the determination of a certain function or information in the first page depends on the second page, and the trigger operation received by the client to jump from the first page to the second page is the trigger operation for the function entry set in the first page, for example, the function entry in the first page is an address selection/switching entry, then the second page is a page displaying a plurality of addresses to be selected, and the determination of the address in the first page depends on the selection operation for the address in the second page. When the client receives a trigger operation of jumping from the first page to the second page, the client also needs to acquire first identification information of the middleware corresponding to the first page and add the first identification information to a page link for jumping to the second page, so that the client can acquire the middleware corresponding to the first page when displaying the second page based on the page link, and thus preparation is made for judging whether the middleware corresponding to the first page and the second page are consistent.
In step S104, a second page is presented based on the page links.
The second page can be displayed in a mode of covering the whole screen of the client, and can also be displayed in a popup window mode.
In a specific implementation, page information of the second page can be obtained based on a page link of the second page, and the second page is displayed at the client in a form of covering the whole screen of the client, or in a form of popup window, that is, in a form of covering a part of the screen of the client.
In step S106, in response to receiving the second trigger operation based on the second page, second identification information of the middleware corresponding to the second page is obtained, and the first identification information is obtained from the page link.
The second identification information is unique identification information of the middleware corresponding to the second page, and the second identification information can be an ID number, a name of the middleware or other information with an identification function.
In a specific implementation, since the determination of a certain function or information in the first page depends on the second page, in this step, the triggering operation for the second page may be represented as an operation for completing the function corresponding to the function entry in the first page, so the operation information triggered based on the second page is the information associated with the function entry in the first page. For example, referring to fig. 2 (a) and 2 (b), which are schematic diagrams of a first page and a second page, respectively, it can be seen from fig. 2 (a) that the function entry of the first page is "who can private letter me", and therefore, after the client receives a trigger operation for the function entry "who can private letter me", the second page associated with the function of "who can private letter me" shown in fig. 2 (b) is displayed, and the second page includes three selectable private letter my people, i.e., a person of interest to the owner, and friends of each other.
It can be appreciated that, since each middleware in the application program can collect and distribute operation information for a plurality of pages, the middleware corresponding to the first page and the middleware corresponding to the second page may be the same middleware or different middleware. Therefore, after the client receives the operation information triggered based on the second page, the client needs to acquire the second identification information of the middleware corresponding to the second page, and acquire the first identification information of the middleware corresponding to the first page from the page link for jumping from the first page to the second page, so as to judge whether the middleware corresponding to the first page and the middleware corresponding to the second page are the same or not by comparing the first identification information and the second identification information.
In step S108, if the second identification information is consistent with the first identification information, the operation information triggered based on the second triggering operation is sent to the middleware, where the middleware is configured to send the operation information to the first page, so as to perform communication between the first page and the second page.
The middleware is used for receiving operation information published by the information publishing page on one hand and sending subscribed information to the information subscribing page on the other hand.
In the specific implementation, if the two pieces of identification information are judged to be identical through comparison of the second identification information and the first identification information, the middleware corresponding to the second page is identical to the middleware corresponding to the first page, namely the same middleware, so that the operation information of the second page can be issued to the middleware, the middleware can provide the operation information of the second page for the first page, and communication between the first page and the second page is realized.
For example, referring to fig. 2 (a) -2 (c), fig. 2 (a) may represent a schematic page diagram before information interaction between a first page and a second page, fig. 2 (b) is a schematic page diagram of the second page, fig. 2 (c) may represent a schematic page diagram after information interaction between the first page and the second page, if first identification information of a middleware corresponding to the first page shown in fig. 2 (a) is consistent with second identification information of a middleware corresponding to the second page shown in fig. 2 (b), the client may send operation information on the second page shown in fig. 2 (b), that is, selection operation information for "people me" as shown in fig. 2 (b) to the middleware, so that the middleware provides selection operation information for "people me" to the first page after receiving the selection operation information for "people me" so that the first page may modify the function of "who me" based on the selection operation information, and obtain the first page after information interaction as shown in fig. 2 (c).
According to the page communication method, the identification information is set for the middleware, after the first trigger operation for jumping from the first page to the second page is received, the first identification information of the middleware corresponding to the first page is added to the page link of the second page, so that after the second page is displayed based on the page link, the first identification information can be acquired from the page link in response to the second trigger operation based on the second page, further after the second identification information of the middleware corresponding to the second page is acquired, whether the middleware corresponding to the first page and the middleware corresponding to the second page are consistent or not can be judged by comparing the second identification information with the first identification information, and when the two identification information are consistent, the operation information triggered based on the second trigger operation is sent to the middleware, so that the middleware can send the operation information to the first page, communication between the first page and the second page is conducted, the problem that communication failure occurs between the first page and the second page is avoided, and the stability of communication service between the pages is improved.
In an exemplary embodiment, the method further includes: if the second identification information is inconsistent with the first identification information, abnormal alarm information is sent to the server; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
The abnormal alarm information comprises information that middleware corresponding to the first page and the second page is inconsistent.
In a specific implementation, if the two pieces of identification information are inconsistent through comparing the second piece of identification information with the first piece of identification information, the fact that the middleware corresponding to the second page is different from the middleware corresponding to the first piece of identification information is indicated, so that even if the operation information of the second page is sent to the middleware corresponding to the second page, the first page cannot acquire the operation information of the second page, and communication between the second page and the first page will fail, and therefore when the two pieces of identification information are inconsistent, the operation of sending the abnormal alarm information to the server is adopted, and the server processes abnormal communication between the first page and the second page. More specifically, the server may be configured to configure a preset middleware according to the abnormal alarm information, and enable the first page and the second page to both communicate by using the preset middleware when the client receives the triggering operation for the first page and the second page again, so that the first page and the second page adopt the same middleware, and the first page and the second page can communicate normally subsequently.
According to the technical scheme provided by the embodiment, when the first identification information of the middleware corresponding to the first page and the second identification information of the middleware corresponding to the second page are inconsistent, the server sends the abnormal alarm information to the server, so that the server can configure the preset middleware according to the abnormal alarm information, and the same middleware can be used when the first page and the second page are communicated again subsequently, the defect of communication failure between the first page and the second page is overcome, and the stability of communication service between the pages is improved.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to obtain account identification information of the user account corresponding to the first page according to the anomaly alarm information, and configuring a corresponding first preset middleware for the account identification information; the method further comprises the following steps: and responding to the trigger operation of the user account trigger from the first page to the second page, and executing communication between the first page and the second page based on the first preset middleware.
In another exemplary embodiment, the anomaly alarm information is used for indicating the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; the method further comprises the following steps: in response to receiving a trigger operation to jump from the first page to the second page again, communication between the first page and the second page is performed based on the second preset middleware.
In a specific implementation, when the client side judges that the first identification information of the middleware corresponding to the first page is inconsistent with the second identification information of the middleware corresponding to the second page, the client side can generate abnormal alarm information such as an abnormal log and send the abnormal alarm information to the server, so that the server can use the same middleware when the subsequent first page and the second page are communicated again after processing the abnormal alarm information, and the problem of communication failure again is avoided. More specifically, the processing of the abnormality alarm information by the server can be divided into two modes, one is based on the processing of the identification information of the user account and the other is based directly on the processing of the first page and the second page of the communication abnormality.
When a user logs in an application program or logs in an operating system in a browser, a first processing mode based on identification information of a user account can be adopted, after abnormal alarm information is received by a server, account identification information of the user account currently operating on the two pages is acquired through a first page or a second page which is abnormal in communication in the abnormal alarm information, the account identification information is added into a preset white list, wherein the preset white list is configured with a corresponding first preset middleware, therefore, when the client receives triggering operation of the user account for any page in the application program or the operating system in the browser again, whether the user account is in the white list is queried, if so, the first preset middleware corresponding to the white list can be used as middleware corresponding to each page, and therefore, when the client receives triggering operation of the user account from the first page to the second page again, the operation of making the first page and the second page use the same middleware corresponding to the user account is executed, and stability of communication between the first page and the second page is ensured.
When a user does not log in an application program or does not log in an operating system in a browser, the server cannot acquire account identification information of a user account, so a second processing mode directly based on a first page and a second page with abnormal communication can be adopted, after the server receives the abnormal alarm information, the first page and the second page with abnormal communication in the abnormal alarm information are acquired, the first page and the second page are directly added into a preset white list, when the client receives trigger operation of skipping from the first page to the second page of any user account again, a second preset middleware corresponding to the white list can be used as middleware corresponding to the first page and the second page, and therefore when the client receives trigger operation of skipping from the first page to the second page again, operation of enabling the first page and the second page to use the same middleware is executed, and stability of communication between the first page and the second page is ensured.
According to the technical scheme provided by the embodiment, when the two pieces of identification information are not matched, the abnormal alarm information is sent to the server, so that the server can configure corresponding middleware for the user account or configure corresponding middleware for the first page and the second page with abnormal communication by acquiring the account identification information of the user account, and when the client receives trigger operation of jumping from the first page to the second page again, the operation of enabling the first page and the second page to use the same middleware is executed, and the stability of communication between the first page and the second page is ensured.
In an exemplary embodiment, further comprising: acquiring pre-associated early warning client identification information; and outputting the abnormal alarm information to the early-warning client corresponding to the early-warning client identification information.
According to the technical scheme provided by the embodiment, when the first identification information of the middleware corresponding to the first page is inconsistent with the second identification information of the middleware corresponding to the second page, the abnormal alarm information is output to the pre-associated early warning client side, so that service research personnel of the early warning client side are informed of checking the abnormal situation, monitoring of page communication abnormal situation is achieved, and stability of online service is guaranteed.
In an exemplary embodiment, step S102 further includes: responding to a first trigger operation of jumping from a first page to a second page, and sending an information subscription instruction to middleware corresponding to the first page; the information subscription instruction is used for indicating the middleware corresponding to the first page to monitor the operation information issued by the second page, and sending the operation information to the first page when the operation information is monitored.
In the technical scheme provided by the embodiment, after receiving the trigger operation of jumping from the first page to the second page, the client also needs to send an information subscription instruction to the middleware corresponding to the first page, so that the middleware corresponding to the first page can monitor the operation information issued by the second page, and when the operation information issued by the second page is monitored, the operation information is sent to the first page through the set channel, so that the first page can update the currently displayed content in time based on the operation information.
In an exemplary embodiment, in step S102, the adding the first identification information of the middleware corresponding to the first page to the page link of the second page specifically includes: acquiring a page link of a second page; and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
In the technical solution provided in this embodiment, after receiving the trigger operation for jumping from the first page to the second page, the client may generate a page link for jumping from the first page to the second page, and in order to facilitate determining whether the middleware corresponding to the second page is the same as the middleware corresponding to the first page, the acquired first identification information of the middleware corresponding to the first page may be added to the page link of the second page. Since each field in the page link has different meanings, the first identification information needs to be added into a field preset in the page link and capable of adding parameters.
FIG. 3 is a flow chart illustrating another page communication method, according to an exemplary embodiment, which in this example includes the steps of:
step S302, in response to receiving a first trigger operation for jumping from a first page to a second page, sending an information subscription instruction to middleware corresponding to the first page, adding first identification information of the middleware corresponding to the first page to a preset parameter field in a page link of the second page, and displaying the second page based on the page link; the information subscription instruction is used for indicating the middleware corresponding to the first page to monitor the operation information issued by the second page, and sending the operation information to the first page when the operation information is monitored;
Step S304, in response to receiving a second trigger operation based on a second page, acquiring second identification information of middleware corresponding to the second page, and acquiring first identification information from a page link;
step S306, comparing the second identification information with the first identification information;
step S308, if the two pieces of identification information are consistent, the operation information triggered based on the second triggering operation is sent to the middleware; the middleware is used for sending the operation information to the first page to realize communication between the first page and the second page;
step S310, if the two identification information are inconsistent, abnormal alarm information is sent to a server; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
According to the page communication method, the identification information is set for the middleware, after a first trigger operation for jumping from the first page to the second page is received, the first identification information of the middleware corresponding to the first page is added to the page link of the second page, so that after the second page is displayed based on the page link, the first identification information can be acquired from the page link in response to the second trigger operation based on the second page, further after the second identification information of the middleware corresponding to the second page is acquired, whether the middleware corresponding to the first page and the second page are consistent or not can be judged by comparing the second identification information with the first identification information, and when the two identification information are consistent, the operation information triggered based on the second trigger operation is sent to the middleware, so that the middleware can send the operation information to the first page to conduct communication between the first page and the second page; when the two identification information are inconsistent, abnormal alarm information is sent to the server, so that the server can configure a preset middleware according to the abnormal alarm information, and the same middleware can be used when the first page and the second page are communicated again later, thereby avoiding the problem that the first page and the second page are failed in communication and improving the stability of the page communication service.
Fig. 4 shows a flow chart of yet another page communication method according to an exemplary embodiment, in which the method comprises the steps of:
(1) When the client receives a trigger operation for function 1 (function 1 depends on page B) in page a, subscribing information from middleware corresponding to page a, acquiring first identification information of the middleware corresponding to page a, and adding the first identification information to a page link jumping to page B before jumping to page B.
(2) After receiving the operation information triggered by the page B (i.e. executing the function 1), before releasing the operation information to the middleware corresponding to the page B, acquiring second identification information of the middleware corresponding to the page B, and comparing the second identification information with the first identification information in the page link.
(3) If the two pieces of identification information are consistent, the operation information can be normally released, namely the operation information triggered by the page B can be released to the middleware, and then the page A receives the operation information triggered by the page B from the middleware subscription information, so that the communication between the page A and the page B is realized.
(4) If the two identification information are inconsistent, a preset middleware processing mechanism is executed, specifically, abnormal alarm information can be respectively sent to the early warning client side and the server, so that service research personnel of the early warning client side can check the abnormal situation, the server can acquire account identification information of a user account corresponding to the first page according to the abnormal alarm information, and a corresponding first preset middleware is configured for the account identification information, so that when the client side receives trigger operation of skipping the user account from the first page to the second page again, operation of enabling the first page and the second page to use the corresponding first preset middleware is executed; or configuring corresponding second preset middleware for the first page and the second page in the abnormal alarm information, so that when the client receives trigger operation triggered by any account to jump from the first page to the second page again, the operation of enabling the first page and the second page to use the corresponding second preset middleware is executed.
According to the page communication method, a confidence mechanism is added for the middleware in the publishing and subscribing mode, a supporting service party judges whether the middleware is available or not, the supporting service party identifies whether the middleware is abnormal or not, two pages can be ensured to use the same middleware, if a plurality of middleware are generated, the middleware can be automatically identified, an alarm or standby scheme is switched, and service stability is guaranteed.
It should be understood that, although the steps in the flowcharts of fig. 1, 3, and 4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 1, 3, and 4 may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
Fig. 5 is a block diagram illustrating a structure of a page communication apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus includes an adding unit 502, a displaying unit 504, an acquiring unit 506 and a processing unit 508, wherein,
an adding unit 502 configured to perform adding first identification information of the middleware corresponding to the first page to a page link of the second page in response to receiving a first trigger operation of jumping from the first page to the second page;
a display unit 504 configured to perform displaying the second page based on the page link;
an obtaining unit 506, configured to perform obtaining second identification information of the middleware corresponding to the second page in response to receiving a second trigger operation based on the second page, and obtain the first identification information from the page link;
and the processing unit 508 is configured to execute sending the operation information triggered based on the second triggering operation to the middleware if the second identification information is consistent with the first identification information, and the middleware is used for sending the operation information to the first page so as to perform communication between the first page and the second page.
In an exemplary embodiment, the processing unit 508 is further configured to send the abnormality alert information to the server if the second identification information and the first identification information are inconsistent; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to obtain account identification information of the user account corresponding to the first page according to the anomaly alarm information, and configuring a corresponding first preset middleware for the account identification information; the apparatus further includes a communication unit configured to perform a trigger operation of jumping from the first page to the second page in response to receiving the user account trigger again, and perform communication between the first page and the second page based on the first preset middleware.
In an exemplary embodiment, the anomaly alarm information is used for indicating the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; and a communication unit configured to perform communication between the first page and the second page based on the second preset middleware in response to receiving a trigger operation to jump from the first page to the second page again.
In an exemplary embodiment, the processing unit 508 is further configured to obtain pre-associated early warning client identification information, and output abnormal alarm information to an early warning client corresponding to the early warning client identification information.
In an exemplary embodiment, the apparatus further includes a sending unit configured to perform sending an information subscription instruction to the middleware corresponding to the first page in response to receiving a first trigger operation for jumping from the first page to the second page, where the information subscription instruction is used to instruct the middleware corresponding to the first page to monitor the operation information issued by the second page, and send the operation information to the first page when the operation information is monitored.
In an exemplary embodiment, the adding unit 502 is further configured to perform obtaining a page link of the second page; and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating an apparatus 600 for performing the page communication method described above, according to an exemplary embodiment. For example, device 600 may be a server. Referring to fig. 6, device 600 includes a processing component 620 that further includes one or more processors and memory resources represented by memory 622 for storing instructions, such as applications, executable by processing component 620. The application program stored in memory 622 may include one or more modules each corresponding to a set of instructions. Further, the processing component 620 is configured to execute instructions to perform the data query methods described above.
The device 600 may also include a power component 624 configured to perform power management of the device 600, a wired or wireless network interface 626 configured to connect the device 600 to a network, and an input/output (I/O) interface 628. The device 600 may operate based on an operating system stored in memory 622, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 622, including instructions executable by the processor of device 600 to perform the above-described method. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program stored in a computer readable storage medium, from which at least one processor of a device reads and executes the computer program, causing the device to perform the page communication method described in any one of the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. The specification and examples are to be regarded in an illustrative manner only.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof.

Claims (14)

1. A method of page communication, comprising:
in response to receiving a first trigger operation of jumping from a first page to a second page, adding first identification information of middleware corresponding to the first page to a page link of the second page;
displaying the second page based on the page link;
responding to receiving a second triggering operation based on the second page, acquiring second identification information of middleware corresponding to the second page, and acquiring the first identification information from the page link;
if the second identification information is consistent with the first identification information, sending operation information triggered based on the second triggering operation to the middleware, wherein the middleware is used for sending the operation information to the first page so as to communicate between the first page and the second page;
if the second identification information is inconsistent with the first identification information, abnormal alarm information is sent to a server; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
2. The method of claim 1, wherein the anomaly alarm information is used for indicating the server to obtain account identification information of a user account corresponding to the first page according to the anomaly alarm information, and configuring a corresponding first preset middleware for the account identification information; the method further comprises the steps of:
and responding to the trigger operation of the user account trigger to jump from the first page to the second page, and executing communication between the first page and the second page based on the first preset middleware.
3. The method of claim 1, wherein the anomaly alarm information is used for indicating the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; the method further comprises the steps of:
and responding to the trigger operation of skipping from the first page to the second page again, and executing communication between the first page and the second page based on the second preset middleware.
4. A method according to any one of claims 1-3, wherein the method further comprises:
Acquiring pre-associated early warning client identification information;
and outputting the abnormal alarm information to an early-warning client corresponding to the early-warning client identification information.
5. The method of claim 1, wherein the adding the first identification information of the middleware corresponding to the first page to the page link of the second page in response to receiving the first trigger operation of jumping from the first page to the second page, further comprises:
and in response to receiving a first trigger operation of jumping from a first page to a second page, sending an information subscription instruction to middleware corresponding to the first page, wherein the information subscription instruction is used for indicating the middleware corresponding to the first page to monitor operation information issued by the second page, and sending the operation information to the first page when the operation information is monitored.
6. The method of claim 1, wherein adding the first identification information of the middleware corresponding to the first page to the page link of the second page includes:
acquiring a page link of the second page;
and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
7. A page communication device, comprising:
an adding unit configured to perform a first identification information of middleware corresponding to a first page to be added to a page link of a second page in response to receiving a first trigger operation of jumping from the first page to the second page;
a display unit configured to perform display of the second page based on the page link;
the acquisition unit is configured to perform the steps of responding to the received second triggering operation based on the second page, acquiring second identification information of middleware corresponding to the second page, and acquiring the first identification information from the page link;
the processing unit is configured to execute sending operation information triggered based on the second triggering operation to the middleware if the second identification information is consistent with the first identification information, wherein the middleware is used for sending the operation information to the first page so as to perform communication between the first page and the second page;
the processing unit is further configured to send abnormal alarm information to a server if the second identification information is inconsistent with the first identification information; the abnormality alarm information is used for indicating the server to configure a preset middleware, and the preset middleware is used for enabling the first page and the second page to communicate based on the preset middleware when the first page and the second page communicate again.
8. The apparatus of claim 7, wherein the anomaly alarm information is configured to instruct the server to obtain account identification information of a user account corresponding to the first page according to the anomaly alarm information, and configure a corresponding first preset middleware for the account identification information; the apparatus further includes a communication unit configured to perform a trigger operation to jump from the first page to the second page in response to receiving the user account trigger again, the communication between the first page and the second page being performed based on the first preset middleware.
9. The apparatus of claim 7, wherein the anomaly alarm information is configured to instruct the server to configure corresponding second preset middleware for the first page and the second page according to the anomaly alarm information; and a communication unit configured to perform communication between the first page and the second page based on the second preset middleware in response to receiving a trigger operation to jump from the first page to the second page again.
10. The apparatus according to any of claims 7-9, wherein the processing unit is further configured to perform obtaining pre-associated early warning client identification information; and outputting the abnormal alarm information to an early-warning client corresponding to the early-warning client identification information.
11. The apparatus according to claim 7, further comprising a transmitting unit configured to perform a first trigger operation in response to receiving a jump from a first page to a second page, transmit an information subscription instruction to a middleware corresponding to the first page, the information subscription instruction instructing the middleware corresponding to the first page to monitor operation information issued by the second page, and transmit the operation information to the first page when the operation information is monitored.
12. The apparatus of claim 7, wherein the adding unit is further configured to perform obtaining a page link of the second page; and adding the first identification information of the middleware corresponding to the first page into a parameter field preset in the page link.
13. A page communication electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page communication method of any one of claims 1 to 6.
14. A computer readable storage medium, which when executed by a processor of a page communication electronic device, causes the page communication electronic device to perform the page communication method of any of claims 1 to 6.
CN202110806806.XA 2021-07-16 2021-07-16 Page communication method, device, electronic equipment and readable storage medium Active CN113556391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110806806.XA CN113556391B (en) 2021-07-16 2021-07-16 Page communication method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110806806.XA CN113556391B (en) 2021-07-16 2021-07-16 Page communication method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113556391A CN113556391A (en) 2021-10-26
CN113556391B true CN113556391B (en) 2023-11-21

Family

ID=78131972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110806806.XA Active CN113556391B (en) 2021-07-16 2021-07-16 Page communication method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113556391B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253624A (en) * 2021-11-26 2022-03-29 青岛海尔科技有限公司 Page loading method, device and container

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612530A (en) * 2020-05-06 2020-09-01 腾讯科技(深圳)有限公司 Exposure control method and device for promotion content and computer equipment
CN111737630A (en) * 2020-08-25 2020-10-02 智者四海(北京)技术有限公司 Method for recording user access path
CN112464259A (en) * 2020-11-18 2021-03-09 金蝶云科技有限公司 ERP page acquisition method and device, computer equipment and storage medium
CN113076116A (en) * 2021-06-03 2021-07-06 北京达佳互联信息技术有限公司 Page display method and device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7805523B2 (en) * 2004-03-15 2010-09-28 Mitchell David C Method and apparatus for partial updating of client interfaces

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612530A (en) * 2020-05-06 2020-09-01 腾讯科技(深圳)有限公司 Exposure control method and device for promotion content and computer equipment
CN111737630A (en) * 2020-08-25 2020-10-02 智者四海(北京)技术有限公司 Method for recording user access path
CN112464259A (en) * 2020-11-18 2021-03-09 金蝶云科技有限公司 ERP page acquisition method and device, computer equipment and storage medium
CN113076116A (en) * 2021-06-03 2021-07-06 北京达佳互联信息技术有限公司 Page display method and device and storage medium

Also Published As

Publication number Publication date
CN113556391A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
US9071551B2 (en) Mobile trouble ticket
CN104598369B (en) The software supervision method and apparatus realized in a mobile device
US8850398B1 (en) Automated testing of application programs from an application program ecosystem
US20180143973A1 (en) Semi-automated form-based chat
US10380867B2 (en) Alert management within a network based virtual collaborative space
CN109041267B (en) Network connection fault processing method and device and electronic equipment
CN108134708A (en) The method and apparatus for monitoring third party's interface
CN104581806B (en) A kind of method and terminal for monitoring operation system
CN113556391B (en) Page communication method, device, electronic equipment and readable storage medium
CN111090592A (en) Automatic testing method of buried point, terminal and readable storage medium
CN102419857B (en) A kind of Telemedicine comprehensive service system and method
CN112735104A (en) Abnormal alarm processing method and device
CN110198230B (en) Application monitoring method and device, storage medium and electronic device
CN110399723B (en) Vulnerability detection method and device, storage medium and electronic device
CN113779422A (en) Method and device for realizing relation chain label, electronic equipment and storage medium
CN112685301A (en) Fuzzy test method and device
CN111240904A (en) Database backup method and device, electronic equipment and storage medium
CN110233760B (en) System fault monitoring method and device
CN114691486A (en) Program debugging method and device and computer equipment
CN116760690B (en) Fault root cause analysis method, device, server and storage medium
CN111176948A (en) Method and system for monitoring personalized service index
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN116915838B (en) State maintenance method for virtual private network, terminal equipment and storage medium
CN114302430B (en) Data analysis method, device, storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant