CN111125586B - Page updating method and device - Google Patents

Page updating method and device Download PDF

Info

Publication number
CN111125586B
CN111125586B CN201911382484.XA CN201911382484A CN111125586B CN 111125586 B CN111125586 B CN 111125586B CN 201911382484 A CN201911382484 A CN 201911382484A CN 111125586 B CN111125586 B CN 111125586B
Authority
CN
China
Prior art keywords
target
page
controller
data interface
client
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
CN201911382484.XA
Other languages
Chinese (zh)
Other versions
CN111125586A (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

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 existence of the target page to be updated in the client is detected, the server determines the controller corresponding to the target page based on the corresponding relation between the preset page and the controller, and the controller is used as the target controller, and determines the data interface contained in the target controller according to the control in the updated target page, and the data interface is used as the target data interface, and the server sends the corresponding relation between the target controller and the target data interface to the client. The client receives the corresponding relation between the target controller and the target data interface 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 method and apparatus for updating a page.
Background
In the process of a client communicating with a server, authentication of rights is often required. Under the architecture that the client and the server are separated, the corresponding relation (which can be called as a first corresponding relation) between the control in the displayed page and the data interface of the server is configured in the client, and the corresponding relation (which can be called as a second corresponding relation) between the user identification of the user and the data interface of the server is configured in the server.
In the prior art, the corresponding relation between the page and the Controller is configured in the client and the server, the page in the client corresponds to the Controller (Controller) in the server one by one, the Controller is used for managing the data interfaces contained in the Controller, and the control in the page corresponds to the data interfaces contained in the Controller corresponding to the page one by one. For example, when the client detects that the currently logged-in user triggers the "search" control in the 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 to the server, where the request message includes the user identifier of the user, the identifier of the page a, and the identifier of the data interface a 1. After receiving the request message, the server determines a controller a corresponding to the page A according to the corresponding relation between the page and the controller, determines a data interface corresponding to the user identifier based on a local second corresponding relation, and when the determined data interface has the data interface a1, the server can 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 that is allowed to trigger the control B, that is, needs to reconfigure the second correspondence in the server. In addition, the technician also 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 correspondence in the client, and further, the page a' with the control B added can be obtained.
In the prior art, when updating the page, 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 page updating efficiency 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 update method, where the method is applied to a client, the method including:
receiving a corresponding relation between a target controller and a target data interface, wherein the corresponding relation is sent by a server;
updating the page to be displayed by 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 a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between the preset page and the controller and is used as the target controller for determining.
Optionally, the updating the page to be displayed by the client based on the correspondence between the target controller and the target data interface includes:
judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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 comprises:
and if the target page does not exist, generating a new page as the target page, wherein the controls in the generated new page are in one-to-one correspondence with the target data interface.
Optionally, after the generating the 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 of the new page as the target page, the method further includes:
receiving a hierarchy identification sent by a server, wherein the hierarchy identification is used for representing menu hierarchies of new pages to be generated currently in all pages displayed by the client;
The generating a new page as the target page includes:
a new page having the menu hierarchy represented by the hierarchy identification is generated as the target page.
In a second aspect of the present invention, there is also provided a page update method, the method being applied to a server, the method including:
when the fact that a target page to be updated exists in the client is detected, determining a controller corresponding to the target page based on a preset corresponding relation between the page and the controller, and taking the controller as a target controller;
according to the updated control in the target page, determining a data interface contained in the target controller as a target data interface;
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 by 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 includes:
and sending a hierarchy identification to the client, wherein the hierarchy identification is used for representing menu hierarchies of new pages 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 the target page based on the corresponding relation between the preset page and the controller when the target page to be updated exists in the client, and the controller is used as a target controller;
according to the updated control in the target page, determining a data interface contained in the target controller as a target data interface;
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, the apparatus being 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, which are sent by the server;
the updating module is used for updating the page to be displayed by 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 a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between the preset page and the controller and is used as the target controller for determining.
Optionally, the updating module includes:
the judging sub-module is used for judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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 sub-module 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 further includes:
and the generation sub-module 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 further includes:
and the recording sub-module is used for recording that the target page corresponds to the target controller.
Optionally, the updating module further includes:
the receiving sub-module is used for receiving a hierarchy identification sent by the server, wherein the hierarchy identification is used for representing menu hierarchies of new pages to be generated currently in all pages displayed by the client;
the generation sub-module is specifically configured to generate a new page with 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, the apparatus being applied to a server, the apparatus comprising:
the first determining module is used for determining a controller corresponding to a target page based on a corresponding relation between a preset page and the controller when the target page to be updated exists in the client side, and the controller is used as a target controller;
the second determining module is used for determining a data interface contained in the target controller according to the updated control in the target page and taking the data interface as a target data interface;
and the first sending module is used for 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 by 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;
the apparatus 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 a menu hierarchy of a new page to be generated currently in all pages displayed by the client.
In another aspect of the present invention, there is also provided a client, 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 in the first aspect when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a server including a processor, a communication interface, a memory, and a communication bus, wherein 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 step in the second aspect when executing the program stored in the memory.
In yet another aspect of the implementation of the present invention, there is also provided a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the page update method described in the first aspect.
In yet another aspect of the implementation of the present invention, there is also provided a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the page update method described in the second aspect.
In a further aspect of the present invention there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the page updating method of the first aspect described above.
In a further aspect of the invention there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the page updating method of the second aspect described above.
According to the page updating method provided by the embodiment of the invention, when the existence of the target page to be updated in the client is detected, the server determines the controller corresponding to the target page based on the corresponding relation between the preset page and the controller, and the controller is used as the target controller, and determines the data interface contained in the target controller according to the control in the updated target page, and the data interface is used as the target data interface, and the server sends the corresponding relation between the target controller and the target data interface to the client. The client receives the corresponding relation between the target controller and the target data interface 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.
Therefore, after the server determines the corresponding relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, further, the updated target page can be obtained, and based on the method provided by the embodiment of the invention, the page in the client can be updated only by manually configuring the corresponding relation between the controller in the server and the data interface, and compared with the prior art, the page updating efficiency can be improved.
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 a block diagram of a page update system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for updating a page according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for updating a page according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for updating a page according to an embodiment of the present invention;
FIG. 5 is a flowchart of an example of a page update method according to an embodiment of the present invention;
FIG. 6 is a flowchart of an example of a method for updating a page according to an embodiment of the present invention;
FIG. 7 is a block diagram of a page update apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of a page update apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram of a client provided in an embodiment of the present invention;
fig. 10 is a block diagram of a server according to an 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 accompanying drawings in the embodiments of the present invention.
In the prior art, when a page in a client needs to be updated, a technician is required to reconfigure the corresponding relation between a control in the page in the client and a data interface of a server and the corresponding relation between a user identifier of a user in the server and the data interface of the server respectively, so that the page updating efficiency in the prior art is lower.
In order to solve the above-mentioned problems, an embodiment of the present invention provides a page update system, referring to fig. 1, fig. 1 is a schematic 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 the target page to be updated exists in the client, the server can determine the controller corresponding to the target page based on the corresponding relation between the preset page and the controller, the controller is used as the target controller, a data interface contained in the target controller is determined according to the control in the updated target page and is used as the target data interface, and then the server can send the corresponding relation between the target controller and the target data interface to the client. The client can update the page to be displayed by the client based on the received corresponding relation between the target controller and the target data interface.
Therefore, after the server determines the corresponding relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, further, the updated target page can be obtained, and based on the system provided by the embodiment of the invention, the updating of the page to be displayed by the client can be realized only by manually configuring the corresponding relation between the controller in the server and the data interface, and compared with the prior art, the page updating efficiency can be improved.
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, which are sent by the server.
S202: and updating the page to be displayed by 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, the data interface is used as the target data interface to determine, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between the preset page and the controller and is used as the target controller to determine.
Based on the processing, after the server determines the corresponding relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, and further, 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 to the server to update the target page.
Correspondingly, after receiving the request message sent by the client, the server can determine the target controller corresponding to the target page, determine the target data interface contained in the target controller, and then send the corresponding relationship between the target controller and the target data interface to the client. The method for determining the correspondence 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 can determine the page to be updated (i.e. the target page) in the client, then the technician can determine the target controller corresponding to the target page, and configure the target data interface contained in the target controller in the server, and further, the server can send the corresponding relation between the determined target controller and the target data interface to the client.
In step S202, the client may update the page to be displayed by the client based on the received correspondence between the target controller and the target data interface.
Optionally, referring to fig. 3, step S202 may include the steps of:
s2021: according to the corresponding relation between the preset page and the controller, judging whether a target page corresponding to the target controller exists, if so, executing step S2022, and if not, executing step S2024.
After receiving the corresponding relation 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 relation between the locally preset page and the controller, so as to perform corresponding processing according to a judging result.
It can be understood that in the corresponding relation between the preset page and the controller, the page corresponds to the controller one by one, and the client can search the corresponding relation between the preset page and the controller and determine whether the target controller is recorded. If the target controller is recorded, the page corresponding to the recorded target controller is a target page, the target page is a page of the control which is required to be updated 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 the target page corresponding to the target controller exists, that is, the target page is the page of the control currently needing to be updated, the client can determine the control (that is, the target control) corresponding to the data interface (that is, the target data interface) corresponding to the target controller as 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 And a2, a3, the client can search the corresponding relation between the locally preset page and the controller and determine whether the controller A 'is recorded, if the corresponding relation between the locally preset page and the controller is recorded with the corresponding relation between the controller A' and the page A, 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 control in the updated target page includes: b1, b2, b3.
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 can determine the control in the target page and compare the control in the target page with the target control, if the comparison result shows that the control (which can be called as a control to be deleted) which does not belong to the target control exists in the control in the target page, the client can delete the control to be deleted from the target page, and the updated target page can be obtained.
Illustratively, the controls in the target page may include: b1, b2, b3, the target control may include: b1, b2, the client may delete b3 from the controls in the target page. The updated target page can be obtained, and the controls in the updated target page comprise: b1, b2.
If the comparison result shows that the control which does not belong to the target page exists in the target control (can be called as a control to be added), the client can add the control to be added to the target page, and then the updated target page can be obtained.
Illustratively, the controls in the target page may include: b1, b2, b3, the target control may include: b1, b2, b3, b4, the client may add control b4 to the target page. The updated target page can be obtained, and the controls in the updated target page comprise: b1, b2, b3, b4.
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 other controls which do not need to be modified are reserved, so that the page updating efficiency can be improved.
S2024: and generating a new page serving as a target page.
The controls in the generated new page are in one-to-one correspondence with the target data interfaces.
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 into the generated blank page, wherein the obtained page is the target page, and the controls in the target page are in one-to-one correspondence with the target data interface.
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 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. Then, the client may add the controls b1, b2 and b3 to the generated blank page, and may obtain a page a corresponding to the controller a', where the controls in the page a include: b1, b2, b3.
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 the new page, the client may further determine a hierarchy identification of the page, and before step S2024, the method may further include the steps of: and receiving the hierarchy identification sent by the server.
Wherein the hierarchy identification is used for representing a menu hierarchy of all pages displayed by the client for a new page to be generated currently.
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 can send the hierarchy identification of the new page to the client. Accordingly, the client may receive the hierarchy identification sent by the server.
Further, the client may generate a new page with the menu hierarchy represented by the hierarchy identification as the target page.
For example, before updating, the page in the client includes a page a and a page B, where the level of the page a is identified as level 1, and the level of the page 2 is identified as level 2, which means that the page a can be accessed by triggering an operation button corresponding to the page a in the level 1 menu, and the page B can be accessed by triggering an operation button corresponding to the page B in the level 2 menu.
If the level identification of the new page C to be generated received by the client is level 2, the menu level representing the target page is level 2, and then the client can set an operation button corresponding to the page C in the level 2 menu. That is, after updating, the pages in the client include 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 an operation button corresponding to the page A in the level 1 menu, access the page B by triggering an operation button corresponding to the page B in the level 2 menu, and access the page C by triggering an operation button corresponding to the page C in the level 2 menu.
S2025: the recording target page corresponds to the target controller.
After the client generates the target page, the client can record that the target page corresponds to the target controller in the corresponding relation 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 relation between the preset page and the controller to determine the target page corresponding to the target controller, and new pages do not need to be generated again, so that the page updating efficiency can be further improved.
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 existence of the target page to be updated in the client is detected, determining a controller corresponding to the target page based on the corresponding relation between the preset page and the controller, and taking the controller as the target controller.
S402: and determining a data interface contained in the target controller according to the updated control in the target page, and taking the data interface as a target data interface.
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 by 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 relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, and further, the updated target page can be obtained.
In one implementation, when a page in a client needs to be updated, the client may determine the page to be updated (i.e., the target page), and then the client may send a request message to the server to update the target page. Correspondingly, after receiving the request message sent by the client, the server can determine the controller corresponding to the target page (i.e., the target controller) based on the corresponding relationship between the locally preset page and the controller.
In addition, when the page in the client needs to be updated, a technician can determine the page to be updated (i.e. the target page) in the client, then the technician can determine the target controller corresponding to the target page, and configure the target data interface included in the target controller in the server, and further, the server can send the corresponding relation between the determined target controller and the target data interface to the client.
After the server determines the target controller in step S402, a data interface corresponding to the target controller (i.e., a target data interface) may be determined according to the updated control in the target page.
In one implementation, the server may determine a data interface (may be referred to as a first data interface) corresponding to the control in the target page, and a data interface included in the target controller, and if a data interface (may be referred to as a data interface to be added) not belonging to the target controller exists in the first data interface, the server may add the data interface to be added 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 data interface comprised by the controller a' comprises: a1, 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 the data interface (which may be referred to as a data interface to be deleted) not belonging to the first data interface exists in the data interfaces included in the target controller, the server may delete the data interface to be deleted, 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, b2, the data interface comprised by the controller a' comprises: a1, a2, a3, the server may delete the data interface a3, and may further determine that the target controller corresponds to the target data interfaces a1 and a 2.
In addition, after determining the target controller corresponding to the target page, the technician may determine the data interface corresponding to the control in the target page (i.e., the first data interface) and the data interface included in the target controller, and if the data interface not belonging to the target controller (i.e., the 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 the data interfaces contained in the target controller are not data interfaces (namely, data interfaces to be deleted) of the first data interface, a technician can delete the data interfaces to be deleted, and then the server can determine the target data interfaces corresponding to the target controller, namely, the corresponding relation between the target controller and the target data interfaces.
In step S403, after determining the target data interface corresponding to the target controller, the server may send the correspondence between the target controller and the target data interface to the client.
Accordingly, the method for updating the page to be displayed by the client based on the received correspondence between the target controller and the target data interface, and the method for updating the page to be displayed by the client are described in detail in the foregoing embodiments, and are not described herein.
Optionally, if the target page is a new page to be generated currently, after step S402, the method may further include the steps of: and sending the hierarchy identification to the client.
Wherein the hierarchy identification is used for representing a menu hierarchy of all pages displayed by the client for a new page to be generated currently.
In one implementation manner, after receiving a request message sent by a client to update a target page, the server may search a corresponding relationship between a locally preset page and the controller, determine whether the locally preset page is recorded with the target page, and if the target page is not recorded, determine that the target page is a new page to be generated currently. The server may then add the controller (i.e., the target controller) to which the new page to be generated corresponds and determine the target data interface to which the target controller corresponds and the hierarchy identification of the new page to be generated.
In another implementation manner, after determining the target controller corresponding to the new page to be generated, the technician may configure a data interface included in the target controller in the server, and determine the hierarchy identification of the new page to be generated according to the updated target page.
Further, the server may send the client a hierarchical identification of the new page to be generated. Accordingly, the client may receive the hierarchy identifier sent by the server, and generate a new page with the menu hierarchy represented by the hierarchy identifier, as the target page, and the method for generating the target page by the client is described in detail in the foregoing embodiment, which is not described herein.
Referring to fig. 5, fig. 5 is a flowchart of an example of a page update method according to an embodiment of the present invention, which may include the following steps:
s501: when the fact that the target page to be updated exists in the client is detected, the server determines a controller corresponding to the target page based on the corresponding relation between the preset page and the controller, and the controller is used as the target controller.
S502: and the server determines a data interface contained in the target controller according to the updated control in the target page, and the data interface is used as a target data interface.
S503: and the server sends the corresponding relation between the target controller and the target data interface to the client.
S504: when the target page corresponding to the target controller is judged to exist, the client determines a control corresponding to the target data interface as a target control.
S505: and the client updates the control in the target page based on the target control to obtain an updated target page.
Referring to fig. 6, fig. 6 is a flowchart of an example of a page update method according to an embodiment of the present invention, which may include the following steps:
s601: when the fact that the target page to be updated exists in the client is detected, the server determines a controller corresponding to the target page based on the corresponding relation between the preset page and the controller, and the controller is used as the target controller.
S602: and the server determines a data interface contained in the target controller according to the updated control in the target page, and the data interface is used as a target data interface.
S603: 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 hierarchy identification of the new page to be generated currently to the client.
Wherein the hierarchy identification is used for representing a menu hierarchy of all pages displayed by the client for a new page to be generated currently.
S604: when it is determined that the target page corresponding to the target controller does not exist, the client generates a new page having the menu hierarchy represented by the hierarchy identification as the target page.
The controls in the generated new page are in one-to-one correspondence with the target data interfaces.
S605: the recording target page corresponds to the target controller.
Corresponding to the method embodiment of fig. 2, referring to fig. 7, fig. 7 is a block diagram of a page updating apparatus provided by 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 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 relation is that the server determines a data interface contained in the target controller according to a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between the preset page and the controller and is used as the target controller for determining.
Optionally, the updating module 702 includes:
the judging sub-module is used for judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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 sub-module 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 sub-module 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 sub-module is used for recording that the target page corresponds to the target controller.
Optionally, the updating module 702 further includes:
the receiving sub-module is used for receiving a hierarchy identification sent by the server, wherein the hierarchy identification is used for representing menu hierarchies of new pages to be generated currently in all pages displayed by the client;
The generation sub-module is specifically configured to generate a new page with the menu hierarchy represented by the hierarchy identifier as the target page.
Corresponding to the method embodiment of fig. 4, referring to fig. 8, fig. 8 is a block diagram of a page updating apparatus provided by the embodiment of the present invention, where the apparatus is applied to a server, and the apparatus includes:
a first determining module 801, configured to determine, when it is detected that a target page to be updated exists in a client, a controller corresponding to the target page based on a preset correspondence between pages and controllers, 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;
and a first sending module 803, configured to send a 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 apparatus 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 a menu hierarchy of a new page to be generated currently in all pages displayed by the client.
Based on the processing, after the server determines the corresponding relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, and further, the updated target page can be obtained.
The embodiment of the present invention also provides a client, as shown in fig. 9, including 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 perform communication with each other through the communication bus 904,
a memory 903 for storing a computer program;
The processor 901 is configured to execute a program stored in the memory 903, and implement the following steps:
receiving a corresponding relation between a target controller and a target data interface, wherein the corresponding relation is sent by a server;
updating the page to be displayed by 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 a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between the preset page and the controller and is used as the target controller for determining.
The embodiment of the present invention also provides a client, as shown in fig. 10, including a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004, where the processor 1001, the communication interface 1002, and the memory 1003 complete communication with each other through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to execute a program stored in the memory 1003, and implement the following steps:
When the fact that a target page to be updated exists in the client is detected, determining a controller corresponding to the target page based on a preset corresponding relation between the page and the controller, and taking the controller as a target controller;
according to the updated control in the target page, determining a data interface contained in the target controller as a target data interface;
and sending the corresponding relation between the target controller and the target data interface to a client so that the client updates a page to be displayed by the client based on the corresponding relation between the target controller and the target data interface.
The communication buses mentioned by the client and the server can be peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) buses or extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) buses. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication among the client, the server and other devices.
The memory may include random access memory (Random Access Memory, RAM) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Based on the processing, after the server determines the corresponding relation between the target controller and the target data interface, the corresponding relation can be sent to the client, the client can determine the control in the target page based on the received corresponding relation between the target controller and the target data interface, namely, the corresponding relation between the target page and the control is determined, and further, the updated target page can be obtained.
In yet another embodiment of the present invention, there is further provided a computer readable storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the page update method applied to a client according to any one of the above embodiments.
In yet another embodiment of the present invention, there is further provided a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the page update method applied to a server as described in any one of the above embodiments.
In yet another embodiment of the present invention, there is further provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the page update method applied to a client as in any of the above embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the page update method of any of the above embodiments applied to a server.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, client, server, computer readable storage medium, computer program product embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant points are found in the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (13)

1. A method for updating a page, the method being applied to a client, the method comprising:
receiving a corresponding relation between a target controller and a target data interface, wherein the corresponding relation is sent by a server;
updating the page to be displayed by 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 a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between a preset page and the controller and is used as the target controller for determining;
the updating the page to be displayed by the client based on the corresponding relation between the target controller and the target data interface includes:
Judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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.
2. The method according to claim 1, wherein the method further comprises:
and if the target page does not exist, generating a new page as the target page, wherein the controls in the generated new page are in one-to-one correspondence with the target data interface.
3. The method of claim 2, wherein after the generating of the new page as the target page, the method further comprises:
and recording that the target page corresponds to the target controller.
4. The method of claim 2, wherein prior to the generating a new page as the target page, the method further comprises:
receiving a hierarchy identification sent by a server, wherein the hierarchy identification is used for representing menu hierarchies of new pages to be generated currently in all pages displayed by the client;
The generating a new page as the target page includes:
a new page having the menu hierarchy represented by the hierarchy identification is generated as the target page.
5. A method for updating a page, the method being applied to a server, the method comprising:
when the fact that a target page to be updated exists in the client is detected, determining a controller corresponding to the target page based on a preset corresponding relation between the page and the controller, and taking the controller as a target controller;
according to the updated control in the target page, determining a data interface contained in the target controller as a target data interface;
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 by the client based on the corresponding relation between the target controller and the target data interface;
the step of updating the page to be displayed by the client based on the corresponding relation between the target controller and the target data interface is executed by the client, and comprises the following steps:
judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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.
6. The method of claim 5, 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 includes:
and sending a hierarchy identification to the client, wherein the hierarchy identification is used for representing menu hierarchies of new pages to be generated currently in all pages displayed by the client.
7. 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 the target page based on the corresponding relation between the preset page and the controller when the target page to be updated exists in the client, and the controller is used as a target controller;
according to the updated control in the target page, determining a data interface contained in the target controller as a target data interface;
Sending the corresponding relation between the target controller and the target data interface to the client;
the client is used for updating a page to be displayed by the client based on the received corresponding relation between the target controller and the target data interface;
the client is specifically configured to determine whether a target page corresponding to the target controller exists according to a preset correspondence between pages 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.
8. A page updating apparatus, the apparatus being 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, which are sent by the server;
the updating module is used for updating the page to be displayed by 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 a control in the updated target page, the data interface is used as the target data interface for determining, and when the target controller detects that the target page to be updated exists in the client, the controller corresponding to the target page is determined based on the corresponding relation between a preset page and the controller and is used as the target controller for determining;
The updating module comprises:
the judging sub-module is used for judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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 sub-module is used for updating the control in the target page based on the target control to obtain an updated target page.
9. A page updating apparatus, the apparatus being applied to a server, the apparatus comprising:
the first determining module is used for determining a controller corresponding to a target page based on a corresponding relation between a preset page and the controller when the target page to be updated exists in the client side, and the controller is used as a target controller;
the second determining module is used for determining a data interface contained in the target controller according to the updated control in the target page and taking the data interface as a target data interface;
the first sending module is used for 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 by the client based on the corresponding relation between the target controller and the target data interface;
The step of updating the page to be displayed by the client based on the corresponding relation between the target controller and the target data interface is executed by the client, and comprises the following steps:
judging whether a target page corresponding to the target controller exists or not according to the corresponding relation between the 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.
10. The client is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-4 when executing a program stored on a memory.
11. The server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the method steps of any of claims 5-6 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-4.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 5-6.
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 CN111125586A (en) 2020-05-08
CN111125586B true 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)

Families Citing this family (2)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066272A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of method for updating pages and device
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN110569097A (en) * 2019-08-26 2019-12-13 北京奇艺世纪科技有限公司 information display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102410329B1 (en) * 2017-08-22 2022-06-20 삼성전자주식회사 Method for providing service update and electronic device supporting the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066272A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of method for updating pages and device
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN110569097A (en) * 2019-08-26 2019-12-13 北京奇艺世纪科技有限公司 information display method and device

Also Published As

Publication number Publication date
CN111125586A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN104978285B (en) Method for developing functions and terminal installation
CN111125586B (en) Page updating method and device
CN109995805B (en) Intelligent robot management method, terminal device and medium
CN108804938B (en) Authority detection method and device, electronic equipment and readable storage medium
CN105431816A (en) Synchronizing device association data among computing devices
CN111581502A (en) Information notification method and device
CN111782728B (en) Data synchronization method, device, electronic equipment and medium
EP3174318B1 (en) Method for realizing resource attribute notification, and common service entity
CN112199210A (en) Data processing method and device based on Internet of things, computer equipment and medium
CN113141405A (en) Service access method, middleware system, electronic device, and storage medium
CN111355765B (en) Network request processing and sending method and device
CN108876309B (en) Starting method and device of flow form, storage medium and electronic equipment
CN110213073B (en) Data flow direction changing method, electronic device, computing node and storage medium
CN110908881B (en) Buried point data transmitting method and device, electronic equipment and computer readable storage medium
KR102631288B1 (en) Subscription server, subscription terminal, information subscription method, and system
CN110879718A (en) maridb upgrading method and device, electronic equipment and storage medium
US20090037493A1 (en) Method and device for updating an object with copyright attribute
CN110321241A (en) A kind of method for restarting and terminal device of application program
CN111880949B (en) Service information processing method, system, device, server and terminal
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
CN108845845B (en) Shortcut key creation method and device, electronic equipment and storage medium
CN110035121B (en) Information processing method and electronic equipment
CN112579682A (en) Data model change notification method and device, electronic device and storage medium
CN110795242A (en) Storage space management method and device, electronic equipment and storage medium
CN105988835A (en) Method for upgrading software and terminal

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