Network application display method, device, and computer equipment
By introducing jump information tables and dynamic jump activity nodes in web applications, the problem of low update efficiency of web applications in the existing technology is solved, and the effect of users who can update without quitting is achieved, and different permission users are provided. the active node logic.
Patent Information
- Application Number
- CN202211583935.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-10
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-12-10
AI Technical Summary
Existing web applications need to reupdate the entire web application when the sub-activity is updated, resulting in inefficient updates and interruption of user usage.
By introducing a jump information table in the web application, dynamically jumping the active nodes according to user permissions, the jump information table associated with the updated active nodes is realized, so that users can complete the update by quitting the web application, and the jump information table is used to update the update. Diversion of users with different permissions.
It improves the efficiency of updates of web applications, and users can complete updates without quitting the web application, and realizes logical diversion of active nodes for users with different permissions.
Smart Images

Figure CN115904444B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network applications, and in particular to a display method, apparatus, computer equipment, storage medium and computer program product for network applications. Background Art
[0002] With the development of the digital age, web applications have been booming, and people use web applications to communicate or obtain various activities.
[0003] In order to speed up the development of web applications, in related technologies, web applications are directly launched after development, so that users can enter the activities after obtaining the web application, and jump to the display according to the fixed jump logic. If one of the sub-activities needs to be updated, the entire web application needs to be updated again. Among them, the sub-activity is an activity link in the web application. For example, in the process of a web application, the first step is to enter the question-answering step. After the user completes the question, the answer analysis step is entered, and then the lucky draw step is entered.
[0004] Since it is a whole update of the web application, the web application update efficiency is slow. For example, the web application includes three sub-activities. When a sub-activity needs to be updated, the web application needs to be updated and then put online again. Summary of the invention
[0005] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for displaying a web application that can improve update efficiency in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for displaying a web application. The method comprises:
[0007] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0008] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0009] Query the jump information table for a jump activity node corresponding to the permission information;
[0010] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0011] In one embodiment, the method further comprises:
[0012] In the case that it is found that the target active node has a jump information table, query whether the jump information table is accessible;
[0013] In the case where the jump information table is inaccessible, requesting the jump information table corresponding to the target active node from the server;
[0014] Querying the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0015] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0016] In one embodiment, the method further comprises:
[0017] In the case that it is found that the target active node does not have a jump information table, querying whether the target active node has a next active node;
[0018] When it is found that the target active node has a next active node, a request is made to a service for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
[0019] In one embodiment, obtaining permission information corresponding to the current user includes:
[0020] Sending a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier;
[0021] Receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0022] In one embodiment, the method further comprises:
[0023] In case of receiving no-authorization information sent by the server in response to the permission information request, displaying a permission information collection page;
[0024] In response to the permission information submission instruction, the permission data inputted for the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data;
[0025] Receive the authority information corresponding to the current user sent by the server.
[0026] In one embodiment, before querying whether a jump information table exists for the target activity node in response to a jump instruction from a user, the method further includes:
[0027] In response to the instruction to add the target active node, display the permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item;
[0028] In response to an instruction to add a correspondence between permission information and jump activity nodes, the correspondence between permission information and jump activity nodes is saved in a jump information table corresponding to the target activity node using the identification information of the target activity node as a primary key.
[0029] In a second aspect, the present application also provides a display device for a web application. The device comprises:
[0030] A first response module, configured to query, in response to a jump instruction for a target activity node in a web application, whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0031] An acquisition module, used for acquiring permission information corresponding to the current user when it is found that the target activity node has a jump information table;
[0032] A first node query module, used to query the jump information table for a jump activity node corresponding to the permission information;
[0033] The first display module is used to request the page information corresponding to the jump activity node from the server and display the page information returned by the server.
[0034] In one embodiment, the device further comprises:
[0035] An access query module, when it is found that the target active node has a jump information table, queries whether the jump information table is accessible;
[0036] A request module, configured to request the jump information table corresponding to the target active node from the server when the jump information table is inaccessible;
[0037] A second node query module, used to query the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0038] The second display module is used to request the page information corresponding to the jump activity node from the server and display the page information returned by the server.
[0039] In one embodiment, the device further comprises:
[0040] A third node query module is used to query whether the target active node has a next active node when it is found that the target active node does not have a jump information table;
[0041] The third display module is used to request the page information corresponding to the next active node from the service when it is found that the target active node has a next active node, and display the page information returned by the server after receiving it.
[0042] In one embodiment, the acquisition module specifically includes:
[0043] A query unit, configured to, when it is found that the target activity node has a jump information table, send a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier;
[0044] The receiving unit is configured to receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0045] In one embodiment, the above device further comprises:
[0046] an unauthorized receiving module, configured to display a permission information collection page when receiving unauthorized information sent by the server in response to the permission information request;
[0047] a collection module, configured to send the permission data input on the permission information collection page to the server in response to the permission information submission instruction, so that the server determines the permission information corresponding to the current user according to the permission data;
[0048] The permission information receiving module is used to receive the permission information corresponding to the current user sent by the server.
[0049] In one embodiment, the device further comprises:
[0050] A second response module, configured to display permission jump configuration items of the target activity node in response to an instruction to add the target activity node; the permission jump configuration items include permission information configuration items and jump activity node configuration items;
[0051] The third response module is used to add an instruction in response to the correspondence between the permission information and the jump activity node, using the identification information of the target activity node as the primary key, and save the correspondence between the permission information and the jump activity node to the jump information table corresponding to the target activity node.
[0052] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0053] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0054] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0055] Query the jump information table for a jump activity node corresponding to the permission information;
[0056] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0057] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0058] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0059] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0060] Query the jump information table for a jump activity node corresponding to the permission information;
[0061] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0062] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0063] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0064] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0065] Query the jump information table for a jump activity node corresponding to the permission information;
[0066] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0067] With the web application display method, apparatus, computer equipment, storage medium and computer program product, after a user enters a web application, when the web application is updated, the jump information table of the activity node associated with the updated activity node is updated, so that the user can complete the update of the web application without exiting the web application, thereby improving the update efficiency of the web application. In addition, the users can be diverted through the jump information table, so that different activity node jump logics can be implemented for users with different permissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of an application environment of a webpage application display method in an embodiment;
[0069] Figure 2 A schematic diagram of a flow chart of a webpage application display method in one embodiment;
[0070] Figure 3 It is a flowchart of a webpage application display method in another embodiment;
[0071] Figure 4 It is a schematic diagram of a structural block diagram of a display device for a web page application in one embodiment;
[0072] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0074] In the related art, the overall logic of a web application is usually developed and then directly put online. If a certain logic needs to be updated, the logic of the web application is modified and then reloaded. This requires some users who have entered the web page to exit the web application and re-enter before they can use the updated web application. On the one hand, this update method is inefficient, and on the other hand, this update method will interrupt users' use of the web application.
[0075] Based on this, the present application proposes a method for displaying a web application, which is applied to a terminal device. The terminal device responds to a jump instruction for a target activity node in a web application, and queries whether a jump information table corresponding to the target node is accessible. The web application includes multiple activity nodes, each activity node is a sub-activity of the web application, and the jump information table is used to store the correspondence between permission information and nodes. When the terminal device finds that the jump information table corresponding to the target node is accessible, it obtains the permission information corresponding to the current user, and queries the jump node corresponding to the permission information in the jump information table. The terminal device requests the page information corresponding to the jump node from the service, and displays the page information returned by the server.
[0076] Through the method of the present application, a web application is divided into multiple active nodes. When a node needs to be updated, the update of the web application is completed by updating the jump information table corresponding to the node. For example, the B1 node after the A node needs to be updated, and the B1 node is updated to obtain the B2 node. Before the update, the A node directly jumps to the B1 node. After the update, the A node jumps to the B2 node through the jump information table, thereby completing the update of the web application.
[0077] The webpage application display method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal device responds to the jump instruction for the target activity node in the web application, and queries whether the jump information table corresponding to the target node is accessible. Among them, the web application includes multiple activity nodes, each activity node is a sub-activity of the web application, and the jump information table is used to store the corresponding relationship between the permission information and the node. When the terminal device finds that the jump information table corresponding to the target node is accessible, it obtains the permission information corresponding to the current user and queries the jump node corresponding to the permission information in the jump information table. The terminal device requests the page information corresponding to the jump node from the service, and displays the page information returned by the server. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0078] In one embodiment, Figure 2 As shown, a method for displaying a web application is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:
[0079] Step 201: In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists for the target activity node.
[0080] The web application includes a plurality of activity nodes, each of which is used to represent a sub-activity of the web application. The jump information table is used to store the corresponding relationship between the permission information and the activity node.
[0081] Specifically, when a web application is generated, each active node of the web application and the jump logic between active nodes are pre-set. When a user uses a terminal device to enter the web application, if the terminal device detects the user's jump instruction for a certain active node, it queries whether there is a corresponding jump information table for the active node. If the jump information table is found to exist, it means that there are multiple jump logics for the active node. According to the different permission information corresponding to the user, the active node can jump to different nodes. If the terminal device finds that there is no jump information table (the jump information table corresponding to the active node is not found), it means that there is only one jump logic for the active node, and the node to which the active node jumps is the same for different permission information corresponding to the user.
[0082] Step 203: When the jump information table corresponding to the target activity node is found, the authority information corresponding to the current user is obtained.
[0083] The current user refers to the user who logs in using the terminal device. The permission information can be a permission identifier or a user identifier.
[0084] Specifically, if the terminal device determines that the target activity node has a corresponding jump information table, it means that the activity node has multiple jump logics. According to the different permission information corresponding to the user, the activity node can jump to different nodes. The target activity node needs to be diverted according to the user's permission. According to the current jump information table, the jump activity node to jump to can be determined according to the permission information corresponding to the current user. When the terminal device queries that the target activity node has a corresponding jump information table, the permission information corresponding to the current user is obtained according to the permission information pre-authorized by the current user, or the permission information corresponding to the current user is obtained through the content input by the current user.
[0085] Step 205: Query the jump information table for the jump activity node corresponding to the permission information.
[0086] Specifically, after the terminal device obtains the permission information of the current user, it searches for the activity node corresponding to the permission information of the user in the jump information table corresponding to the target activity node, and uses the searched activity node as the jump activity node corresponding to the permission information.
[0087] In one embodiment, the authority information is the user's identification information, and the jump information table is the correspondence between the active node and the user identification. The active node and the user identification are in a one-to-many relationship, where one node corresponds to multiple user identifications and one user identification corresponds to one node.
[0088] In one embodiment, the permission information is a permission identifier, and the jump information table is a correspondence between nodes and permission identifiers. The nodes and permission identifiers are in a one-to-one correspondence, where one node corresponds to one permission identifier, and one permission identifier corresponds to one node.
[0089] Step 207: request the service to jump to the page information corresponding to the active node, and display the page information returned by the server.
[0090] Specifically, after the terminal device determines the jump activity node after the target activity node according to the user's permission information, it requests the server for the page information corresponding to the jump activity node with the node identifier of the jump activity node that has been queried. The server queries the page information corresponding to the node identifier according to the node identifier of the jump activity node sent by the terminal device, and sends the queried page information to the terminal device. After the terminal device receives the page information returned by the server, it displays the page information corresponding to the jump activity node, and completes the jump to the target node.
[0091] In this embodiment, on the one hand, after the user enters the web application, when the web application is updated, the jump information table of the activity node associated with the updated activity node is updated, so that the user can complete the update of the web application without exiting the web application, thereby improving the update efficiency of the web application. On the other hand, users with different permissions are divided through the jump information table, so that different activity node jump logics are implemented for users with different permissions.
[0092] In one embodiment, the method further includes:
[0093] Step 209: When it is found that the target active node has a jump information table, query whether the jump information table is accessible.
[0094] Specifically, when the device queries that there is a jump information table for the target active node, it indicates that there are multiple jump logics for the active node. According to different permission information corresponding to the user, the active node can jump to different nodes. At this time, by querying whether the jump information table is accessible, it is determined whether the jump logic between the active node and other active nodes is updated. For example, through the node identifier of each active node in the jump information table, the server is requested for page information of the corresponding active node to determine whether the server has a response that meets the requirements. If a response that meets the requirements is obtained, it means that the jump information table currently corresponding to the target active node is accessible.
[0095] In one embodiment, when the terminal device asks the server to request the page information of the active node, it will also request the jump information table corresponding to the active node. If the active node has a jump information table, the server returns the page information corresponding to the active node and returns the jump information table of the active node.
[0096] Step 211: When the jump information table is inaccessible, request the jump information table corresponding to the target active node from the server.
[0097] Specifically, when the terminal device finds that the jump information table corresponding to the target active node is inaccessible, it means that the jump logic between the active node and other active nodes has been updated, and the jump information table currently corresponding to the target active node has expired. For example, through the node identifiers of each active node in the jump information table, the server is requested for page information of the corresponding active node to see if the server has a response that meets the requirements. If no response that meets the requirements is obtained, it means that the jump information table currently corresponding to the target active node is inaccessible, that is, the jump information table currently corresponding to the target active node has expired. When the terminal device finds that the jump information table corresponding to the target active node is inaccessible, it requests the jump information table corresponding to the target active node from the server to determine the updated jump information table of the target active node.
[0098] Step 213: Query the jump activity node corresponding to the authority information in the jump information table returned by the server.
[0099] Specifically, after the terminal device receives the updated jump information table of the target active node returned by the server, it searches the updated jump information table for the active node corresponding to the user's permission information, and uses the searched active node as the jump active node corresponding to the permission information.
[0100] Step 215: request the service to jump to the page information corresponding to the active node, and display the page information returned by the server.
[0101] Specifically, after the terminal device determines the jump node after the target active node according to the user's permission information, it uses the node identifier of the jump active node to request the server for the page information corresponding to the jump active node. The server queries the page information corresponding to the node identifier according to the node identifier of the jump active node sent by the terminal device, and sends the queried page information to the terminal device. After the terminal device receives the page information returned by the server, it displays the page information corresponding to the jump active node to complete the jump to the target node.
[0102] In one embodiment, when the jump information table is accessible, the jump activity node corresponding to the permission information is queried in the jump information table, the page information corresponding to the jump activity node is requested from the service, and the page information returned by the server is displayed. The description of this embodiment can refer to the description of step 205 and step 207.
[0103] In this embodiment, when the user uses the web application, the web application is updated by requesting a new jump information table from the server, so that the user can update the web application without exiting the web application.
[0104] In one embodiment, the method further includes:
[0105] Step 217: When it is found that the target active node does not have a jump information table, query whether the target active node has a next active node.
[0106] Specifically, when the terminal device queries that there is no jump information table for the target node, it means that the active nodes after the target active node will not be updated, and the subsequent active nodes are fixed and do not need to be changed. In addition, the target node does not need to be diverted according to user permissions. The jump logic for the target node is consistent for users with different permissions. At this time, the target node is queried to see if there is a next node to determine whether the target node is the last node of the web application.
[0107] Step 219: When it is found that the target active node has a next active node, the server is requested to provide page information corresponding to the next active node, and the page information returned by the server is displayed.
[0108] Specifically, when the terminal device finds that the target active node has a next active node, it means that the target active node is not the last active node of the web application. According to the node identifier of the next active node, the server is requested to provide the page information corresponding to the next active node. The server queries the page information corresponding to the node identifier based on the node identifier of the next active node sent by the terminal device, and sends the queried page information to the terminal device. After receiving the page information returned by the server, the terminal device displays the page information corresponding to the next active node, completing the jump to the target node.
[0109] In one of the embodiments, when the terminal device finds that there is no next node for the target node, the terminal device exits the web application.
[0110] Specifically, when the terminal device finds that there is no next node of the target node, it means that the target node is the last node of the web application, and the user has completed the use of the web application and can directly exit the web application.
[0111] In this embodiment, for a target active node that does not need to be updated and does not need to be split, the next active node of the target active node can be directly queried.
[0112] like Figure 3 , which is a flow chart of a method for displaying a webpage application according to a specific embodiment of the present application.
[0113] Step 301: In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists for the target activity node. If the jump information table exists, execute step 302; if the jump information table does not exist, execute step 305.
[0114] Step 302: If the target active node has a jump information table, query whether the jump information table is accessible. If the jump information table is accessible, execute step 303; if the jump information table is inaccessible, execute step 304.
[0115] Step 303: When it is found that the jump information table is accessible, obtain the permission information corresponding to the current user, query the jump information table for the jump activity node corresponding to the permission information, request the service for the page information corresponding to the jump activity node, and display the page information returned by the server.
[0116] Step 304: When it is found that the jump information table is inaccessible, request the jump information table corresponding to the target activity node from the server, and query the jump activity node corresponding to the authority information in the jump information table returned by the server, request the page information corresponding to the jump activity node from the service, and display the page information returned by the server.
[0117] Step 305: If the target activity node does not have a jump information table, query whether the target activity node has a next activity node. If the target activity node does have a next activity node, execute step 306; if the target activity node does not have a next activity node, execute step 307.
[0118] Step 306: When it is found that the target active node has a next active node, a request is made to the server for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
[0119] Step 307: When it is found that there is no next node for the target node, exit the web application.
[0120] In one embodiment, the above step 203 specifically includes:
[0121] Step 203A: When it is found that the jump information table corresponding to the target activity node is accessible, a permission information request carrying the user identifier corresponding to the current user is sent to the server, so that the server queries the permission information corresponding to the user according to the user identifier.
[0122] Specifically, when the terminal device does not have the permission information of the current user, the terminal device needs to obtain the user's permission information after querying that the jump information table corresponding to the target activity node is accessible. The terminal device sends a permission information request carrying the user identifier corresponding to the current user to the server. After receiving the user identifier sent by the terminal device, the server queries the pre-set permission information identifier, determines the permission information corresponding to the user identifier sent by the terminal device, and then sends the queried permission information to the terminal device.
[0123] Step 203B: Receive the authority information corresponding to the user sent by the server in response to the authority information request.
[0124] Specifically, the terminal device sends a permission information request carrying a user identifier corresponding to the current user to the server. The server responds to the request and queries a pre-set permission information identifier table for storing the correspondence between permission information and user identifiers according to the user identifier carried in the request, obtains permission information corresponding to the user identifier and sends it to the terminal device. The terminal device obtains permission information corresponding to the current user according to the permission information sent by the server in response to the request.
[0125] In this embodiment, the server pre-sets user pools corresponding to different permission information, and manages user permissions by updating the user pools.
[0126] In one embodiment, the method further comprises:
[0127] Step 203C: upon receiving the no-authorization information sent by the server in response to the authorization information request, displaying the authorization information collection page.
[0128] Specifically, when the terminal device does not have the permission information of the current user, the terminal device needs to obtain the user's permission information after querying that the jump information table corresponding to the target active node is accessible. The terminal device sends a permission information request carrying the user identifier corresponding to the current user to the server. After the server receives the permission information request carrying the user identifier corresponding to the current user sent by the terminal device, in response to the request, it queries the pre-set permission information identifier to determine the permission information corresponding to the user identifier sent by the terminal device. If the server does not query the permission information corresponding to the user identifier, it sends no permission information to the terminal device, that is, the permission information corresponding to the user identifier is not queried.
[0129] When the terminal device node receives the no-authorization information sent by the server in response to the permission information request, it determines that the server does not have the permission information of the user and displays the permission information collection page so that the user can fill in the permission data required for the permission information on the permission information collection page.
[0130] Step 203D: In response to the permission information submission instruction, the permission data input on the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data.
[0131] Specifically, after receiving the permission information submission instruction for the permission collection page, the terminal device sends the permission data entered by the user for the permission information collection page to the server. The server determines the permission information corresponding to the permission data sent by the terminal device according to the preset permission determination strategy or inquires about the correspondence between the permission data and the permission information, and sends the determined permission data to the terminal device.
[0132] Step 203E: Receive the authority information corresponding to the current user sent by the server.
[0133] Specifically, after receiving the permission information returned by the server in response to the sent permission data, the terminal device obtains the permission information corresponding to the current user.
[0134] In this embodiment, for users whose corresponding authority information is not recorded in the server, the authority data of the users is collected through the authority information collection page, and then the authority information of the users is determined.
[0135] In one embodiment, before executing step 201, the method further includes:
[0136] Step 221 : In response to an instruction to add a target active node, display the permission jump configuration item of the target active node.
[0137] Among them, the permission jump configuration items include permission information configuration items and jump node configuration items.
[0138] Specifically, the terminal device displays the configuration page of the web application to the user, and the user adds the target activity node in the web application by dragging or inputting instructions. In response to the user's instruction to add the target activity node, the terminal device displays the permission jump configuration items of the target activity node, including the permission information configuration items and the jump node configuration items.
[0139] In one embodiment, the terminal device can also display other configuration items of the target activity node, the node name, node identifier and each mandatory item in the activity node. For example, if the target activity node is a question-answering activity, the mandatory items include activity content, activity duration, background music, sound effects, etc.
[0140] Step 223, in response to the instruction to add the correspondence between the permission information and the jump activity node, the correspondence between the permission information and the jump activity node is saved in the jump information table corresponding to the target activity node with the identification information of the target activity node as the primary key.
[0141] Specifically, after the terminal device displays the permission jump configuration item of the target activity node to the user, the user can add the correspondence between the permission information and the jump activity node. The terminal device responds to the correspondence between the permission information and the jump activity node by adding an instruction, using the identification information of the target activity node as the primary key, and saves the correspondence between the permission information and the jump activity node to the jump information table corresponding to the target activity node.
[0142] In one embodiment, after the user completes the configuration of the web application on the terminal device, the user sends the relevant configuration data to the server, so that the server saves the relevant configuration data about the web application.
[0143] Next, a specific embodiment provided by the present application is described in detail.
[0144] 1. Web application configuration process:
[0145] The user configures the activity node flow chart of the web application by dragging and dropping on the interface, and configures the information of each activity node.
[0146] Specifically, the server saves the node identification, node name, node type and configuration information of each configuration item of the active node in response to the configuration operation for each active node. In response to the jump configuration of each active node by the user, the server saves the jump information table configured by the user for each active node, including the correspondence between the permission information and the active node.
[0147] 2. Web application update process:
[0148] The user changes the activity node flow chart of the web application by dragging and dropping on the interface to complete the update of the web application.
[0149] Specifically, in response to the user's modification of the process of changing the active node, the server modifies the jump information table of the active node related to the changed active node, including the jump information table of the previous active node of the changed active node and the jump information table of the higher active node.
[0150] 3. Web application display process:
[0151] When the terminal device accesses the web application, in response to the jump instruction for the target activity node in the web application, it queries whether the jump information table corresponding to the target activity node is accessible. When the terminal device finds that the jump information table corresponding to the target activity node is accessible, it obtains the permission information corresponding to the current user, and queries the jump activity node corresponding to the permission information in the jump information table corresponding to the target activity node. The terminal device requests the page information corresponding to the jump activity node from the service, and displays the page information returned by the server, completing the jump to the target activity node.
[0152] When the terminal device finds that the jump information table corresponding to the target activity node is inaccessible, it requests the jump information table corresponding to the target activity node from the server, and queries the jump activity node corresponding to the permission information in the jump information table returned by the server. The terminal device requests the page information corresponding to the jump activity node from the service, and displays the page information returned by the server to complete the jump to the target activity node.
[0153] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0154] Based on the same inventive concept, the embodiment of the present application also provides a web application display device for implementing the web application display method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of the one or more web application display device embodiments provided below can refer to the limitations of the web application display method above, and will not be repeated here.
[0155] In one embodiment, Figure 4 As shown, a display device for a web application is provided, comprising:
[0156] A first response module 401 is used to query whether a jump information table exists in a target activity node in a web application in response to a jump instruction for the target activity node in the web application; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0157] The acquisition module 403 is used to acquire the authority information corresponding to the current user when it is found that the jump information table exists in the target activity node;
[0158] A first node query module 405 is used to query the jump information table for a jump activity node corresponding to the permission information;
[0159] The first display module 407 is used to request the page information corresponding to the jump activity node from the server and display the page information returned by the server.
[0160] In one embodiment, the device further comprises:
[0161] The access query module 409 queries whether the jump information table is accessible when it is found that the target active node has a jump information table;
[0162] A request module 411, configured to request the jump information table corresponding to the target active node from the server when the jump information table is inaccessible;
[0163] A second node query module 413 is used to query the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0164] The second display module 415 is used to request the page information corresponding to the jump activity node from the server and display the page information returned by the server.
[0165] In one embodiment, the device further comprises:
[0166] A third node query module 417 (not shown in the figure), configured to query whether the target active node has a next active node when it is found that the target active node does not have a jump information table;
[0167] The third display module 419 (not shown in the figure) is used to request the page information corresponding to the next activity node from the service when it is found that the target activity node has a next activity node, and display the page information returned by the server after receiving it.
[0168] In one embodiment, the acquisition module 403 specifically includes:
[0169] A query unit 403A (not shown in the figure) is used to send a permission information request carrying a user identifier corresponding to the current user to the server when it is found that the target activity node has a jump information table, so that the server queries the permission information corresponding to the user according to the user identifier;
[0170] The receiving unit 403B (not shown in the figure) is used to receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0171] In one embodiment, the above device further comprises:
[0172] The no-authority receiving module 421 (not shown in the figure) is used to display the permission information collection page when receiving the no-authority information sent by the server in response to the permission information request;
[0173] The collection module 423 (not shown in the figure) is used to send the permission data inputted on the permission information collection page to the server in response to the permission information submission instruction, so that the server determines the permission information corresponding to the current user according to the permission data;
[0174] The permission information receiving module 425 (not shown in the figure) is used to receive the permission information corresponding to the current user sent by the server.
[0175] In one embodiment, the device further comprises:
[0176] A second response module 427 (not shown in the figure) is used to display the permission jump configuration items of the activity node in response to the instruction to add the target activity node; the permission jump configuration items include permission information configuration items and jump activity node configuration items;
[0177] The third response module 429 (not shown in the figure) is used to add instructions in response to the correspondence between the permission information and the jump activity node, using the identification information of the target activity node as the primary key, and save the correspondence between the permission information and the jump activity node to the jump information table corresponding to the target activity node.
[0178] Each module in the display device of the web application can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0179] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, and a communication interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for displaying a web application is implemented.
[0180] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0181] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0182] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0183] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0184] Query the jump information table for a jump activity node corresponding to the permission information;
[0185] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0186] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0187] In the case that it is found that the target active node has a jump information table, query whether the jump information table is accessible;
[0188] In the case where the jump information table is inaccessible, requesting the jump information table corresponding to the target active node from the server;
[0189] Querying the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0190] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0191] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0192] In the case that it is found that the target active node does not have a jump information table, querying whether the target active node has a next active node;
[0193] When it is found that the target active node has a next active node, a request is made to a service for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
[0194] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0195] Sending a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier;
[0196] Receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0197] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0198] In case of receiving no-authorization information sent by the server in response to the permission information request, displaying a permission information collection page;
[0199] In response to the permission information submission instruction, the permission data inputted for the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data;
[0200] Receive the authority information corresponding to the current user sent by the server.
[0201] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0202] In response to the instruction to add the target active node, display the permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item;
[0203] In response to an instruction to add a correspondence between permission information and jump activity nodes, the correspondence between permission information and jump activity nodes is saved in a jump information table corresponding to the target activity node using the identification information of the target activity node as a primary key.
[0204] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0205] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0206] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0207] Query the jump information table for a jump activity node corresponding to the permission information;
[0208] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0210] In the case that it is found that the target active node has a jump information table, query whether the jump information table is accessible;
[0211] In the case where the jump information table is inaccessible, requesting the jump information table corresponding to the target active node from the server;
[0212] Querying the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0213] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0215] In the case that it is found that the target active node does not have a jump information table, querying whether the target active node has a next active node;
[0216] When it is found that the target active node has a next active node, a request is made to a service for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0218] Sending a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier;
[0219] Receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0221] In case of receiving no-authorization information sent by the server in response to the permission information request, displaying a permission information collection page;
[0222] In response to the permission information submission instruction, the permission data inputted for the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data;
[0223] Receive the authority information corresponding to the current user sent by the server.
[0224] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0225] In response to the instruction to add the target active node, display the permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item;
[0226] In response to an instruction to add a correspondence between permission information and jump activity nodes, the correspondence between permission information and jump activity nodes is saved in a jump information table corresponding to the target activity node using the identification information of the target activity node as a primary key.
[0227] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0228] In response to a jump instruction for a target activity node in a web application, query whether a jump information table exists in the target activity node; wherein the web application includes a plurality of activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store a correspondence between permission information and activity nodes;
[0229] When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user;
[0230] Query the jump information table for a jump activity node corresponding to the permission information;
[0231] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0232] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0233] In the case that it is found that the target active node has a jump information table, query whether the jump information table is accessible;
[0234] In the case where the jump information table is inaccessible, requesting the jump information table corresponding to the target active node from the server;
[0235] Querying the jump activity node corresponding to the permission information in the jump information table returned by the server;
[0236] Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
[0237] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0238] In the case that it is found that the target active node does not have a jump information table, querying whether the target active node has a next active node;
[0239] When it is found that the target active node has a next active node, a request is made to a service for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
[0240] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0241] Sending a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier;
[0242] Receive the permission information corresponding to the user sent by the server in response to the permission information request.
[0243] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0244] In case of receiving no-authorization information sent by the server in response to the permission information request, displaying a permission information collection page;
[0245] In response to the permission information submission instruction, the permission data inputted for the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data;
[0246] Receive the authority information corresponding to the current user sent by the server.
[0247] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0248] In response to the instruction to add the target active node, display the permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item;
[0249] In response to an instruction to add a correspondence between permission information and jump activity nodes, the correspondence between permission information and jump activity nodes is saved in a jump information table corresponding to the target activity node using the identification information of the target activity node as a primary key.
[0250] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0251] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0252] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0253] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for displaying a webpage application, characterized in that: The method comprises: In response to an instruction to add a target active node, displaying a permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item; In response to an instruction to add a correspondence between permission information and a jump activity node, the correspondence between the permission information and the jump activity node is saved in a jump information table corresponding to the target activity node, using the identification information of the target activity node as a primary key; In response to a jump instruction for a target activity node in a web application, query whether the target activity node has a jump information table; wherein the web application includes multiple activity nodes, each of the activity nodes is used to represent a sub-activity of the web application, and the jump information table is used to store the corresponding relationship between permission information and activity nodes; if the target activity node has the jump information table, the target activity node has multiple jump logics; if the target activity node does not have the jump information table, the target activity node has only one jump logic; When it is found that the target activity node has a jump information table, obtaining permission information corresponding to the current user; Query the jump activity node corresponding to the permission information in the jump information table; if the permission information is a user identifier, the activity node and the user identifier are in a one-to-many relationship; one activity node corresponds to multiple user identifiers, and one user identifier corresponds to one user node; if the permission information is a permission identifier, the activity node and the permission identifier are in a one-to-one corresponding relationship; Request the server for page information corresponding to the jump activity node, and display the page information returned by the server.
2. The method according to claim 1, characterized in that The method further comprises: In the case that it is found that the target active node has a jump information table, query whether the jump information table is accessible; In the case where the jump information table is inaccessible, requesting the jump information table corresponding to the target active node from the server; Querying the jump activity node corresponding to the permission information in the jump information table returned by the server; Request the page information corresponding to the jump activity node from the server, and display the page information returned by the server.
3. The method according to claim 2, characterized in that If the jump information table corresponding to the target active node is inaccessible, the jump logic between the target active node and other active nodes is updated, and the jump information table currently corresponding to the target active node is invalid.
4. The method according to claim 1, characterized in that: The method further comprises: In the case that it is found that the target active node does not have a jump information table, querying whether the target active node has a next active node; When it is found that the target active node has a next active node, a request is made to a service for page information corresponding to the next active node, and the page information returned by the server is displayed after being received.
5. The method according to claim 1, characterized in that The obtaining of permission information corresponding to the current user includes: Sending a permission information request carrying a user identifier corresponding to the current user to the server, so that the server queries the permission information corresponding to the user according to the user identifier; Receive the permission information corresponding to the user sent by the server in response to the permission information request.
6. The method according to claim 5, characterized in that The method further comprises: In case of receiving no-authorization information sent by the server in response to the permission information request, displaying a permission information collection page; In response to the permission information submission instruction, the permission data inputted for the permission information collection page is sent to the server, so that the server determines the permission information corresponding to the current user according to the permission data; Receive the authority information corresponding to the current user sent by the server.
7. A display device for a web application, characterized in that: The device comprises: A second response module, in response to an instruction to add a target active node, displays a permission jump configuration item of the target active node; the permission jump configuration item includes a permission information configuration item and a jump active node configuration item; A third response module, in response to an instruction to add a correspondence between the permission information and the jump activity node, saves the correspondence between the permission information and the jump activity node to a jump information table corresponding to the target activity node using the identification information of the target activity node as a primary key; A first response module is used to query, in response to a jump instruction for a target activity node in a web application, whether a jump information table exists in the target activity node; wherein the web application includes multiple activity nodes, each of which is used to represent a sub-activity of the web application, and the jump information table is used to store a corresponding relationship between permission information and activity nodes; if the target activity node has the jump information table, the target activity node has multiple jump logics; if the target activity node does not have the jump information table, the target activity node has only one jump logic; An acquisition module, used for acquiring permission information corresponding to the current user when it is found that the target activity node has a jump information table; A first node query module is used to query the jump activity node corresponding to the permission information in the jump information table; if the permission information is a user identifier, the activity node and the user identifier are in a one-to-many relationship; one activity node corresponds to multiple user identifiers, and one user identifier corresponds to one user node; if the permission information is a permission representation, the activity node and the user identifier are in a one-to-one relationship; The first display module is used to request the page information corresponding to the jump activity node from the server and display the page information returned by the server.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
