CN111125586A - Page updating method and device - Google Patents

Page updating method and device Download PDF

Info

Publication number
CN111125586A
CN111125586A CN201911382484.XA CN201911382484A CN111125586A CN 111125586 A CN111125586 A CN 111125586A CN 201911382484 A CN201911382484 A CN 201911382484A CN 111125586 A CN111125586 A CN 111125586A
Authority
CN
China
Prior art keywords
target
page
controller
client
data interface
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.)
Granted
Application number
CN201911382484.XA
Other languages
Chinese (zh)
Other versions
CN111125586B (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911382484.XA priority Critical patent/CN111125586B/en
Publication of CN111125586A publication Critical patent/CN111125586A/en
Application granted granted Critical
Publication of CN111125586B publication Critical patent/CN111125586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

According to the page updating method and device provided by the embodiment of the invention, when the target page to be updated exists in the client, the server determines the controller corresponding to the target page as the target controller based on the preset corresponding relation between the page and the controller, determines the data interface contained in the target controller as the target data interface according to the updated control in the target page, and sends the corresponding relation between the target controller and the target data interface to the client. And the client receives the corresponding relation between the target controller and the target data interface, which is sent by the server, and updates the page to be displayed by the client based on the corresponding relation between the target controller and the target data interface. Based on the above processing, the page update efficiency can be improved.

Description

Page updating method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page updating method and apparatus.
Background
During the communication between the client and the server, the authority verification is usually required. Under the architecture that the client is separated from the server, a corresponding relationship (which may be referred to as a first corresponding relationship) between a control in a displayed page and a data interface of the server is configured in the client, and a corresponding relationship (which may be referred to as a second corresponding relationship) between a user identifier of a user and the data interface of the server is configured in the server.
In the prior art, a client and a server are both configured with a correspondence between pages and controllers, the pages in the client correspond to controllers (controllers) in the server one by one, the controllers are used for managing data interfaces included in the controllers, and controls in the pages correspond to the data interfaces included in the controllers corresponding to the pages one by one. For example, when the client detects that the currently logged-in user triggers a "search" control in page a, the client may determine, based on the local first correspondence, the data interface a1 corresponding to the "search" control, and send a request message containing the user identification of the user, the identification of page a, and the identification of data interface a1 to the server. After receiving the request message, the server determines a controller a corresponding to the page a according to the corresponding relationship between the page and the controller, and determines a data interface corresponding to the user identifier based on the second local corresponding relationship, and when the data interface a1 exists in the determined data interface, the server may call the data interface a1 through the controller a, and send response data corresponding to the "search" control to the client through the data interface a 1.
However, when the page a needs to be updated, for example, when a new control B is added to the page a, the controller a corresponding to the page a may be determined, and the data interface B1 corresponding to the control B is added to the data interface included in the controller a, and then, the technician needs to set the user identifier corresponding to the data interface B1 in the server as the user identifier of the user who is allowed to trigger the control B, that is, the technician needs to reconfigure the second correspondence relationship in the server. In addition, the technician needs to set the control B in the client to correspond to the data interface B1, that is, the technician needs to reconfigure the first corresponding relationship in the client, and further, the page a' to which the control B has been added can be obtained.
Therefore, in the prior art, when a page is updated, a technician is required to reconfigure the first corresponding relationship in the client and the second corresponding relationship in the server respectively, which results in lower efficiency of updating the page in the prior art.
Disclosure of Invention
The embodiment of the invention aims to provide a page updating method and device, which can improve the page updating efficiency. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a page updating method, where the method is applied to a client, and the method includes:
receiving a corresponding relation between a target controller and a target data interface sent by a server;
updating the page to be displayed on the client side based on the corresponding relation between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
Optionally, the updating, based on the corresponding relationship between the target controller and the target data interface, the page to be displayed by the client includes:
judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between a preset page and the controller;
if the target page exists, determining a control corresponding to the target data interface as a target control;
and updating the control in the target page based on the target control to obtain an updated target page.
Optionally, the method further includes:
and if the target page does not exist, generating a new page as the target page, wherein the controls in the generated new page correspond to the target data interfaces one by one.
Optionally, after the generating a new page as the target page, the method further includes:
and recording that the target page corresponds to the target controller.
Optionally, before the generating the new page as the target page, the method further includes:
receiving a hierarchy identifier sent by a server, wherein the hierarchy identifier is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client;
the generating a new page as the target page includes:
and generating a new page with the menu hierarchy represented by the hierarchy identification as the target page.
In a second aspect of the present invention, there is also provided a page updating method, where the method is applied to a server, and the method includes:
when detecting that a target page to be updated exists in a client, determining a controller corresponding to the target page as a target controller based on a preset corresponding relation between the page and the controller;
determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
and sending the corresponding relation between the target controller and the target data interface to the client so that the client updates the page to be displayed on the client based on the corresponding relation between the target controller and the target data interface.
Optionally, the target page is a new page to be generated currently;
after the determining the data interface included in the target controller, the method further comprises:
and sending a hierarchy identifier to the client, wherein the hierarchy identifier is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client.
In a third aspect of the present invention, there is also provided a page update system, including: a client and a server, wherein:
the server is used for determining a controller corresponding to a target page as a target controller based on a preset corresponding relation between the page and the controller when the target page to be updated exists in the client;
determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
sending the corresponding relation between the target controller and the target data interface to the client;
and the client is used for updating the page to be displayed by the client based on the received corresponding relation between the target controller and the target data interface.
In a fourth aspect of the present invention, there is also provided a page updating apparatus, where the apparatus is applied to a client, and the apparatus includes:
the receiving module is used for receiving the corresponding relation between the target controller and the target data interface sent by the server;
the updating module is used for updating the page to be displayed on the client side based on the corresponding relation between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
Optionally, the update module includes:
the judging submodule is used for judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between a preset page and the controller;
the determining submodule is used for determining a control corresponding to the target data interface as a target control if the target page exists;
and the updating submodule is used for updating the control in the target page based on the target control to obtain an updated target page.
Optionally, the update module further includes:
and the generation submodule is used for generating a new page as the target page if the target page does not exist, wherein the controls in the generated new page are in one-to-one correspondence with the target data interfaces.
Optionally, the update module further includes:
and the recording submodule is used for recording that the target page corresponds to the target controller.
Optionally, the update module further includes:
the receiving submodule is used for receiving a hierarchy mark sent by the server, wherein the hierarchy mark is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client;
the generation submodule is specifically configured to generate a new page having the menu hierarchy represented by the hierarchy identifier as the target page.
In a fifth aspect of the present invention, there is also provided a page updating apparatus, where the apparatus is applied to a server, and the apparatus includes:
the first determining module is used for determining a controller corresponding to a target page as a target controller based on a preset corresponding relation between the page and the controller when the target page to be updated is detected to exist in the client;
the second determining module is used for determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
the first sending module is configured to send the corresponding relationship between the target controller and the target data interface to the client, so that the client updates a page to be displayed on the client based on the corresponding relationship between the target controller and the target data interface.
Optionally, the target page is a new page to be generated currently;
the device further comprises:
and the second sending module is used for sending a hierarchy identifier to the client, wherein the hierarchy identifier is used for representing the menu hierarchy of the current new page to be generated in all pages displayed by the client.
In another aspect of the implementation of the present invention, a client is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the page updating method of the first aspect when executing the program stored in the memory.
In another aspect of the implementation of the present invention, there is also provided a server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the page updating method steps of the second aspect when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the page updating method according to the first aspect.
In another aspect of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the page updating method steps of the second aspect.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the page updating method according to the first aspect.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the page updating method according to the second aspect.
According to the page updating method provided by the embodiment of the invention, when a target page to be updated exists in a client side, a server determines a controller corresponding to the target page as a target controller based on a preset corresponding relation between the page and the controller, determines a data interface contained in the target controller as a target data interface according to a control in the updated target page, and sends the corresponding relation between the target controller and the target data interface to the client side. And the client receives the corresponding relation between the target controller and the target data interface, which is sent by the server, and updates the page to be displayed by the client based on the corresponding relation between the target controller and the target data interface.
It can be seen that after the server determines the corresponding relationship between the target controller and the target data interface, the server can send the corresponding relationship to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, that is, determine the corresponding relationship between the target page and the control, and further obtain the updated target page.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is an architecture diagram of a page update system provided in an embodiment of the present invention;
fig. 2 is a flowchart of a page updating method provided in the embodiment of the present invention;
fig. 3 is a flowchart of a page updating method provided in the embodiment of the present invention;
fig. 4 is a flowchart of a page updating method provided in the embodiment of the present invention;
fig. 5 is a flowchart of an example of a page updating method provided in the embodiment of the present invention;
fig. 6 is a flowchart of an example of a page updating method provided in the embodiment of the present invention;
fig. 7 is a structural diagram of a page update apparatus according to an embodiment of the present invention;
fig. 8 is a structural diagram of a page update apparatus provided in an embodiment of the present invention;
fig. 9 is a structural diagram of a client provided in an embodiment of the present invention;
fig. 10 is a block diagram of a server provided in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the prior art, when a page in a client needs to be updated, a technician needs to reconfigure a corresponding relationship between a control in the page in the client and a data interface of a server and a corresponding relationship between a user identifier of a user in the server and the data interface of the server, which results in low efficiency of updating the page in the prior art.
In order to solve the above problem, an embodiment of the present invention provides a page update system, and referring to fig. 1, fig. 1 is an architecture diagram of a page update system provided in an embodiment of the present invention, where the page update system may include: a client and a server.
When detecting that a target page to be updated exists in the client, the server may determine, based on a preset correspondence between the page and the controller, a controller corresponding to the target page to serve as a target controller, and determine, according to a control in the updated target page, a data interface included in the target controller to serve as a target data interface, and then, the server may send the correspondence between the target controller and the target data interface to the client. The client can update the page to be displayed on the client based on the received corresponding relation between the target controller and the target data interface.
It can be seen that after the server determines the corresponding relationship between the target controller and the target data interface, the server can send the corresponding relationship to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, that is, determine the corresponding relationship between the target page and the control, and further obtain the updated target page.
Referring to fig. 2, fig. 2 is a flowchart of a page updating method provided in an embodiment of the present invention, where the method is applied to a client, and the method may include the following steps:
s201: and receiving the corresponding relation between the target controller and the target data interface sent by the server.
S202: and updating the page to be displayed at the client based on the corresponding relation between the target controller and the target data interface.
The corresponding relation is that the server determines a data interface contained in the target controller according to the control in the updated target page, and the data interface is determined as the target data interface, and the target controller determines a controller corresponding to the target page as the target controller based on the preset corresponding relation between the page and the controller when the server detects that the target page to be updated exists in the client.
Based on the processing, after the server determines the corresponding relationship between the target controller and the target data interface, the corresponding relationship can be sent to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, namely, the corresponding relationship between the target page and the control, so that the updated target page can be obtained.
In one implementation, when a page in the client needs to be updated, the client may determine a page to be updated (i.e., a target page), and send a request message for updating the target page to the server.
Correspondingly, after receiving the request message sent by the client, the server can determine the target controller corresponding to the target page and determine the target data interface contained in the target controller, and then the server can send the corresponding relation between the target controller and the target data interface to the client. The method for determining the corresponding relationship between the target controller and the target data interface by the server will be described in the following embodiments.
In addition, when the page of the client needs to be updated, a technician may determine a page to be updated (i.e., a target page) in the client, then the technician may determine a target controller corresponding to the target page, configure a target data interface included in the target controller in the server, and further, the server may send the determined correspondence between the target controller and the target data interface to the client.
In step S202, the client may update the page to be displayed on the client based on the received corresponding relationship between the target controller and the target data interface.
Alternatively, referring to fig. 3, step S202 may include the following steps:
s2021: and judging whether a target page corresponding to the target controller exists according to the preset corresponding relation between the page and the controller, if so, executing step S2022, and if not, executing step S2024.
After receiving the corresponding relationship between the target controller and the target data interface sent by the server, the client can judge whether a target page corresponding to the target controller exists according to the corresponding relationship between a locally preset page and the controller, so as to perform corresponding processing according to a judgment result.
It can be understood that, in the preset correspondence between the pages and the controllers, the pages correspond to the controllers one to one, and the client may search for the correspondence between the preset pages and the controllers and determine whether the target controller is recorded. If the target controller is recorded, the recorded page corresponding to the target controller is the target page, the target page is the page needing updating the control currently, and if the target controller is not recorded, the target page corresponding to the target controller does not exist, namely the target page is a new page to be generated currently.
S2022: and determining a control corresponding to the target data interface as a target control.
If the client determines that a target page corresponding to the target controller exists, that is, the target page is a page of the control that needs to be updated currently, the client may determine that the control (that is, the target control) corresponding to the data interface (that is, the target data interface) corresponding to the target controller is the control in the updated target page.
Illustratively, if the correspondence received by the client includes: the data interface corresponding to the controller A' comprises: a1, a2, a3, the client may search for a correspondence between the locally preset page and the controller, and determine whether a controller a 'is recorded, if a controller a' is recorded in the correspondence between the locally preset page and the controller, it indicates that the control in the page a needs to be updated. Then, the client may determine that the control corresponding to the data interface a1 is b1, the control corresponding to the data interface a2 is b2, and the control corresponding to the data interface a3 is b3, that is, the updated controls in the target page include: b1, b2, b 3.
S2023: and updating the control in the target page based on the target control to obtain an updated target page.
After the client determines the target control, the client may also determine a control in the target page, and compare the control in the target page with the target control, and if the comparison result indicates that a control not belonging to the target control (which may be referred to as a to-be-deleted control) exists in the controls in the target page, the client may delete the to-be-deleted control from the target page, so as to obtain an updated target page.
For example, the controls in the target page may include: b1, b2, b3, the target control may include: b1, b2, the client can delete b3 from the control in the target page. An updated target page may be obtained, and the controls in the updated target page include: b1, b 2.
If the comparison result shows that the target control has a control (which may be called a control to be added) which does not belong to the target page, the client may add the control to be added to the target page, and thus, the updated target page may be obtained.
For example, the controls in the target page may include: b1, b2, b3, the target control may include: b1, b2, b3, b4, the client can add control b4 to the target page. An updated target page may be obtained, and the controls in the updated target page include: b1, b2, b3 and b 4.
Therefore, when the target page exists, the client can update (add or delete) the control needing to be modified in the target page on the basis of the existing target page, and reserve other controls not needing to be modified, so that the page updating efficiency can be improved.
S2024: and generating a new page as a target page.
And the controls in the generated new page correspond to the target data interfaces one by one.
If the client determines that the target page corresponding to the target controller does not exist, namely the target page is a new page to be generated currently, the client can generate a new blank page, and adds the control corresponding to the target data interface to the generated blank page, the obtained page is the target page, and the controls in the target page correspond to the target data interface one by one.
For example, if the client determines that there is no page corresponding to the controller a ', the client may generate a new blank page, and then, the client may determine that the data interface corresponding to the controller a' includes: a1, a2 and a3, and determining that a control corresponding to the data interface a1 is b1, a control corresponding to the data interface a2 is b2, and a control corresponding to the data interface a3 is b 3. Then, the client may add the controls b1, b2, and b3 to the generated blank page, may obtain the page a corresponding to the controller a', and the controls in the page a include: b1, b2, b 3.
Therefore, when the target page is a new page to be generated currently, the target page meeting the user requirements can be generated based on the user requirements, the personalized requirements of the user can be met, and the user experience is improved.
Optionally, before generating a new page, the client may further determine a hierarchical identifier of the page, and before step S2024, the method may further include the following steps: and receiving the hierarchy identification sent by the server.
The hierarchy mark is used for representing the menu hierarchy of the new page to be generated currently in all pages displayed by the client.
When the server determines that the target page to be updated exists in the client, if the target page to be updated is a new page to be generated currently, the server may send the level identifier of the new page to the client. Accordingly, the client may receive the tier identification sent by the server.
Further, the client may generate a new page having a menu hierarchy represented by the hierarchy identification as the target page.
Illustratively, before updating, the page in the client includes a page a and a page B, and the level identifier of the page a is level 1, and the level identifier of the page 2 is level 2, which means that the page a can be accessed by triggering the operation button corresponding to the page a in the level 1 menu, and the page B can be accessed by triggering the operation button corresponding to the page B in the level 2 menu.
If the hierarchy identifier of the new page C to be generated, which is received by the client, is 2 levels, the menu hierarchy of the target page is 2 levels, and then the client may set an operation button corresponding to the page C in the 2-level menu. That is, after updating, the page in the client includes page a, page B, and page C, and the level of page a is identified as level 1, the level of page 2 is identified as level 2, and the level of page C is identified as level 2. Subsequently, the user can access the page a by triggering the operation button corresponding to the page a in the level 1 menu, access the page B by triggering the operation button corresponding to the page B in the level 2 menu, and access the page C by triggering the operation button corresponding to the page C in the level 2 menu.
S2025: and recording that the target page corresponds to the target controller.
After the client generates the target page, the client can also record that the target page corresponds to the target controller in the corresponding relationship between the locally preset page and the controller.
Subsequently, if the control in the target page needs to be updated, the client can search the corresponding relationship between the preset page and the controller, determine the target page corresponding to the target controller, and need not generate a new page again, thereby further improving the page updating efficiency.
Referring to fig. 4, fig. 4 is a flowchart of a page updating method provided in an embodiment of the present invention, where the method is applied to a server, and the method may include the following steps:
s401: when the target page to be updated exists in the client, the controller corresponding to the target page is determined to be used as the target controller based on the corresponding relation between the preset page and the controller.
S402: and determining a data interface contained in the target controller as a target data interface according to the updated control in the target page.
S403: and sending the corresponding relation between the target controller and the target data interface to the client so that the client updates the page to be displayed on the client based on the corresponding relation between the target controller and the target data interface.
Based on the processing, after the server determines the corresponding relationship between the target controller and the target data interface, the corresponding relationship can be sent to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, namely, the corresponding relationship between the target page and the control, so that the updated target page can be obtained.
In one implementation, when a page in a client needs to be updated, the client may determine a page to be updated (i.e., a target page), and then the client may send a request message for updating the target page to a server. Correspondingly, after receiving the request message sent by the client, the server may determine the controller (i.e., the target controller) corresponding to the target page based on the correspondence between the locally preset page and the controller.
In addition, when the page in the client needs to be updated, a technician may determine a page to be updated (i.e., a target page) in the client, then, the technician may determine a target controller corresponding to the target page, configure a target data interface included in the target controller in the server, and further, the server may send the determined correspondence between the target controller and the target data interface to the client.
In step S402, after the server determines the target controller, a data interface (i.e., a target data interface) corresponding to the target controller may be determined according to the updated control in the target page.
In one implementation manner, the server may determine a data interface (which may be referred to as a first data interface) corresponding to a control in the target page and a data interface included in the target controller, and if a data interface (which may be referred to as a to-be-added data interface) that does not belong to the target controller exists in the first data interface, the server may add the to-be-added data interface to the data interface included in the target controller, and further, determine that the target data controller corresponds to the target data interface.
Illustratively, after the server determines the controller a' corresponding to the page a, if the updated control in the page a includes: b1, b2, b3, the controller A' comprises a data interface comprising: a1 and a2, the server may add the data interface a3 corresponding to the control b3 to the data interface included in the controller a', and further, may determine that the target controller corresponds to the target data interfaces a1, a2 and a 3.
If a data interface (which may be referred to as a to-be-deleted data interface) not belonging to the first data interface exists in the data interfaces included in the target controller, the server may delete the to-be-deleted data interface, and further, it may be determined that the target controller corresponds to the target data interface.
Illustratively, after the server determines the controller a' corresponding to the page a, if the updated control in the page a includes: b1 and b 2. the data interface contained in the controller A' comprises: a1, a2, a3, the server may delete data interface a3, and may determine that the target controller corresponds to target data interfaces a1 and a 2.
In addition, after determining a target controller corresponding to a target page, a technician may determine a data interface (i.e., a first data interface) corresponding to a control in the target page and a data interface included in the target controller, and if a data interface not belonging to the target controller (i.e., a data interface to be added) exists in the first data interface, the technician may add the data interface to be added to the data interface included in the target controller; if a data interface not belonging to the first data interface (i.e., a data interface to be deleted) exists in the data interfaces included in the target controller, the technician may delete the data interface to be deleted, and the server may determine the target data interface corresponding to the target controller, i.e., may determine the corresponding relationship between the target controller and the target data interface.
In step S403, after determining the target data interface corresponding to the target controller, the server may send the corresponding relationship between the target controller and the target data interface to the client.
Accordingly, the client may update the page to be displayed on the client based on the received corresponding relationship between the target controller and the target data interface, and the method for updating the page to be displayed by the client is described in detail in the foregoing embodiments, and is not described here again.
Optionally, if the target page is a new page to be generated currently, after step S402, the method may further include the following steps: and sending the hierarchy identification to the client.
The hierarchy mark is used for representing the menu hierarchy of the new page to be generated currently in all pages displayed by the client.
In an implementation manner, after receiving a request message for updating a target page sent by a client, a server may search for a correspondence between a locally preset page and a controller, and determine whether the target page is recorded, and if the target page is not recorded, the server may determine that the target page is a new page to be currently generated. Then, the server may add a controller (i.e., a target controller) corresponding to the new page to be generated, and determine a target data interface corresponding to the target controller and a hierarchical identifier of the new page to be generated.
In another implementation manner, after determining the target controller corresponding to the new page to be generated, a technician may configure a data interface included in the target controller in the server, and determine the level identifier of the new page to be generated according to the updated target page.
Further, the server may send the level identification of the new page to be generated to the client. Accordingly, the client may receive the hierarchy identifier sent by the server, generate a new page having a menu hierarchy represented by the hierarchy identifier, and use the new page as a target page, where the method for the client to generate the target page is described in detail in the foregoing embodiments, and is not described here again.
Referring to fig. 5, fig. 5 is a flowchart of an example of a page updating method according to an embodiment of the present invention, where the method includes the following steps:
s501: when the target page to be updated exists in the client, the server determines the controller corresponding to the target page as a target controller based on the preset corresponding relation between the page and the controller.
S502: and the server determines a data interface contained in the target controller as a target data interface according to the updated control in the target page.
S503: and the server sends the corresponding relation between the target controller and the target data interface to the client.
S504: and when the target page corresponding to the target controller is judged to exist, the client determines the control corresponding to the target data interface as the target control.
S505: and the client updates the control in the target page based on the target control to obtain the updated target page.
Referring to fig. 6, fig. 6 is a flowchart of an example of a page updating method according to an embodiment of the present invention, which may include the following steps:
s601: when the target page to be updated exists in the client, the server determines the controller corresponding to the target page as a target controller based on the preset corresponding relation between the page and the controller.
S602: and the server determines a data interface contained in the target controller as a target data interface according to the updated control in the target page.
S603: and when the target page is a new page to be generated currently, the server sends the corresponding relation between the target controller and the target data interface and the level identification of the new page to be generated currently to the client.
The hierarchy mark is used for representing the menu hierarchy of the new page to be generated currently in all pages displayed by the client.
S604: and when the target page corresponding to the target controller does not exist, the client generates a new page with the menu hierarchy represented by the hierarchy identification as the target page.
And the controls in the generated new page correspond to the target data interfaces one by one.
S605: and recording that the target page corresponds to the target controller.
Corresponding to the embodiment of the method in fig. 2, referring to fig. 7, fig. 7 is a structural diagram of a page update apparatus according to an embodiment of the present invention, where the apparatus is applied to a client, and the apparatus includes:
a receiving module 701, configured to receive a correspondence between a target controller and a target data interface, where the correspondence is sent by a server;
an updating module 702, configured to update a page to be displayed by the client based on a correspondence between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
Optionally, the update module 702 includes:
the judging submodule is used for judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between a preset page and the controller;
the determining submodule is used for determining a control corresponding to the target data interface as a target control if the target page exists;
and the updating submodule is used for updating the control in the target page based on the target control to obtain an updated target page.
Optionally, the updating module 702 further includes:
and the generation submodule is used for generating a new page as the target page if the target page does not exist, wherein the controls in the generated new page are in one-to-one correspondence with the target data interfaces.
Optionally, the updating module 702 further includes:
and the recording submodule is used for recording that the target page corresponds to the target controller.
Optionally, the updating module 702 further includes:
the receiving submodule is used for receiving a hierarchy mark sent by the server, wherein the hierarchy mark is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client;
the generation submodule is specifically configured to generate a new page having the menu hierarchy represented by the hierarchy identifier as the target page.
Corresponding to the embodiment of the method in fig. 4, referring to fig. 8, fig. 8 is a structural diagram of a page update apparatus according to an embodiment of the present invention, where the apparatus is applied to a server, and the apparatus includes:
a first determining module 801, configured to, when it is detected that a target page to be updated exists in a client, determine, based on a preset correspondence between a page and a controller, a controller corresponding to the target page, as a target controller;
a second determining module 802, configured to determine, according to the updated control in the target page, a data interface included in the target controller, as a target data interface;
a first sending module 803, configured to send the correspondence between the target controller and the target data interface to the client, so that the client updates a page to be displayed by the client based on the correspondence between the target controller and the target data interface.
Optionally, the target page is a new page to be generated currently;
the device further comprises:
and the second sending module is used for sending a hierarchy identifier to the client, wherein the hierarchy identifier is used for representing the menu hierarchy of the current new page to be generated in all pages displayed by the client.
Based on the processing, after the server determines the corresponding relationship between the target controller and the target data interface, the corresponding relationship can be sent to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, namely, the corresponding relationship between the target page and the control, so that the updated target page can be obtained.
The embodiment of the present invention further provides a client, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
receiving a corresponding relation between a target controller and a target data interface sent by a server;
updating the page to be displayed on the client side based on the corresponding relation between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
The embodiment of the present invention further provides a client, as shown in fig. 10, which includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete mutual communication through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the following steps when executing the program stored in the memory 1003:
when detecting that a target page to be updated exists in a client, determining a controller corresponding to the target page as a target controller based on a preset corresponding relation between the page and the controller;
determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
and sending the corresponding relation between the target controller and the target data interface to a client so that the client updates the page to be displayed on the client based on the corresponding relation between the target controller and the target data interface.
The communication bus mentioned in the above client and server may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication among the client, the server and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Based on the processing, after the server determines the corresponding relationship between the target controller and the target data interface, the corresponding relationship can be sent to the client, and the client can determine the control in the target page based on the received corresponding relationship between the target controller and the target data interface, namely, the corresponding relationship between the target page and the control, so that the updated target page can be obtained.
In another embodiment of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any one of the above-mentioned page updating methods applied to a client.
In another embodiment of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any one of the above-mentioned page updating methods applied to a server.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the page updating method applied to the client as described in any of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the page updating method applied to a server according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the client, the server, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A page updating method is applied to a client, and comprises the following steps:
receiving a corresponding relation between a target controller and a target data interface sent by a server;
updating the page to be displayed on the client side based on the corresponding relation between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
2. The method according to claim 1, wherein the updating the page to be displayed by the client based on the correspondence between the target controller and the target data interface comprises:
judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between a preset page and the controller;
if the target page exists, determining a control corresponding to the target data interface as a target control;
and updating the control in the target page based on the target control to obtain an updated target page.
3. The method of claim 2, further comprising:
and if the target page does not exist, generating a new page as the target page, wherein the controls in the generated new page correspond to the target data interfaces one by one.
4. The method of claim 3, wherein after the generating a new page as the target page, the method further comprises:
and recording that the target page corresponds to the target controller.
5. The method of claim 3, wherein prior to said generating a new page as said target page, said method further comprises:
receiving a hierarchy identifier sent by a server, wherein the hierarchy identifier is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client;
the generating a new page as the target page includes:
and generating a new page with the menu hierarchy represented by the hierarchy identification as the target page.
6. A page updating method is applied to a server and comprises the following steps:
when detecting that a target page to be updated exists in a client, determining a controller corresponding to the target page as a target controller based on a preset corresponding relation between the page and the controller;
determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
and sending the corresponding relation between the target controller and the target data interface to the client so that the client updates the page to be displayed on the client based on the corresponding relation between the target controller and the target data interface.
7. The method according to claim 6, wherein the target page is a new page to be currently generated;
after the determining the data interface included in the target controller, the method further comprises:
and sending a hierarchy identifier to the client, wherein the hierarchy identifier is used for representing a menu hierarchy of a new page to be generated currently in all pages displayed by the client.
8. A page update system, the page update system comprising: a client and a server, wherein:
the server is used for determining a controller corresponding to a target page as a target controller based on a preset corresponding relation between the page and the controller when the target page to be updated exists in the client;
determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
sending the corresponding relation between the target controller and the target data interface to the client;
and the client is used for updating the page to be displayed by the client based on the received corresponding relation between the target controller and the target data interface.
9. A page update apparatus, applied to a client, the apparatus comprising:
the receiving module is used for receiving the corresponding relation between the target controller and the target data interface sent by the server;
the updating module is used for updating the page to be displayed on the client side based on the corresponding relation between the target controller and the target data interface;
the corresponding relationship is determined by the server according to a control in an updated target page, a data interface contained in the target controller is determined as the target data interface, and the target controller is determined by the server based on a preset corresponding relationship between a page and a controller when the server detects that the target page to be updated exists in a client, wherein the controller corresponding to the target page is determined as the target controller.
10. A page updating device, which is applied to a server, the device comprising:
the first determining module is used for determining a controller corresponding to a target page as a target controller based on a preset corresponding relation between the page and the controller when the target page to be updated is detected to exist in the client;
the second determining module is used for determining a data interface contained in the target controller as a target data interface according to the updated control in the target page;
the first sending module is configured to send the corresponding relationship between the target controller and the target data interface to the client, so that the client updates a page to be displayed on the client based on the corresponding relationship between the target controller and the target data interface.
11. The client is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 6 to 7 when executing a program stored in the memory.
13. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 6-7.
CN201911382484.XA 2019-12-27 2019-12-27 Page updating method and device Active CN111125586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911382484.XA CN111125586B (en) 2019-12-27 2019-12-27 Page updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382484.XA CN111125586B (en) 2019-12-27 2019-12-27 Page updating method and device

Publications (2)

Publication Number Publication Date
CN111125586A true CN111125586A (en) 2020-05-08
CN111125586B CN111125586B (en) 2023-09-05

Family

ID=70505218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382484.XA Active CN111125586B (en) 2019-12-27 2019-12-27 Page updating method and device

Country Status (1)

Country Link
CN (1) CN111125586B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286545A (en) * 2020-09-21 2021-01-29 长沙市到家悠享网络科技有限公司 Data updating method, device, equipment and storage medium
CN112416401A (en) * 2020-11-23 2021-02-26 北京奇艺世纪科技有限公司 Data updating method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN107066272A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of method for updating pages and device
US20190068593A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Method for providing service update and electronic device supporting the same
CN110569097A (en) * 2019-08-26 2019-12-13 北京奇艺世纪科技有限公司 information display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN107066272A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of method for updating pages and device
US20190068593A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Method for providing service update and electronic device supporting the same
CN110569097A (en) * 2019-08-26 2019-12-13 北京奇艺世纪科技有限公司 information display method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286545A (en) * 2020-09-21 2021-01-29 长沙市到家悠享网络科技有限公司 Data updating method, device, equipment and storage medium
CN112416401A (en) * 2020-11-23 2021-02-26 北京奇艺世纪科技有限公司 Data updating method, device and equipment
CN112416401B (en) * 2020-11-23 2023-10-27 北京奇艺世纪科技有限公司 Data updating method, device and equipment

Also Published As

Publication number Publication date
CN111125586B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US9645914B1 (en) Apps store with integrated test support
EP3541098A1 (en) Processing method for communication identifier binding and terminal
CN109213604B (en) Data source management method and device
CN111125586A (en) Page updating method and device
CN112202633B (en) Block chain network testing method and device, electronic equipment and readable storage medium
CN111782728B (en) Data synchronization method, device, electronic equipment and medium
CN111581502A (en) Information notification method and device
CN112464214A (en) Authority detection method and device, electronic equipment and readable storage medium
JP5141360B2 (en) Work support device for information processing device
CN111371841A (en) Data monitoring method and device
CN111355765B (en) Network request processing and sending method and device
CN109976828B (en) Method and device for configuring file
KR102567900B1 (en) Method and Apparatus for Ensuring Continuous Device Operational Stability in Cloud Degraded Mode
CN110674153B (en) Data consistency detection method and device and electronic equipment
US20210382872A1 (en) Blockchain-based Data Storage Method, Related Device and Storage Medium
CN110879718A (en) maridb upgrading method and device, electronic equipment and storage medium
US20090037493A1 (en) Method and device for updating an object with copyright attribute
CN111131397B (en) Application management method and system, gateway platform, server and storage medium
CN109542300B (en) Method and device for updating web directory, electronic equipment and storage medium
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
WO2016095472A1 (en) Method and apparatus for processing resource operation request
CN111124712A (en) Event notification method, device, server and storage medium
CN110795242A (en) Storage space management method and device, electronic equipment and storage medium
CN111666020A (en) Method and device for switching document pages, electronic equipment and storage medium
CN112836187B (en) Authority management method and device and electronic 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