Page information verification method, server, client and system

By dynamically configuring page component configuration information and verification rules, the client and server work together to solve the server load problem caused by invalid requests and achieve efficient page information verification.

CN111984517BActive Publication Date: 2025-09-16BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910423503.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-21
Publication Date
2025-09-16
Estimated Expiration
2039-05-21

AI Technical Summary

Technical Problem

In the existing technology, the client does not verify the user input content after rendering the page, resulting in a large number of invalid requests entering the backend server, increasing the verification load of the backend server, and each additional channel requires redevelopment of verification rules and regression testing, resulting in low verification efficiency.

Method used

Using dynamically configured page component configuration information and verification rules, the client renders the page after receiving the column identification information, and verifies the user input content according to the verification rules sent by the server to reduce invalid requests. The server verifies again and sends a prompt message to the client when necessary.

Benefits of technology

It simplifies the verification process, improves verification efficiency, avoids the need to redevelop verification rules and regression testing due to adding channels, and reduces server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111984517B_ABST
    Figure CN111984517B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, server, client and system for verifying page information. The verification rules used by the client and the server when verifying page information are dynamically configured rather than being hard-coded. Even if a column is added, the client and the server can still use the verification rules to verify the page information. There is no need to redevelop the verification rules, and there is no need to perform regression testing on the new page information. This simplifies the verification process of the server, thereby improving verification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page information verification method, server, client, and system. Background Art

[0002] For each display page, it usually contains multiple component information and its corresponding verification rules. As the page task changes, the component information it contains and its corresponding verification rules will also change. Therefore, when displaying the page, it is necessary not only to dynamically render the page, but also to verify the page information.

[0003] Typically, the client renders the page first and sends the rendered page information to the backend server for verification. Since the client does not verify the page content submitted by the user in the rendered page information, a large number of invalid requests will enter the backend server, resulting in a large verification load on the backend server. In order to reduce invalid requests entering the backend server and reduce the verification load on the backend server, a hard-coded verification rule approach can be adopted. That is, the client and the backend write verification rules according to different channels, so that the page information can be verified through the hard-coded verification rules.

[0004] However, with the hard-coded verification rules approach, each time a channel is added, both the client and the backend server need to re-verify the rules at the same time, and regression testing must also be performed on the new page information, making the verification process complicated and resulting in low verification efficiency. Summary of the Invention

[0005] The embodiments of the present invention provide a page information verification method, a server, a client, and a system, which simplify the verification process during the page information verification process, thereby improving the verification efficiency.

[0006] In a first aspect, an embodiment of the present invention provides a method for verifying page information, which is applied to a server. The method includes:

[0007] Receive a page request message sent by a client, wherein the page request message includes column identification information;

[0008] Sending page component configuration information and verification rules corresponding to the column identification information to the client, so that the client renders the page component configuration information and the verification rules to obtain a display page; the page component configuration information and the verification rules are dynamically configured;

[0009] Receive the verification content sent by the client, and verify the verification content according to the verification rule, wherein the verification content is obtained after the client verifies the content input by the user in the display page according to the verification rule.

[0010] In a possible implementation, before sending the page component configuration information and verification rules corresponding to the column identification information to the client, the method further includes:

[0011] Configure the corresponding page component configuration information and verification rules for each column respectively.

[0012] In a possible implementation, configuring the corresponding page component configuration information and verification rules for each column includes:

[0013] Using rule description language, the corresponding page component configuration information and verification rules are dynamically configured for each column.

[0014] In a possible implementation, after verifying the verification content according to the verification rule, the method further includes:

[0015] If the verification content fails, a prompt message is sent to the client, where the prompt message is used to remind the user that the verification content fails.

[0016] In a second aspect, an embodiment of the present invention provides a method for verifying page information, which is applied to a client. The method includes:

[0017] Sending a page request message to the server, wherein the page request message includes column identification information;

[0018] Receiving page component configuration information and verification rules corresponding to the column identification information sent by the server; the page component configuration information and the verification rules are dynamically configured;

[0019] Rendering the page component configuration information and the verification rules to obtain a display page;

[0020] The content input by the user in the display page is verified according to the verification rules to obtain verification content, and the verification content is sent to the server so that the server verifies the verification content according to the verification rules.

[0021] In a possible implementation, the method further includes:

[0022] Receive a prompt message sent by the server, where the prompt message is used to remind the user that the verification content has failed.

[0023] In a possible implementation, rendering the page component configuration information and the verification rule to obtain a display page includes:

[0024] Using a rule description language, formatting the page component configuration information and the verification rule, respectively, to obtain processed page component configuration information and processed verification rule, wherein the page component configuration information and the verification rule are dynamically configured using the rule description language;

[0025] The processed page component configuration information and the processed verification rules are rendered to obtain the display page.

[0026] In a third aspect, an embodiment of the present invention further provides a server, which may include:

[0027] A receiving unit, configured to receive a page request message sent by a client, wherein the page request message includes column identification information;

[0028] a sending unit, configured to send page component configuration information and verification rules corresponding to the column identification information to the client, so that the client renders the page component configuration information and the verification rules to obtain a display page; the page component configuration information and the verification rules are dynamically configured;

[0029] The receiving unit is further configured to receive the verification content sent by the client;

[0030] The processing unit is configured to verify the verification content according to the verification rule, where the verification content is obtained after the client verifies the content input by the user in the display page according to the verification rule.

[0031] In a possible implementation, the processing unit is further configured to configure corresponding page component configuration information and verification rules for each column.

[0032] In a possible implementation, the processing unit is specifically configured to dynamically configure corresponding page component configuration information and verification rules for each column using a rule description language.

[0033] In a possible implementation, the sending unit is further configured to send a prompt message to the client if the verification content fails, wherein the prompt message is configured to remind the user that the verification content fails.

[0034] In a fourth aspect, an embodiment of the present invention further provides a client, which may include:

[0035] A sending unit, configured to send a page request message to a server, wherein the page request message includes column identification information;

[0036] A receiving unit, configured to receive page component configuration information and verification rules corresponding to the column identification information sent by the server; the page component configuration information and the verification rules are dynamically configured;

[0037] A processing unit, configured to render the page component configuration information and the verification rules to obtain a display page; and verify content input by the user in the display page according to the verification rules to obtain verification content;

[0038] The sending unit is further configured to send the verification content to the server, so that the server verifies the verification content according to the verification rule.

[0039] In a possible implementation, the receiving unit is further configured to receive a prompt message sent by the server, where the prompt message is configured to remind the user that the verification content has failed.

[0040] In one possible implementation, the processing unit is specifically used to use a rule description language to format the page component configuration information and the verification rules respectively to obtain processed page component configuration information and processed verification rules, wherein the page component configuration information and the verification rules are dynamically configured using a rule description language; and the processed page component configuration information and the processed verification rules are rendered to obtain the display page.

[0041] In a fifth aspect, an embodiment of the present invention provides a server, which may include a memory and a processor, wherein:

[0042] The memory is used to store program instructions;

[0043] The processor is used to read the program instructions in the memory and execute the page information verification method described in any possible implementation of the first aspect according to the program instructions in the memory.

[0044] In a sixth aspect, an embodiment of the present invention provides a client, which may include a memory and a processor, wherein:

[0045] The memory is used to store program instructions;

[0046] The processor is used to read the program instructions in the memory and execute the page information verification method described in any possible implementation of the second aspect according to the program instructions in the memory.

[0047] In a seventh aspect, an embodiment of the present invention further provides a page information verification system, which may include:

[0048] The server described in any possible implementation of the third aspect and the client described in any possible implementation of the fourth aspect; or, the server described in any possible implementation of the fifth aspect and the client described in any possible implementation of the sixth aspect.

[0049] In the eighth aspect, an embodiment of the present invention also provides a computer storage medium, comprising instructions, which, when executed by one or more processors, enable the server to execute the page information verification method described in any possible implementation of the first aspect above; or when the instructions are executed by one or more processors, enable the client to execute the page information verification method described in any possible implementation of the second aspect above.

[0050] It can be seen from this that the page information verification method, server, client and system provided by the embodiments of the present invention, the verification rules used by the client and the server when verifying the page information are dynamically configured rather than directly hard-coded. Even if a column is added, the client and the server can still use the verification rules to verify the page information. There is no need to redevelop the verification rules, and there is no need to perform regression testing on the new page information, which simplifies the server's verification process and improves verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 An application scenario diagram provided by an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of a flow chart of a method for verifying page information provided by an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of a display page provided by an embodiment of the present invention;

[0055] Figure 4 A schematic diagram of a flow chart of another method for verifying page information provided by an embodiment of the present invention;

[0056] Figure 5A schematic diagram of the structure of a server provided in an embodiment of the present invention;

[0057] Figure 6 A schematic diagram of the structure of a client provided by an embodiment of the present invention;

[0058] Figure 7 A schematic diagram of the structure of another server provided in an embodiment of the present invention;

[0059] Figure 8 A schematic diagram of the structure of another client provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0061] In the embodiments of the present invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. A and B can be singular or plural. In the text descriptions of the present invention, the character " / " generally indicates that the associated objects are in an "or" relationship.

[0062] Figure 1 An application scenario diagram provided for an embodiment of the present invention is applied to a page display system. For example, the page display system may include a server and at least one terminal device, wherein at least one client is provided in the terminal device, and the server can exchange data with the client to complete the page information verification process. However, during the entire page information verification process, a hard-coded verification rule method is adopted. However, for each additional channel, both the client and the backend server need to redevelop the verification rules, and regression testing must be performed on the new page information, which complicates the verification process and leads to low verification efficiency.

[0063] In order to reduce and simplify the verification process of the server, thereby improving the verification efficiency, an embodiment of the present invention provides a verification method for page information. After receiving the page request message from the client, the server sends the page component configuration information and verification rules corresponding to the column identification information included in the page request message to the client, so that the client renders the page component configuration information and verification rules to obtain a display page; the page component configuration information and verification rules are dynamically configured; then, the verification content sent by the client is received, and the verification content is verified according to the verification rules. The verification content is obtained after the client verifies the content entered by the user in the display page according to the verification rules. It can be seen that in the embodiment of the present invention, the verification rules used by the client and the server are dynamically configured rather than directly hard-coded. Even if a column is added, the client and the server can still use the verification rules to verify the page information. There is no need to redevelop the verification rules, and there is no need to perform regression testing on the new page information. This simplifies the verification process of the server, thereby improving the verification efficiency.

[0064] It can be understood that in an embodiment of the present invention, one page corresponds to one column, that is, one page can be displayed through one column. If the page components included in a page are different, the corresponding columns are different, or even if the page components included in a page are the same, but the display order is different, the corresponding columns are also different.

[0065] The page display method provided by the embodiment of the present invention will be described in detail below through the following embodiments.

[0066] Figure 2 A flow chart of a method for verifying page information provided by an embodiment of the present invention is provided. For example, see Figure 2 As shown, the verification method of the page information may include:

[0067] S201: The client sends a page request message to the server.

[0068] The page request message includes column identification information. For example, the column identification information can be a column identifier or a column serial number, as long as it can uniquely identify the column. Here, the embodiment of the present invention does not further limit the specific column identification information.

[0069] Before verifying the page information, the client sends a page request message to the server. The page request message may include column identification information. After receiving the page request message including the column identification information, the server sends the page component configuration information and verification rules corresponding to the column identification information to the client, that is, executes the following S202:

[0070] S202: The server sends the page component configuration information and verification rules corresponding to the column identification information to the client.

[0071] For example, the page component configuration information may be used to indicate the content of the page component in the column, the display position of the page component, the stacking relationship of the page components, etc. The verification rule can be understood as information for verifying the content of the page component.

[0072] Among them, the page component configuration information and verification rules are dynamically configured rather than directly hard-coded. Even if a column is added, the client and server can still use the verification rules corresponding to the column identification information to verify the page information. There is no need to redevelop the verification rules, and there is no need to perform regression testing on the new page information. This simplifies the server verification process and thus improves verification efficiency.

[0073] After receiving a page request message including column identification information, the server may first obtain the page component configuration information and verification rules corresponding to the column identification information. Optionally, when obtaining the page component configuration information and verification rules corresponding to the column identification information, since the server pre-configures the corresponding page component configuration information and verification rules for each column, after receiving the column identification information, the server searches for the page component configuration information and verification rules corresponding to the column identification information based on the column identification information, thereby obtaining the page component configuration information and verification rules corresponding to the column identification information.

[0074] Optionally, when configuring the corresponding page component configuration information and verification rules for each column respectively, a rule description language can be used to dynamically configure the corresponding page component configuration information and verification rules for each column respectively. Of course, other description languages ​​can also be used to dynamically configure the corresponding page component configuration information and verification rules for each column respectively. Here, the embodiment of the present invention only uses the example of using a rule description language to dynamically configure the corresponding page component configuration information and verification rules for each column respectively, but it does not mean that the embodiment of the present invention is limited to this.

[0075] It should be noted that in the embodiments of the present invention, by adopting a rule description language, interaction can be carried out in a specific format, covering all components of the front-end authoring page, and supporting dynamic rendering of the page, including the modification of the component order and the generation of the stacking relationship of the components, and supporting the dynamic addition and removal of interfaces. Only simple configuration modifications are required to quickly modify the page, and dynamic calling of the interface URL is supported, which greatly reduces front-end development and testing resources, simplifies the server verification process, and thus improves verification efficiency.

[0076] For example, when the server pre-configures the corresponding page component configuration information and verification rules for each column, please refer to Table 1 below. Table 1 is a configuration interface for page component configuration information and verification rules provided by an embodiment of the present invention, wherein the columns, styles, types, field names, field codes, and sequences in Table 1 can be understood as page component configuration information, and the field configuration can be understood as verification rules, i.e., information used to verify the input content of the page component.

[0077] Table 1

[0078]

[0079] After determining the configuration interface of the page component configuration information and verification rules according to Table 1 above, the rule description language can be used to dynamically configure the corresponding page component configuration information and verification rules for each column. For example, taking a column including a list title component, a list subtitle component, a cover image component, and an add product component as an example, the rule description language is used to describe how to dynamically configure the corresponding page component configuration information and verification rules for the list title component, the list subtitle component, the cover image component, and the add product component.

[0080] For example, using the rule description language, the page component configuration information and validation rules for the list title component can be described as follows:

[0081] {"child":[],"code":"mainTitle","config":"{\"len\":\"1-18\",\"placeHolder\":\"The word limit is 1 to 18\",\"tips\":\"The recommended title is 1-18 words\"}","dependFieldId":0,"id":710,"isRepository":0,"name":"List title","operator":"luoqing3","position":0,"positionName":"","privateId":710,"remark":"","required":1,"sort":1,"status":1,"style":52,"styleName":"","subPosition":10,"subPositionName":"","superFieldId":0,"type":1,"typeName":"","updateTime":1528698343000}.

[0082] Using the rule description language, the page component configuration information and validation rules for the dynamically configured list subtitle component can be described as follows:

[0083] {"child":[],"code":"subTitle","config":"{\"len\":\"1-6\",\"placeHolder\":\"Please fill in the subtitle of the list\",\"tips\":\"The recommended title is 1-6 words\"}","dependFieldId":0,"id":1348,"isRepository":0,"name":"Subtitle of the list","operator":"shenzeyu","position":28,"positionName":"Ranking list","privateId":0,"remark":"","required":0,"sort":2,"status":1,"style":52,"styleName":"Ranking list","subPosition":10,"subPositionName":"Ranking list","superFieldId":0,"type":1,"typeName":"Plain text","updateTime":1539655201204}.

[0084] Using the rule description language, the page component configuration information and validation rules for the cover image component can be described as follows:

[0085] {"child":[],"code":"img","config":"{\"r\":\"5:2\",\"size\":\"0-5120\",\"min\":\"750*300\",\"tips\":\"Style requirements: Pictures must not have watermarks, text, logos, etc.; Size requirements: Picture width: height [5:2], limited to 750*300 pixels or above, and size limited to less than 5M. \"}","dependFieldId":0,"id":711,"isRepository":0,"name":"Cover Image","operator":"luoqing3","position":0,"positionName":"","privateId":711,"remark":"","required": 1,"sort":3,"status":1,"style":52,"styleName":"","subPosition":10,"subPositionName":"","superFieldId":0,"type":2,"typeName":"","updateTime":1524051435000}.

[0086] Using the rule description language, the page component configuration information and verification rules for dynamically configuring the added product component can be described as follows:

[0087] {"child":[{"child":[],"code":"skuId","config":"{\"placeHolder\":\"Please enter the product link or product sku\"}","dependFieldId":0,"id":714,"isRepository":0,"name":"Product link","operator":"luoqing3","position":0,"positionName":"","privateId":714,"remark":"","required":1,"sort":1,"status":1,"style":52,"styleName":"","subPosition":10,"subPositionName":"","superFieldId":642,"type":4,"typeName":"","updateTime":1524051435000}。

[0088] It is understandable that in the embodiment of the present invention, only the example of a column including a list title component, a list subtitle component, a cover image component and an added product component is used for illustration, but it does not mean that the embodiment of the present invention is limited to this.

[0089] After dynamically configuring the corresponding page component configuration information and verification rules for each column, if a page request message including column identification information is received from the client, the page component configuration information and verification rules corresponding to the column identification information can be searched based on the column identification information. After obtaining the page component configuration information and verification rules corresponding to the column identification information, the page component configuration information and verification rules corresponding to the column identification information are sent to the client.

[0090] S203: The client renders the page component configuration information and verification rules to obtain a display page.

[0091] After receiving the page component configuration information and verification rules corresponding to the column identification information, the client can render the page component configuration information and verification rules through rendering technology to obtain a rendered display page.

[0092] Optionally, when rendering the page component configuration information and verification rules to obtain the display page, a rule description language can be used to format the page component configuration information and verification rules respectively to obtain the processed page component configuration information and the processed verification rules; and the processed page component configuration information and the processed verification rules can be rendered to obtain the display page.

[0093] For example, please refer to the relevant description in S202 above. Also, take a column including a list title component, a list subtitle component, a cover image component and an add product component as an example for explanation. Then, the page component configuration information and verification rules corresponding to the list title component, the list subtitle component, the cover image component and the add product component can be rendered to obtain a display page. For example, please refer to Figure 3 As shown, Figure 3 A schematic diagram of a display page provided by an embodiment of the present invention.

[0094] Combine Figure 3It can be seen that the display page includes a list title component, a list subtitle component, a cover image component and an add product component, each component has its own corresponding user operation area, and each component has its own corresponding user operation area corresponding to the verification rules for inputting content; the user can enter the corresponding content in the user operation area. For example, the verification rule corresponding to the content input in the user operation area corresponding to the list title component can be: it is recommended that the title be within 1-18 characters; the verification rule corresponding to the content input in the user operation area corresponding to the list subtitle component can be: it is recommended that the title be within 1-6 characters; the verification rule corresponding to the content input in the user operation area corresponding to the cover image component can include: style requirements: the image must not have watermarks, text, logos, etc.; size requirements: the image width and height is 5:2, the length and width pixels are limited to 750*300 or more, and the size is limited to less than 5M; the verification rule corresponding to the content input in the user operation area corresponding to the add product component can be: the number of added products is between 6 and 25.

[0095] After rendering the page component configuration information and the verification rules to obtain the display page, the display page will be output to the user so that the user can operate in the user operation area on the display page. If the user inputs content in the user operation area, the following S204 is executed:

[0096] S204: The client verifies the content input by the user in the displayed page according to the verification rules, obtains the verification content, and sends the verification content to the server.

[0097] It can be understood that in an embodiment of the present invention, after receiving the content entered by the user in the user operation area, the client does not directly send the content entered by the user in the user operation area to the client for verification, but first verifies the content entered by the user in the user operation area, and sends the verified content to the server for verification. This can reduce invalid requests entering the server, thereby reducing the verification load of the server.

[0098] S205: The server verifies the verification content according to the verification rules.

[0099] After receiving the verified content from the client, the server may further re-verify the verified content according to the verification rules, thereby improving the accuracy of the content input by the user in the user operation area.

[0100] It can be seen from this that the verification rules used by the client and the server to verify page information are dynamically configured rather than directly hard-coded. Even if a column is added, the client and the server can still use the verification rules to verify the page information. There is no need to redevelop the verification rules, and there is no need to perform regression testing on the new page information. This simplifies the server's verification process and thus improves verification efficiency.

[0101] based on Figure 2 In the embodiment shown, after the server verifies the verification content according to the verification rules, it can obtain the verification result. If the verification result indicates that the verification content has passed the verification, the column corresponding to the verification content can be stored in the material library; on the contrary, if the verification result indicates that the verification content has failed the verification, a prompt message can be sent to the client to prompt the user that the verification has passed. For example, see Figure 4 As shown, Figure 4 A flowchart of another method for verifying page information provided by an embodiment of the present invention.

[0102] S401. If the verification content fails, the server sends a prompt message to the client, where the prompt message is used to remind the user that the verification content fails.

[0103] For example, when a malicious user tampers with column identification information and submits input content, due to differences in page component configuration information and data structures, the server will fail to verify the content according to the verification rules, i.e., the content verification fails. When the content verification fails, the server can send a prompt message to the client via text, voice, or images. Here, the embodiments of the present invention only use these three prompt methods as examples for illustration, but the embodiments of the present invention are not limited to these.

[0104] It is understandable that when the verification content fails, a prompt message can be sent to the client to prompt the user that the verification content fails, so that the user can re-enter the content to ensure the accuracy of the content entered by the user.

[0105] Figure 5 A schematic diagram of the structure of a server 50 provided in an embodiment of the present invention is provided. Figure 5 As shown, the server 50 may include:

[0106] The receiving unit 501 is configured to receive a page request message sent by a client, where the page request message includes column identification information.

[0107] The sending unit 502 is used to send the page component configuration information and verification rules corresponding to the column identification information to the client, so that the client renders the page component configuration information and verification rules to obtain a display page; the page component configuration information and verification rules are dynamically configured.

[0108] The receiving unit 501 is further configured to receive verification content sent by the client.

[0109] The processing unit 503 is configured to verify the verification content according to the verification rules. The verification content is obtained after the client verifies the content input by the user in the displayed page according to the verification rules.

[0110] Optionally, the processing unit 503 is further configured to configure corresponding page component configuration information and verification rules for each column.

[0111] Optionally, the processing unit 503 is specifically configured to adopt a rule description language to dynamically configure corresponding page component configuration information and verification rules for each column.

[0112] Optionally, the sending unit 502 is further configured to send a prompt message to the client if the verification content fails, where the prompt message is used to remind the user that the verification content fails.

[0113] The server 50 shown in the embodiment of the present invention can execute the above Figure 2-Figure 4 The technical solution of the method for verifying page information on the server 50 side in the embodiment shown, its implementation principle and beneficial effects are similar to those of the method for verifying page information on the server 50 side, and will not be repeated here.

[0114] Figure 6 A schematic diagram of the structure of a client 60 provided in an embodiment of the present invention is provided. Figure 6 As shown, the client 60 may include:

[0115] The sending unit 601 is configured to send a page request message to a server, where the page request message includes column identification information.

[0116] The receiving unit 602 is used to receive the page component configuration information and verification rules corresponding to the column identification information sent by the server; the page component configuration information and verification rules are dynamically configured.

[0117] The processing unit 603 is configured to render the page component configuration information and the verification rules to obtain a display page; and verify the content input by the user in the display page according to the verification rules to obtain verification content.

[0118] The sending unit 601 is further configured to send the verification content to the server, so that the server verifies the verification content according to the verification rules.

[0119] Optionally, the receiving unit 602 is further configured to receive a prompt message sent by the server, where the prompt message is used to remind the user that the content verification has failed.

[0120] Optionally, the processing unit 603 is specifically used to use a rule description language to format the page component configuration information and the verification rules respectively to obtain processed page component configuration information and processed verification rules, wherein the page component configuration information and the verification rules are dynamically configured using the rule description language; and the processed page component configuration information and the processed verification rules are rendered to obtain a display page.

[0121] The client 60 shown in the embodiment of the present invention can execute the above Figure 2-Figure 4 The technical solution of the method for verifying page information on the client 60 side in the embodiment shown, its implementation principle and beneficial effects are similar to those of the method for verifying page information on the client 60 side, and will not be repeated here.

[0122] Figure 7 A schematic diagram of the structure of another server 70 provided in an embodiment of the present invention is provided. Figure 7 As shown, the server 70 may include a memory 702 and a processor 701, wherein:

[0123] The memory 702 is used to store program instructions;

[0124] The processor 701 is used to read the program instructions in the memory 702 and execute the above-mentioned Figure 2-Figure 4 The technical solution of the method for verifying page information on the server 70 side in the embodiment shown, its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the method for verifying page information on the server 70 side, and will not be repeated here.

[0125] Figure 8 A schematic diagram of another client 80 provided in an embodiment of the present invention, for example, see Figure 8 As shown, the client 80 may include a memory 802 and a processor 801, wherein:

[0126] The memory 802 is used to store program instructions;

[0127] The processor 801 is used to read the program instructions in the memory 802 and execute the above-mentioned Figure 2-Figure 4The technical solution of the method for verifying page information on the client 80 side in the embodiment shown, its implementation principle and beneficial effects are similar to those of the method for verifying page information on the client 80 side, and will not be repeated here.

[0128] The embodiment of the present invention also provides a page information verification system, including the above Figure 5 The server in the embodiment shown and the above Figure 6 The client in the embodiment shown; or, Figure 7 The server in the embodiment shown and the above Figure 8 The implementation principle and beneficial effects of the client in the illustrated embodiment are similar to those of the page information verification method, and will not be described in detail here.

[0129] The embodiment of the present invention also provides a computer storage medium including instructions, which, when executed by one or more processors, causes the server to execute the above Figure 2-Figure 4 The technical solution of the verification method of the page information on the server side in the embodiment shown; or when the instruction is executed by one or more processors, the client executes the above Figure 2-Figure 4 The technical solution of the method for verifying page information on the client side in the embodiment shown, its implementation principle and beneficial effects are similar to those of the method for verifying page information, and will not be repeated here.

[0130] The embodiment of the present invention further provides a chip, on which a computer program is stored, and when the computer program is executed by a processor, the above Figure 1-Figure 3 The technical solution of the dynamic loading method of the plug-in in the illustrated embodiment, its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the dynamic loading method of the plug-in, and will not be repeated here.

[0131] In the above embodiments, the processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software module may be located in a storage medium well-known in the art, such as random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in a memory, and the processor reads instructions from the memory and, in conjunction with its hardware, completes the steps of the above methods.

[0132] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0134] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for verifying page information, characterized in that: Applied to a server, the method includes: Dynamically configure corresponding page component configuration information and verification rules for each component in each column; the page component configuration information is used to at least indicate the content of the page component in the column, the display position of the page component, and the stacking relationship of the page component; Receive a page request message sent by a client, wherein the page request message includes column identification information; Sending page component configuration information and verification rules corresponding to the column identification information to the client, so that the client uses a rule description language to format the page component configuration information and the verification rules respectively to obtain processed page component configuration information and processed verification rules, and rendering the processed page component configuration information and the processed verification rules to obtain a display page; the page component configuration information and the verification rules are dynamically configured; Receive the verification content sent by the client, and verify the verification content according to the verification rule, wherein the verification content is obtained after the client verifies the content input by the user in the display page according to the verification rule.

2. The method according to claim 1, characterized in that The page component configuration information and verification rules corresponding to each component in each column are dynamically configured, including: Using rule description language, the corresponding page component configuration information and verification rules are dynamically configured for each component in each column.

3. The method according to claim 1 or 2, characterized in that After verifying the verification content according to the verification rule, the method further includes: If the verification content fails, a prompt message is sent to the client, where the prompt message is used to remind the user that the verification content fails.

4. A method for verifying page information, characterized in that: Applied to a client, the method includes: Sending a page request message to the server, wherein the page request message includes column identification information; receiving page component configuration information and verification rules corresponding to the column identification information sent by the server; the page component configuration information and the verification rules are dynamically configured; wherein the server has pre-dynamically configured corresponding page component configuration information and verification rules for each component in each column; the page component configuration information is used to at least indicate the content of the page components in the column, the display position of the page components, and the stacking relationship of the page components; Using a rule description language, formatting the page component configuration information and the verification rules respectively to obtain processed page component configuration information and processed verification rules; Rendering the processed page component configuration information and the processed verification rules to obtain a display page; The content input by the user in the display page is verified according to the verification rules to obtain verification content, and the verification content is sent to the server so that the server verifies the verification content according to the verification rules.

5. The method according to claim 4, characterized in that The method further comprises: Receive a prompt message sent by the server, where the prompt message is used to remind the user that the verification content has failed.

6. The method according to claim 4 or 5, characterized in that The page component configuration information and the verification rules are dynamically configured using a rule description language.

7. A server, characterized in that: include: A processing unit, configured to dynamically configure corresponding page component configuration information and verification rules for each component in each column; The page component configuration information is used to at least indicate the content of the page components in the column, the display position of the page components, and the stacking relationship of the page components; A receiving unit, configured to receive a page request message sent by a client, wherein the page request message includes column identification information; a sending unit, configured to send page component configuration information and verification rules corresponding to the column identification information to the client, so that the client uses a rule description language to format the page component configuration information and the verification rules, respectively, to obtain processed page component configuration information and processed verification rules, and render the processed page component configuration information and the processed verification rules to obtain a display page; the page component configuration information and the verification rules are dynamically configured; The receiving unit is further configured to receive the verification content sent by the client; The processing unit is further configured to verify the verification content according to the verification rule, where the verification content is obtained after the client verifies the content input by the user in the display page according to the verification rule.

8. The server according to claim 7, wherein: The processing unit is specifically used to adopt a rule description language to dynamically configure the corresponding page component configuration information and verification rules for each component in each column.

9. The server according to claim 7 or 8, characterized in that The sending unit is further configured to send a prompt message to the client if the verification content fails, wherein the prompt message is configured to remind the user that the verification content fails.

10. A client, characterized in that: include: A sending unit, configured to send a page request message to a server, wherein the page request message includes column identification information; a receiving unit, configured to receive page component configuration information and verification rules corresponding to the column identification information sent by the server; the page component configuration information and the verification rules are dynamically configured; wherein the server has pre-dynamically configured corresponding page component configuration information and verification rules for each component in each column; the page component configuration information is used to at least indicate the content of the page components in the column, the display position of the page components, and the stacking relationship of the page components; a processing unit configured to format the page component configuration information and the verification rules using a rule description language to obtain processed page component configuration information and processed verification rules; render the processed page component configuration information and the processed verification rules to obtain a display page; and verify content input by a user on the display page according to the verification rules to obtain verification content; The sending unit is further configured to send the verification content to the server, so that the server verifies the verification content according to the verification rule.

11. The client according to claim 10, wherein: The receiving unit is further configured to receive a prompt message sent by the server, wherein the prompt message is configured to remind the user that the verification content has failed.

12. The client according to claim 10 or 11, characterized in that: The page component configuration information and the verification rules are dynamically configured using a rule description language.

13. A server, characterized in that: including a memory and a processor, wherein: The memory is used to store program instructions; The processor is configured to read program instructions in the memory and execute the page information verification method according to any one of claims 1 to 3 according to the program instructions in the memory.

14. A client, characterized in that: including a memory and a processor, wherein: The memory is used to store program instructions; The processor is configured to read program instructions in the memory and execute the page information verification method according to any one of claims 4 to 6 according to the program instructions in the memory.

15. A page information verification system, characterized in that: include: The server according to any one of claims 7 to 9 and the client according to any one of claims 10 to 12; Or, the server as described in claim 13 and the client as described in claim 14.

16. A computer storage medium comprising instructions, characterized in that When the instruction is executed by one or more processors, the server executes the page information verification method described in any one of claims 1-3; or when the instruction is executed by one or more processors, the client executes the page information verification method described in any one of claims 4-6.

Citation Information

Patent Citations

  • Method for verifying form control and device

    CN101576823A