CN113805968B - Function execution method and device of application program, computer equipment and storage medium - Google Patents
Function execution method and device of application program, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113805968B CN113805968B CN202111101956.7A CN202111101956A CN113805968B CN 113805968 B CN113805968 B CN 113805968B CN 202111101956 A CN202111101956 A CN 202111101956A CN 113805968 B CN113805968 B CN 113805968B
- Authority
- CN
- China
- Prior art keywords
- control
- target
- application program
- format
- logic code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000001960 triggered effect Effects 0.000 claims abstract description 32
- 230000006870 function Effects 0.000 claims description 180
- 238000004590 computer program Methods 0.000 claims description 26
- 230000008859 change Effects 0.000 abstract description 6
- 238000012550 audit Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to a function execution method, a device, computer equipment and a storage medium of an application program, wherein the method obtains control configuration information of the application program from a server; receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; and determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code. When the emergency service needs to change the function corresponding to the target control in the application program, the function execution method of the application program directly acquires the control configuration information from the server, realizes the change of the function corresponding to the target control, does not need to modify and audit the code of the application program, and can quickly respond to the emergency service.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for executing functions of an application program, a computer device, and a storage medium.
Background
With the development of the mobile internet and the popularization of social clients, video sharing clients and the like in social network users, developers take the clients as tools in the internet, and provide differentiated services for the users by running various different application programs in the clients. An application is a specific programming-based speech development completion that can be used without downloading and installation. With the development of mobile network technology, the requirements of users on application programs are increasing.
In the prior art, when an emergency service needs to change a function corresponding to a certain trigger operation in an application program, the code of the application program needs to be modified and checked, so that the emergency service cannot be responded quickly.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for executing functions of an application program.
In a first aspect, an embodiment of the present application provides a method for executing a function of an application program, including:
acquiring control configuration information of an application program from a server, wherein the control configuration information is used for representing the association relationship between a control of the application program and resource addressing information;
Receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program;
And determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code.
In one embodiment, the target resource addressing information includes a function indication parameter, a logic code indication parameter, and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control.
In one embodiment, the format of the target resource addressing information is determined based on the format of the uniform resource locator, the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator.
In one embodiment, determining a logic code of the target control according to the target resource addressing information, executing a function triggered by the target control based on the logic code, including:
analyzing the target resource addressing information according to the format of the uniform resource locator, and determining the control function, logic code and input parameters indicated by the target resource addressing information;
and realizing the function triggered by the target control based on the logic code and the input parameter.
In one embodiment, the function indication parameters include any one or more of a page parameter, an event parameter, and an interface parameter.
In a second aspect, an embodiment of the present application provides a method for executing a function of an application program, including:
determining control configuration information of the application program, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
And sending control configuration information to the client so that the client executes the functions of the application program based on the control configuration information.
In one embodiment, determining control configuration information for an application includes:
determining an update control of the application program, wherein the update control is a control with a changed logic code in the control of the application program;
and generating control configuration information according to the updated logic codes of the updated control.
In one embodiment, generating control configuration information according to updated logic code of the update control includes:
determining logic code indication parameters corresponding to the updated logic codes;
And generating control configuration information according to the function indication parameters, the logic code indication parameters and the input parameters corresponding to the updated control.
In one embodiment, the function indication parameter, the logical code indication parameter, and the format of the input parameter are determined based on the format of the uniform resource locator, wherein the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator.
In a third aspect, an embodiment of the present application provides a function execution apparatus of an application program, including:
The acquisition module is used for acquiring control configuration information of the application program from the server, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
the receiving module is used for receiving a trigger instruction of the target control and determining target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program;
and the execution module is used for determining the logic code of the target control according to the target resource addressing information and executing the function triggered by the target control based on the logic code.
In a fourth aspect, an embodiment of the present application provides a function execution apparatus of an application program, including:
The determining module is used for determining control configuration information of the application program, wherein the control configuration information is used for representing the association relation between the control of the application program and the resource addressing information;
And the sending module is used for sending the control configuration information to the client so that the client executes the functions of the application program based on the control configuration information.
In a fifth aspect, an embodiment of the present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method as provided in the above embodiment when the processor executes the computer program.
In a sixth aspect, an embodiment of the application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as provided by the above embodiments.
The embodiment of the application provides a function execution method, a device, computer equipment and a storage medium of an application program. The method comprises the steps of obtaining control configuration information of an application program from a server; receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; and determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code. According to the function execution method of the application program, the logic codes corresponding to the control in the application program are associated with the target resource addressing information, and the control is also associated with the target resource addressing information, so that the control is not directly associated with the logic codes, when the emergency service is met and the function (logic code) corresponding to the control needs to be changed, only the control configuration information of the server is required to be modified, the code does not need to be modified in the application program, the process of auditing the code modified by the application program can be avoided, and the emergency service can be responded quickly.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present application, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for different persons skilled in the art.
FIG. 1 is an application scenario diagram of a method for executing functions of an application program according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for executing functions of an application according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for executing functions of an application according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for executing functions of an application according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for executing functions of an application according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for executing functions of an application according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a function execution device of an application program according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a function execution device of an application program according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the application will be readily understood, a more particular description of the application will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. The present application may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit of the application, whereby the application is not limited to the specific embodiments disclosed below.
With the development of the mobile internet and the popularization of social clients, video sharing clients and the like in social network users, developers take the clients as tools in the internet, and provide differentiated services for the users by running various different application programs in the clients. An application is based on a specially programmed voice switch that can be used without downloading or installation. With the development of mobile network technology, the requirements of users on application programs are increasing. In general, when there is an emergency service that needs to change a function corresponding to a certain control in an application program, or for some reasons (a serious problem exists in a certain module in the application program) that needs to close a function corresponding to a certain control, a code in the application program is modified and checked in a conventional technology, and only after the code passes the check, the application program after the function corresponding to the certain control is changed can be used. However, such a quick response to emergency services does not allow a low customer experience. In this regard, the present application provides a method for executing functions of an application program.
The method for executing the functions of the application program provided by the application can be applied to the application environment shown in fig. 1. Wherein the application program is arranged at the client 1, and the client 1 communicates with the server 2 directly or indirectly through a network. The client 1 may include a terminal, which may be, but is not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices. The server 2 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 2, an embodiment of the present application provides a method for executing functions of an application program, where a terminal set in a client is used as an executing body to describe the method for executing functions of the application program, and the method includes the steps of:
step 200, control configuration information of the application program is obtained from a server, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information.
The terminal is provided with an application program, and the terminal acquires control configuration information of the application program from the server. An application may refer to an applet in a terminal. The control configuration information is used for representing the association relation between the control of the application program and the resource addressing information. In other words, the control configuration information includes an association relationship between the control and the resource addressing information in the application program. The controls in the application may include a plurality of controls, each control corresponding to associated resource addressing information. The worker can modify the association relationship between the control and the resource addressing information in the server.
In an optional embodiment, when the application program of the terminal is opened, the terminal automatically acquires control configuration information of the application program from the server, and a user does not need to perform acquisition operation, so that the experience of the user can be improved.
Step 210, receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program.
The target control is a control which needs to be operated by a user, and the touch instruction can be used for clicking operation, moving operation and the like of the target control by the user. After receiving control configuration information of an application program, the terminal determines target resource addressing information associated with the target control in the control configuration information when the user operates the application program, namely when the application program in the terminal receives a trigger instruction of the user on the target control.
And 220, determining a logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code.
After determining the target resource addressing information associated with the target control, the terminal can determine the logic code corresponding to the target control according to the target resource addressing information, and the terminal can execute the function triggered by the target control through the logic code. In other words, the terminal executes the logic code corresponding to the target control to display the page after the user operates the target control. The target control is an exemplary login page, the user clicks the target control, and after the terminal executes the logic code corresponding to the target control, the logged-in page can be displayed. The specific process of determining the logic code of the target control according to the target resource addressing information is not limited in this embodiment, as long as the function thereof can be realized.
In an alternative embodiment, the control configuration information of all the controls in the application program can be obtained from the server by the client; or only the configuration information corresponding to the target control is available, that is, the client can only obtain the control configuration information corresponding to the control with the changed control configuration information.
The method for executing the functions of the application program provided by the embodiment of the application obtains control configuration information of the application program from a server; receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; and determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code. According to the function execution method of the application program, the logic codes corresponding to the control in the application program are associated with the target resource addressing information, and the control is also associated with the target resource addressing information, so that the control is not directly associated with the logic codes, when the emergency service is met and the function (logic code) corresponding to the control needs to be changed, only the control configuration information in the server is required to be modified, the code is not required to be modified in the application program, the process of auditing the code modified by the application program can be avoided, the emergency service can be responded quickly, and the experience of a user can be improved.
In one embodiment, the target resource addressing information includes a function indication parameter, a logic code indication parameter, and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control.
The function indication parameter is used for indicating the function corresponding to the target control, that is, the function which can be realized by the target control can be obtained according to the function indication parameter. For example, if the function of the target control is to display a page, the function indication parameter is a character string corresponding to the page; the function of the target control is to update a local cache or a database, and the function indication parameter is a character string corresponding to the event; and if the function of the target control is to call the interface, the function indication parameter is a character string corresponding to the interface. The logic code indication parameter is used for indicating the logic code corresponding to the target control, that is, the logic code which needs to be executed when the function of the target control is to be realized can be obtained according to the logic code indication parameter. For example, if the function of the target control is to display a page, the logic code indication parameter may be a character string corresponding to the name of the page to be displayed, and the logic code to be executed when the page to be displayed may be acquired through the character string. The input parameters are input parameters of the logic code of the target control, that is, parameters which need to be input in the logic code when the logic code is executed.
In a specific embodiment, assume that the current page is a login page of an application, where the page includes a login name, a login password, and a login and cancel two controls. If the user clicks the login control, that is, the current page is to be jumped to the page after login, at this time, the function indication parameter is page, the logic code indication parameter is LoginPage, and the output parameter is the login name and the login password set when the user logs in the application program.
In one embodiment, the format of the target resource addressing information is determined based on the format of the uniform resource locator, the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator.
The uniform resource locator (Uniform Resource Locator, URL) is a compact representation of the location and access method of resources available on the internet, is the address of a standard resource on the internet, and typically represents a web page or file of the network, etc. The URL format is: protocol: is/domain name? Address parameters. The format of the target resource addressing information can be obtained according to the format of the URL. Specifically, the function indication parameter is matched with a protocol field in the URL format, the logic code indication parameter is matched with a domain name field in the URL format, and the input parameter is matched with an address parameter in the URL format, that is, the format of the target resource addressing information can be expressed as: function indication parameters: is the/(logical code indicating parameter? Parameters are input.
In this embodiment, the format of the target resource addressing information is determined according to the commonly used URL format, so that a need of defining a protocol by itself can be avoided, and the protocol is identified, so that efficiency can be improved.
Referring to fig. 3, in one embodiment, determining a logic code of a target control according to target resource addressing information, and executing a possible implementation of a function triggered by the target control based on the logic code includes:
And 300, analyzing the target resource addressing information according to the format of the uniform resource locator, and determining the control function, the logic code and the input parameters indicated by the target resource addressing information.
When the terminal determines the logic code of the target control according to the target resource addressing information, the format of the target resource addressing information is determined according to the format of the uniform resource locator, and then the terminal analyzes the target resource addressing information according to the method for analyzing the uniform resource locator, so that the control function, the logic code and the input parameter corresponding to the target resource addressing information can be obtained. The present embodiment is not limited to a specific analysis method, as long as the functions thereof can be realized.
Step 310, the function triggered by the target control is realized based on the logic code and the input parameters.
After determining the control function, the logic code and the input parameter corresponding to the target control, the terminal executes the logic code corresponding to the target control according to the input parameter, thereby realizing the function triggered by the target control.
In this embodiment, it is determined that the control function, the logic code and the input parameter in the target resource addressing information associated with the target control are obtained by parsing according to the format of the universal uniform resource locator, that is, the method for parsing the uniform resource locator commonly used is used, so that the parsing of the target resource addressing information can be implemented, the implementation is simple, and the parsing efficiency can be improved.
In one embodiment, the function indication parameters include any one or more of a page parameter, an event parameter, and an interface parameter. When the function instruction parameter is plural, plural function instruction parameters may be used in combination. The embodiment does not limit the types and the number of the function indication parameters, and the staff can select the function indication parameters according to practical application.
For example, when the function indication parameter is a page parameter, the target resource addressing information corresponding to the target control may be expressed as: page:// LoginPageLoginPage = 1. Analyzing the target resource addressing information to obtain a function indication parameter page, a logic code indication parameter LoginPage and an input parameter LoginPage =1 in the target resource addressing information. Determining corresponding logic codes according to the original routes of the logic code indication parameters LoginPage in the application program; and inputting the input parameter isPhone =1 into the logic code, executing the logic code, and realizing the function triggered by the target control.
When the function indication parameter is an event parameter, the target resource addressing information corresponding to the target control can be expressed as: action:// UpdateDatabasetableName =1 & id= 2&a =3. Analyzing the target resource addressing information to obtain function indication parameters Action, logic code indication parameters UpdateDatabase and input parameters tableName =1 & id= 2&a =3 in the target resource addressing information. Finding a corresponding logic code in the application program according to the logic code indication parameter UpdateDatabase; input parameters tableName =1 & id= 2&a =3 are input into the logic code, and the logic code is executed.
When the function indication parameter is an interface parameter, the function indication parameter in the target resource addressing information corresponding to the target control is Api, and the logic code indication parameter refers to a character string of a certain interface path. The input parameters refer to the traffic parameters required by the interface. Analyzing the target resource addressing information, acquiring logic code indication parameters, and splicing the logic code indication parameters with domain names in the application program to form a complete interface request path; simultaneously acquiring input parameters, and combining the input parameters with basic parameters cached in an application program; and transmitting the combined parameters and the complete interface request path into logic codes corresponding to the universal interface method and executing the logic codes.
Referring to fig. 4, an embodiment of the present application provides a method for executing functions of an application program. The embodiment describes a method for executing functions of an application program by using a server as an execution body, and the method includes the steps of:
Step 400, determining control configuration information of the application program, wherein the control configuration information is used for representing the association relation between the control of the application program and the resource addressing information.
The server determines control configuration information for the application, which may be entered into the server by a worker. The description of the control configuration information may be described in detail in the foregoing embodiments, which is not repeated herein.
Step 410, control configuration information is sent to the client, so that the client executes the function of the application program based on the control configuration information.
After the control configuration information is determined, the server sends the control configuration information to the corresponding client, so that the terminal in the client executes the function of the application program according to the control configuration information. The server may send the control configuration information to the client after receiving the acquisition instruction of the client; the client may also be directly sent after the control configuration information is determined, which is not limited in this embodiment as long as the function thereof can be implemented. The description of the functions of the client-side executing the application program based on the control configuration information may refer to the description in the above embodiment, and is not limited herein.
The method for executing the functions of the application program provided by the embodiment of the application comprises the steps of determining control configuration information of the application program; and sending control configuration information to the client so that the client executes the functions of the application program based on the control configuration information. According to the method for executing the functions of the application program, after the control configuration information of the application program is determined by the server side, the control configuration information is directly sent to the client side, so that the client side can change the functions (logic codes) corresponding to the control according to the control configuration information. Therefore, the situation that the code needs to be modified and audited at the client side when the corresponding function of the control needs to be changed in emergency service is avoided, and the client side can quickly respond to the emergency service.
Referring to fig. 5, in one embodiment, a possible implementation method for determining control configuration information of an application program is provided, and the steps of the method include:
step 500, determining an update control of the application program, wherein the update control is a control with a changed logic code in the control of the application program.
The server determines the update control of the application program, namely, determines the control of which the logic code changes in the control of the application program. For example, the control 1 in the application program is originally corresponding to the logic code a, and needs to be updated to the logic code B, and the logic code a and the logic code B are both logic code control 1 stored in the application program and are update controls. The update control may be entered into the server by a worker. The present embodiment does not limit the method of determining the update control of the application program as long as the function thereof can be realized.
Step 510, control configuration information is generated according to the updated logic code of the updated control.
After determining the control to be updated, the server can obtain control configuration information corresponding to the updated control according to the logic code corresponding to the control to be updated.
In an optional embodiment, the server includes control configuration information corresponding to the plurality of controls, that is, an association relationship between the plurality of controls and the plurality of resource addressing information. After determining that the control C in the plurality of controls is an updated control, updating control configuration information corresponding to the control C in control configuration information corresponding to the plurality of controls in the server according to control configuration information corresponding to the updated control, namely updating the association relation between the control C and the resource addressing information.
In one embodiment, a possible implementation method for generating control configuration information according to logic code after updating the control is provided as shown in fig. 6, and the steps of the method include:
step 600, determining logic code indication parameters corresponding to the updated logic codes.
Step 610, generating control configuration information according to the function indication parameter, the logic code indication parameter and the input parameter corresponding to the updated control.
The server can determine the logic code indication parameter corresponding to the logic code according to the updated logic code. Meanwhile, the server can acquire the function indication parameters corresponding to the update control according to the update control, and input parameters needed when executing the logic code are needed. The server can generate control configuration information corresponding to the updated control according to the acquired function indication parameters, logic code indication parameters and input parameters.
In one embodiment, the format of the function indication parameter, the format of the logical code indication parameter, and the format of the input parameter are determined based on the format of the uniform resource locator, wherein the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator. The description of the format of the function indication parameter, the logic code indication parameter and the input parameter determined according to the format of the uniform resource locator may refer to the specific description in the above embodiment, and will not be repeated here.
In an alternative embodiment, the resource addressing information needs to be registered before the function execution method of the application program provided by the application is executed. When the function indication parameter in the resource addressing information is an interface parameter, registration is not needed, and all the interface parameters are corresponding to the same code block.
It should be understood that, although the steps in the flowcharts in the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or other steps.
One embodiment of the application provides a function execution system of an application program, which comprises a client and a server. Wherein the client is configured to perform the steps of the method provided by the embodiments shown in fig. 2-3 of the above embodiments; the server is configured to perform the steps of the method provided by the embodiments shown in fig. 4-6 of the above embodiments.
The specific embodiment process and beneficial effects of the function execution system of the application program provided in this embodiment are similar to those of the above embodiment, and are not described herein again.
Referring to fig. 7, an embodiment of the present application provides a function execution device 10 for an application program, which includes an acquisition module 11, a receiving module 12, and an execution module 13. Wherein,
The acquisition module 11 is used for acquiring control configuration information of the application program from the server, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
the receiving module 12 is configured to receive a trigger instruction of a target control, and determine target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program;
the execution module 13 is configured to determine a logic code of the target control according to the target resource addressing information, and execute a function triggered by the target control based on the logic code.
In one embodiment, the target resource addressing information includes a function indication parameter, a logic code indication parameter, and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control.
In one embodiment, the format of the target resource addressing information is determined based on the format of the uniform resource locator, the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator.
In one embodiment, the execution module 13 is specifically configured to parse the target resource addressing information according to the format of the uniform resource locator, and determine a control function, a logic code and an input parameter indicated by the target resource addressing information; and realizing the function triggered by the target control based on the logic code and the input parameter.
In one embodiment, the function indication parameters include any one or more of a page parameter, an event parameter, and an interface parameter.
Referring to fig. 8, an embodiment of the present application provides a function execution device 20 for an application program, which includes a determining module 21 and a sending module 22. Wherein,
The determining module 21 is used for determining control configuration information of the application program, wherein the control configuration information is used for representing the association relation between the control of the application program and the resource addressing information;
The sending module 22 is configured to send control configuration information to the client, so that the client performs a function of the application program based on the control configuration information.
In one embodiment, the determining module 21 is further configured to determine an update control of the application program, where the update control is a control with a change in logic code in the control of the application program; and generating control configuration information according to the updated logic codes of the updated control.
In one embodiment, the determining module 21 is specifically configured to determine a logic code indication parameter corresponding to the updated logic code; and generating control configuration information according to the function indication parameters, the logic code indication parameters and the input parameters corresponding to the updated control.
In one embodiment, the format of the function indication parameter, the format of the logical code indication parameter, and the format of the input parameter are determined based on the format of the uniform resource locator, wherein the format of the function indication parameter matches the format of the protocol field in the format of the uniform resource locator, the format of the logical code indication parameter matches the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter matches the format of the address parameter in the format of the uniform resource locator.
The specific limitation of the function execution device 10 of the application program and the function execution device 20 of the application program described above may be referred to as limitation of the function execution method of the application program hereinabove, and will not be described herein. The respective modules in the function execution device 10 of the application program and the function execution device 20 of the application program may be implemented in whole or in part by software, hardware, and combinations thereof. The above devices, modules or units may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above devices or modules.
Referring to fig. 9, in one embodiment, a computer device is provided, which may be a server, and an internal structure thereof may be as shown in fig. 9. The computer device includes a processor, memory, network interface, and database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media, internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store control configuration information and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer device, when executed by a processor, implements a method for performing functions of an application.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor, the processor when executing the computer program performing the steps of:
acquiring control configuration information of an application program from a server, wherein the control configuration information is used for representing the association relationship between a control of the application program and resource addressing information;
Receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program;
And determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code.
In one embodiment, the processor when executing the computer program further performs the steps of: the format of the target resource addressing information is determined based on the format of the uniform resource locator, the format of the function indication parameter is matched with the format of the protocol field in the format of the uniform resource locator, the format of the logic code indication parameter is matched with the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter is matched with the format of the address parameter in the format of the uniform resource locator.
In one embodiment, the processor when executing the computer program further performs the steps of: analyzing the target resource addressing information according to the format of the uniform resource locator, and determining the control function, logic code and input parameters indicated by the target resource addressing information; and realizing the function triggered by the target control based on the logic code and the input parameter.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor, the processor when executing the computer program performing the steps of:
determining control configuration information of the application program, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
and sending the control configuration information to a client side, so that the client side executes the functions of the application program based on the control configuration information.
In one embodiment, the processor when executing the computer program further performs the steps of: determining an update control of the application program, wherein the update control is a control with a changed logic code in the control of the application program; and generating control configuration information according to the updated logic codes of the updated control.
In one embodiment, the processor when executing the computer program further performs the steps of: determining logic code indication parameters corresponding to the updated logic codes; and generating control configuration information according to the function indication parameters, the logic code indication parameters and the input parameters corresponding to the updated control.
In one embodiment, the processor when executing the computer program further performs the steps of: the method comprises the steps of determining a function indication parameter, a logic code indication parameter and a format of an input parameter based on a format of a uniform resource locator, wherein the format of the function indication parameter is matched with a format of a protocol field in the format of the uniform resource locator, the format of the logic code indication parameter is matched with a format of a domain name field in the format of the uniform resource locator, and the format of the input parameter is matched with a format of an address parameter in the format of the uniform resource locator.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring control configuration information of an application program from a server, wherein the control configuration information is used for representing the association relationship between a control of the application program and resource addressing information;
Receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on control configuration information; the target control is a control provided by the application program;
And determining the logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code.
In one embodiment, the computer program when executed by the processor further performs the steps of: the format of the target resource addressing information is determined based on the format of the uniform resource locator, the format of the function indication parameter is matched with the format of the protocol field in the format of the uniform resource locator, the format of the logic code indication parameter is matched with the format of the domain name field in the format of the uniform resource locator, and the format of the input parameter is matched with the format of the address parameter in the format of the uniform resource locator.
In one embodiment, the computer program when executed by the processor further performs the steps of: analyzing the target resource addressing information according to the format of the uniform resource locator, and determining the control function, logic code and input parameters indicated by the target resource addressing information; and realizing the function triggered by the target control based on the logic code and the input parameter.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining control configuration information of the application program, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
and sending the control configuration information to a client side, so that the client side executes the functions of the application program based on the control configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining an update control of the application program, wherein the update control is a control with a changed logic code in the control of the application program; and generating control configuration information according to the updated logic codes of the updated control.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining logic code indication parameters corresponding to the updated logic codes; and generating control configuration information according to the function indication parameters, the logic code indication parameters and the input parameters corresponding to the updated control.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps of determining a function indication parameter, a logic code indication parameter and a format of an input parameter based on a format of a uniform resource locator, wherein the format of the function indication parameter is matched with a format of a protocol field in the format of the uniform resource locator, the format of the logic code indication parameter is matched with a format of a domain name field in the format of the uniform resource locator, and the format of the input parameter is matched with a format of an address parameter in the format of the uniform resource locator.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (12)
1. A function execution method of an application program, comprising:
When the function corresponding to the target control needs to be changed, acquiring control configuration information of the application program, which is changed, from a server, wherein the control configuration information is used for representing the association relationship between the control of the application program and the resource addressing information;
Receiving a trigger instruction for a target control, and determining target resource addressing information associated with the target control based on the control configuration information; the target control is a control provided by the application program; the target resource addressing information comprises a function indication parameter, a logic code indication parameter and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control;
And determining a logic code of the target control according to the target resource addressing information, and executing the function triggered by the target control based on the logic code.
2. The method according to claim 1, wherein the format of the target resource addressing information is determined based on a format of a uniform resource locator, the format of the function indication parameter is matched with a format of a protocol field in the format of the uniform resource locator, the format of the logic code indication parameter is matched with a format of a domain name field in the format of the uniform resource locator, and the format of the input parameter is matched with a format of an address parameter in the format of the uniform resource locator.
3. The method for executing the function of the application program according to claim 2, wherein determining the logic code of the target control according to the target resource addressing information, executing the function triggered by the target control based on the logic code, comprises:
Analyzing the target resource addressing information according to the format of the uniform resource locator, and determining the control function, the logic code and the input parameter indicated by the target resource addressing information;
and realizing the function triggered by the target control based on the logic code and the input parameter.
4. A method of executing functions of an application program according to any one of claims 1-3, wherein the function indication parameters include any one or more of a page parameter, an event parameter, and an interface parameter.
5. A function execution method of an application program, comprising:
Determining control configuration information of an application program, wherein the control configuration information is used for representing the association relationship between a control of the application program and resource addressing information;
the control configuration information is sent to a client, so that the client receives a trigger instruction for a target control, and target resource addressing information associated with the target control is determined based on the control configuration information; determining a logic code of the target control according to the target resource addressing information, and executing a function triggered by the target control based on the logic code;
The target control is a control provided by the application program; the target resource addressing information comprises a function indication parameter, a logic code indication parameter and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control.
6. The method for executing functions of an application program according to claim 5, wherein the determining the changed control configuration information of the application program includes:
determining an update control of the application program, wherein the update control is a control with a changed logic code in the control of the application program;
and generating the control configuration information according to the logic code updated by the updated control.
7. The method for executing functions of an application program according to claim 6, wherein generating the control configuration information according to the updated logic code of the update control includes:
determining logic code indication parameters corresponding to the updated logic codes;
And generating control configuration information according to the function indication parameters, the logic code indication parameters and the input parameters corresponding to the update control.
8. The method according to claim 7, wherein the function indication parameter, the logical code indication parameter, and the format of the input parameter are determined based on a format of a uniform resource locator, wherein the format of the function indication parameter matches a format of a protocol field in the format of the uniform resource locator, wherein the format of the logical code indication parameter matches a format of a domain name field in the format of the uniform resource locator, and wherein the format of the input parameter matches a format of an address parameter in the format of the uniform resource locator.
9. A function execution device of an application program, comprising:
The system comprises an acquisition module, a control configuration module and a resource addressing module, wherein the acquisition module is used for acquiring control configuration information of an application program, which is changed, from a server when a function corresponding to a target control needs to be changed, and the control configuration information is used for representing the association relation between the control of the application program and resource addressing information;
The receiving module is used for receiving a triggering instruction of a target control and determining target resource addressing information associated with the target control based on the control configuration information; the target control is a control provided by the application program; the target resource addressing information comprises a function indication parameter, a logic code indication parameter and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control;
and the execution module is used for determining the logic code of the target control according to the target resource addressing information and executing the function triggered by the target control based on the logic code.
10. A function execution device of an application program, comprising:
The system comprises a determining module, a control configuration module and a control processing module, wherein the determining module is used for determining control configuration information of an application program, and the control configuration information is used for representing the association relation between a control of the application program and resource addressing information;
The sending module is used for sending the control configuration information to the client side so that the client side receives a trigger instruction for a target control and determines target resource addressing information associated with the target control based on the control configuration information; determining a logic code of the target control according to the target resource addressing information, and executing a function triggered by the target control based on the logic code;
The target control is a control provided by the application program; the target resource addressing information comprises a function indication parameter, a logic code indication parameter and an input parameter; the function indication parameter is used for representing the function triggered by the target control, the logic code indication parameter is used for indicating the logic code of the target control, and the input parameter is the input parameter of the logic code of the target control.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111101956.7A CN113805968B (en) | 2021-09-18 | 2021-09-18 | Function execution method and device of application program, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111101956.7A CN113805968B (en) | 2021-09-18 | 2021-09-18 | Function execution method and device of application program, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113805968A CN113805968A (en) | 2021-12-17 |
CN113805968B true CN113805968B (en) | 2024-06-28 |
Family
ID=78896025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111101956.7A Active CN113805968B (en) | 2021-09-18 | 2021-09-18 | Function execution method and device of application program, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113805968B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153768A (en) * | 2016-12-05 | 2018-06-12 | 腾讯科技(深圳)有限公司 | Method for page jump, data processing method, device and page jump control system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958855B (en) * | 2017-05-26 | 2021-12-21 | 阿里巴巴集团控股有限公司 | Page jump method, device and system |
CN108052334B (en) * | 2017-12-22 | 2020-11-06 | 平安养老保险股份有限公司 | Page jump method, device, computer equipment and storage medium |
CN110196729B (en) * | 2018-11-30 | 2022-02-08 | 腾讯科技(深圳)有限公司 | Application program updating method, device and apparatus and storage medium |
CN111679850B (en) * | 2019-03-11 | 2023-06-02 | 阿里巴巴集团控股有限公司 | Application program hot update processing method, device and system |
US11907734B2 (en) * | 2019-04-24 | 2024-02-20 | Salesforce.Com, Inc. | Dynamic linking of content elements to development tool resources |
CN111723313A (en) * | 2020-06-23 | 2020-09-29 | 中国平安财产保险股份有限公司 | Page jump processing method, device, equipment and storage medium |
CN112632420A (en) * | 2020-12-24 | 2021-04-09 | 青岛海尔科技有限公司 | Interface skipping method and device, storage medium and electronic device |
-
2021
- 2021-09-18 CN CN202111101956.7A patent/CN113805968B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108153768A (en) * | 2016-12-05 | 2018-06-12 | 腾讯科技(深圳)有限公司 | Method for page jump, data processing method, device and page jump control system |
Also Published As
Publication number | Publication date |
---|---|
CN113805968A (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209652B (en) | Data table migration method, device, computer equipment and storage medium | |
CN110688598B (en) | Service parameter acquisition method and device, computer equipment and storage medium | |
CN110069297B (en) | SPRING MVC-based exception handling method, SPRING MVC-based exception handling device, computer equipment and storage medium | |
CN109814854B (en) | Project framework generation method, device, computer equipment and storage medium | |
CN110908778B (en) | Task deployment method, system and storage medium | |
CN109547426B (en) | Service response method and server | |
CN108418797B (en) | Webpage access method and device, computer equipment and storage medium | |
CN108959384B (en) | Webpage data acquisition method and device, computer equipment and storage medium | |
CN111182065A (en) | Message processing method and device based on MQTT protocol and computer equipment | |
CN110266792B (en) | Address translation method, address translation device, address translation equipment and computer-readable storage medium | |
CN112597020A (en) | Interface testing method and device, computer equipment and storage medium | |
CN110597541A (en) | Interface updating processing method, device, equipment and storage medium based on block chain | |
CN108595280B (en) | Interface adaptation method and device, computer equipment and storage medium | |
CN112800410A (en) | Multi-product login management method, device, equipment and storage medium | |
CN113472803A (en) | Vulnerability attack state detection method and device, computer equipment and storage medium | |
CN109040284B (en) | Information display and information push method, device, equipment and storage medium | |
CN110119277A (en) | Data sharing method, device, computer equipment and storage medium | |
CN113805968B (en) | Function execution method and device of application program, computer equipment and storage medium | |
CN116661936A (en) | Page data processing method and device, computer equipment and storage medium | |
CN110633432A (en) | Method, device, terminal equipment and medium for acquiring data | |
CN114124883B (en) | Data access method and device based on cloud storage address, computer equipment and medium | |
US20150206075A1 (en) | Efficient Decision Making | |
CN111966506B (en) | Content sharing method based on different application programs and computer equipment | |
CN112817816B (en) | Embedded point processing method and device, computer equipment and storage medium | |
CN115374154A (en) | Data verification method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |