Command execution method and device, equipment and storage medium

By obtaining and storing the system code and control instructions of the command management system from the web server during game development, the problem of inefficiency in cross-platform and cross-engine testing is solved, a cross-platform and cross-engine command management system is realized, and game development is improved. Test efficiency.

CN118543101APending Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310216556.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the game development process, existing technology cannot implement a cross-platform and cross-engine GM command management system, resulting in low efficiency for game developers during the testing process.

Method used

Obtain the system code of the command management system from the web server through the browser, display the system page of the command management system, and generate corresponding control instructions in response to user operations to perform the operation. The system code and control instructions of the command management system are stored in the web server.

Benefits of technology

It realizes cross-platform and cross-engine control of the application client to perform different operations through the command management system, improves the efficiency of command execution, and simplifies the development and testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118543101A
    Figure CN118543101A
Patent Text Reader

Abstract

The embodiment of the invention discloses a command execution method and device, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the steps that a system code of a command management system is obtained from a web server through a browser, the command management system is used for managing command controls, and different command controls are used for controlling an application client to execute different operations; based on the system code, displaying a system page of the command management system in a browser interface, the system page including the command control; in response to a trigger operation on a first command control in the system page, executing a first operation through the application client based on a first control instruction corresponding to the first command control, the control instruction corresponding to the command control being stored in the web server; the application client is controlled to execute different operations through the command management system in a cross-platform and cross-engine manner, and the command execution efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a command execution method, apparatus, device and storage medium. Background Art

[0002] During the game development process, game developers can test the game process by generating GM commands (Game Manager Command).

[0003] In the related technology, the GM command management system is developed by utilizing the technology stack within the game engine, and the execution code corresponding to the GM command is stored in the game installation package along with the game release version. As a result, game developers or game testers are unable to implement cross-platform and cross-engine testing operations during the process of game development and testing through GM commands. Summary of the invention

[0004] The embodiments of the present application provide a command execution method, apparatus, device and storage medium, which can realize cross-platform and cross-engine control of application clients to perform different operations through a command management system, thereby improving the efficiency of command execution. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a command execution method, which is used in a terminal and includes:

[0006] Obtaining a system code of a command management system from a web server through a browser, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations;

[0007] Based on the system code, displaying a system page of the command management system in a browser interface, wherein the system page includes the command control;

[0008] In response to a triggering operation on a first command control in the system page, a first operation is performed through the application client based on a first control instruction corresponding to the first command control, wherein the control instruction corresponding to the command control is stored in the web server.

[0009] On the other hand, an embodiment of the present application provides a command execution method, which is used for a web server, and the method includes:

[0010] Receiving a system access request of a command management system sent by a terminal, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations;

[0011] Sending the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code;

[0012] In case of receiving a trigger result corresponding to a first command control sent by the terminal, a first control instruction corresponding to the first command control is determined so that the terminal performs a first operation through the application client.

[0013] On the other hand, an embodiment of the present application provides a command execution device, the device comprising:

[0014] A first acquisition module is used to acquire a system code of a command management system from a web server through a browser, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations;

[0015] A display module, configured to display a system page of the command management system in a browser interface based on the system code, wherein the system page includes the command control;

[0016] An operation execution module is used to respond to a trigger operation on a first command control in the system page and execute a first operation through the application client based on a first control instruction corresponding to the first command control, wherein the control instruction corresponding to the command control is stored in the web server.

[0017] On the other hand, an embodiment of the present application provides a command execution device, the device comprising:

[0018] A first receiving module, configured to receive a system access request from a command management system sent by a terminal, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations;

[0019] A sending module, used for sending the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code;

[0020] The instruction determination module is used to determine the first control instruction corresponding to the first command control when receiving the trigger result corresponding to the first command control sent by the terminal, so that the terminal performs a first operation through the application client.

[0021] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the command execution method described in the above aspect.

[0022] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the command execution method described in the above aspects.

[0023] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the command execution method provided by the above aspect.

[0024] In an embodiment of the present application, the system code of the command management system and the control instructions corresponding to each command control in the command management system are stored in a web server. The terminal can obtain the system code of the command management system from the web server through a browser, and then display the system page of the command management system in the browser interface based on the system code. Then, when a user triggers a first command control in the system page, the application client executes a first operation based on the first control instruction corresponding to the first command control. By adopting the solution provided in an embodiment of the present application, it is possible to control the application client to execute different operations through the command management system across platforms and engines, perform development and testing, and improve the efficiency of command execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram showing an implementation environment provided by an embodiment of the present application is shown;

[0026] Figure 2 A flowchart of a command execution method provided by an exemplary embodiment of the present application is shown;

[0027] Figure 3 A flowchart of a command execution method provided by another exemplary embodiment of the present application is shown;

[0028] Figure 4 A schematic diagram showing a display of a system page of a command management system provided by an exemplary embodiment of the present application is shown;

[0029] Figure 5 A flowchart of a command execution method provided by another exemplary embodiment of the present application is shown;

[0030] Figure 6 A schematic diagram showing a display of a system page of a command management system provided by another exemplary embodiment of the present application is shown;

[0031] Figure 7A flowchart of link binding between an application client and a web server provided by an exemplary embodiment of the present application is shown;

[0032] Figure 8 A schematic diagram showing a browser client remotely controlling an application client provided by an exemplary embodiment of the present application is shown;

[0033] Fig. 9 A schematic diagram showing editing of a command control in a system page provided by an exemplary embodiment of the present application is shown;

[0034] Fig.10 A flowchart of a command execution method provided by another exemplary embodiment of the present application is shown;

[0035] Fig.11 A structural block diagram of a command execution device provided by an exemplary embodiment of the present application is shown;

[0036] Fig.12 A structural block diagram of a command execution device provided by another exemplary embodiment of the present application is shown;

[0037] Fig.13 A schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0039] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes a first terminal 120, a web server 140, and a second terminal 160. Among them, data communication is performed between the first terminal 120 and the web server 140, and between the second terminal 160 and the web server 140 through a communication network. Optionally, the communication network can be a wired network or a wireless network, and the communication network can be at least one of a local area network, a metropolitan area network, and a wide area network.

[0040] The first terminal 120 is an electronic device installed with an application program and an application client having a command management system function. The command management system function may be a function of a native application in the terminal, or a function of a third-party application; the electronic device may be a smart phone, a tablet computer, a personal computer, a wearable device, or a vehicle-mounted terminal, etc. Figure 1 In the description, the first terminal 120 is taken as a personal computer as an example, but this is not a limitation.

[0041] The second terminal 160 is an electronic device installed with an application client, which may be a smart phone, a tablet computer, a personal computer, a wearable device, or a vehicle-mounted terminal, etc. Figure 1 In the description, the second terminal 160 is taken as a smart phone as an example, but this is not a limitation.

[0042] The web server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. In the embodiment of the present application, the web server 140 may be a background server of an application having a function of running a command management system.

[0043] In one possible implementation, Figure 1 As shown, there is data interaction between the web server 140 and the first terminal 120. The first terminal 120 obtains the system code of the command management system from the web server 140 through the browser, and based on the system code, displays the system page of the command management system in the browser interface, and the system interface displays the command control. Further, in response to the user's triggering operation on the first command control in the system page, the first terminal 120 sends the instruction execution data corresponding to the triggering operation to the web server 140, and generates a first control instruction through the web server 140, and then the web server 140 returns the first control instruction to the first terminal 120, and the first terminal 120 executes the first operation through the application client based on the first control instruction.

[0044] In another possible implementation, Figure 1 As shown, there is data interaction between the web server 140 and the first terminal 120 and the second terminal 160. The first terminal 120 obtains the system code of the command management system from the web server 140 through the browser, and based on the system code, displays the system page of the command management system in the browser interface, and the system interface displays the command control. Further, in response to the user's triggering operation on the first command control in the system page, the first terminal 120 sends the instruction execution data corresponding to the triggering operation to the web server 140, and generates a first control instruction through the web server 140, and then the web server 140 sends the first control instruction to the second terminal 160, and the second terminal 160 executes the first operation through the application client based on the first control instruction.

[0045] Please refer to Figure 2, which shows a flowchart of a command execution method provided by an exemplary embodiment of the present application. In this embodiment, the method is used as follows Figure 1 Taking the terminal 120 and the web server 140 as an example, the method includes the following steps:

[0046] Step 201, obtaining the system code of the command management system from the web server through the browser, the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations.

[0047] Unlike the related art, in which a command management system corresponding to an application client is developed through the technology stack inside the application client, and the system code of the command management system is stored in the installation package corresponding to the application client, resulting in the inability to control the application client to execute operation commands through the command management system across engines and platforms. In the embodiment of the present application, the system code of the command management system corresponding to the application client is stored in a web server. When there is a need to control the application client to execute operation commands through the command management system, the terminal obtains the system code of the command management system from the web server, thereby achieving cross-platform and cross-engine control of the application client to execute different operations through the command management system.

[0048] Optionally, the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations. In one possible implementation, in order to facilitate the user to determine the target command control from multiple command controls, the command controls in the command management system can be classified and managed according to the operation type corresponding to each command control.

[0049] In an illustrative example, the command management system is a GM command (Game Manager Command) management system. Game developers can develop the GM command management system through a web technology stack and store the system code of the GM command management system in a web server outside the game engine.

[0050] In a possible implementation, the terminal obtains the system code of the command management system from the web server through a browser. Optionally, the terminal can obtain the system code of the command management system from the web server based on the system access request by sending a system access request of the command management system to the web server.

[0051] Optionally, the browser may be a browser located inside the application client, or may be a browser located outside the application client and inside the browser client, which is not limited in the embodiments of the present application.

[0052] Optionally, when the browser is located in the browser client, the browser client and the application client may be located in the same terminal or in different terminals, which is not limited in this embodiment of the present application.

[0053] Step 202: Based on the system code, a system page of the command management system is displayed in a browser interface, wherein the system page includes a command control.

[0054] In a possible implementation, after obtaining the system code of the command management system from the web server, the terminal renders and displays the system page of the command management system in the browser interface based on the system code, wherein the system page includes a command control.

[0055] In a possible implementation, in order to facilitate users to determine the target command control from multiple command controls, the command controls can be classified and displayed in the system page of the command management system according to the operation type corresponding to each command control. Optionally, in addition to the command controls, the system page can also include category management controls, user information management controls, refresh controls, etc., which are not limited to the embodiments of the present application.

[0056] In an illustrative example, the command management system is a GM command management system. Depending on the type of game, different command controls can be displayed in the GM command management system, such as setting character attribute controls, setting game time controls, skipping main mission controls, teleporting coordinate controls, and so on.

[0057] Step 203, in response to a triggering operation on a first command control in the system page, based on a first control instruction corresponding to the first command control, a first operation is performed through the application client, wherein the control instruction corresponding to the command control is stored in the web server.

[0058] In a possible implementation, upon receiving a trigger operation of a first command control by a user in a system page, the terminal determines a corresponding first control instruction based on the first command control, and thereby performs a first operation through an application client based on the first control instruction.

[0059] In a possible implementation, for command controls of different operation types, the method of determining control instructions is also different. Optionally, for command controls of the direct execution type, in response to the user's triggering operation on the first command control in the system page, the terminal can directly determine the first control instruction corresponding to the first command control. For example, in response to the user's triggering operation on the skip main task control, the terminal can directly determine that the first control instruction is to skip the main task; for command controls of the parameter setting type, in response to the user's triggering operation on the first command control in the system page, the terminal needs to display the parameter setting window corresponding to the first command control, and receive the user's parameter setting operation in the parameter setting window, thereby determining the first control instruction based on the parameters set by the user. For example, in response to the user's triggering operation on the setting game time control, the terminal can display the game time setting window, and the user sets the game time, thereby determining the first control instruction based on the game time set by the user.

[0060] In a possible implementation, the control instructions corresponding to each command control in the command management system are stored in the web server, similar to the system code of the command management system. Optionally, when the terminal obtains the system code of the command management system from the web server through the browser, the terminal can also obtain the control instructions corresponding to each command control from the web server, so that in response to the user's triggering operation on the first command control, the terminal generates the first control instruction; optionally, the terminal may not obtain the control instructions corresponding to each command control from the web server, and when receiving the user's triggering operation on the first command control, the terminal can send the instruction data corresponding to the triggering operation to the web server, so that the web server generates the first control instruction.

[0061] To sum up, in the embodiment of the present application, the system code of the command management system and the control instructions corresponding to each command control in the command management system are stored in the web server. The terminal can obtain the system code of the command management system from the web server through the browser, and then display the system page of the command management system in the browser interface based on the system code. Then, when the user triggers the operation of the first command control in the system page, the first operation is executed through the application client based on the first control instruction corresponding to the first command control. By adopting the solution provided in the embodiment of the present application, it is possible to control the application client to execute different operations through the command management system across platforms and engines, perform development and testing, and improve the efficiency of command execution.

[0062] In a possible implementation, in order to facilitate the control of the application client to perform different operations, a browser can be set inside the application client, thereby opening the system page of the command management system through the browser interface inside the application client and receiving the user's triggering operation on the command control in the system page.

[0063] Please refer to Figure 3 , which shows a flowchart of a command execution method provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 Taking the terminal 120 and the web server 140 as an example, the method includes the following steps:

[0064] Step 301, obtaining the system code of the command management system from the web server through the browser, the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations.

[0065] Step 302: Based on the system code, a system page of the command management system is displayed in a browser interface, wherein the system page includes a command control.

[0066] The specific implementation of steps 301 to 302 may refer to steps 201 to 202, which will not be described in detail in this embodiment.

[0067] Step 303: When the browser is located inside the application client, in response to a triggering operation on a first command control in the system page, a first control instruction corresponding to the first command control is obtained.

[0068] In a possible implementation, when the browser is located inside the application client, after the terminal obtains the system code of the command management system from the web server through the browser, the terminal can render and display the system page of the command management system in the browser interface inside the application client, so that when the user triggers the first command control in the system page, the terminal obtains the first control instruction corresponding to the first command control.

[0069] Indicatively, Figure 4 As shown, the terminal opens a browser interface inside the application client, and displays a system page 401 of the command management system in the browser interface, wherein the system page 401 includes a plurality of command controls.

[0070] In a possible implementation, the terminal only obtains the system code of the command management system from the web server through the browser. When receiving the user's trigger operation on the first command control in the system page, the terminal determines the trigger result corresponding to the first command control, wherein the trigger result represents the instruction execution data corresponding to the first command control. For example, in the GM command management system, the trigger result corresponding to the game time control is the game time set by the user, and the trigger result corresponding to the transmission coordinate control is the transmission coordinate set by the user.

[0071] Furthermore, considering that the control instructions corresponding to the command control are stored in the web server, the terminal sends the trigger result corresponding to the first command control to the web server, and the web server generates a first control instruction corresponding to the first command control based on the stored control instructions corresponding to the command control and the trigger result corresponding to the first command control, and sends the first control instruction to the terminal, and the terminal receives the first control instruction sent by the web server.

[0072] In a possible implementation, while the terminal obtains the system code of the command management system from the web server through the browser, the terminal also obtains the control instruction corresponding to the command control from the web server through the browser, so that when the user triggers the first command control in the system page, the terminal generates a first control instruction corresponding to the first command control based on the trigger result corresponding to the first command control and the control instruction corresponding to the command control.

[0073] Indicatively, Figure 4 As shown, in response to the triggering operation on the first command control 402 in the system page 401, the terminal displays the parameter setting window 403 corresponding to the first command control 402. After receiving the parameter setting operation of the user in the parameter setting window 403, in response to the user's triggering operation on the execution control 404, the terminal generates a first control instruction corresponding to the first command control 402 based on obtaining the control instruction corresponding to the command control from the web server.

[0074] Step 304: Based on the first control instruction, a first operation is performed by the application client where the browser is located.

[0075] In a possible implementation, after determining the first control instruction, the terminal directly executes the first operation corresponding to the first control instruction through the application client where the browser is located.

[0076] In the above embodiment, by opening a browser interface inside the application client and displaying the system page of the command management system in the browser interface, the terminal can respond to the user's triggering operation on the command control. The terminal can directly execute the first operation through the application client based on the first control instruction, thereby improving the efficiency of command execution and helping the user to directly observe the operation result corresponding to the first operation.

[0077] In one possible implementation, in order to facilitate the opening of the command management system and improve the efficiency of determining the first control instruction, the terminal can also set the browser outside the application client, that is, set it in the browser client corresponding to the browser, so as to display the system page of the command management system in the browser interface in the browser client, and determine the first control instruction, thereby realizing remote control of the execution operation of the application client.

[0078] Please refer to Figure 5 , which shows a flowchart of a command execution method provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 Taking the terminal 120 and the web server 140 as an example, the method includes the following steps:

[0079] Step 501, obtaining the system code of the command management system from the web server through the browser, the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations.

[0080] Step 502: Based on the system code, a system page of the command management system is displayed in a browser interface, wherein the system page includes a command control.

[0081] The specific implementation of steps 501 to 502 may refer to steps 201 to 202, which will not be described in detail in this embodiment.

[0082] Step 503, when the browser is located at the browser client, in response to the trigger operation of the first command control in the system page, determine the trigger result corresponding to the first command control, the trigger result represents the instruction execution data corresponding to the first command control.

[0083] In a possible implementation, when the browser is located in the browser client, after the terminal obtains the system code of the command management system from the web server through the browser, the system page of the command management system can be rendered and displayed in the browser interface within the browser client based on the system code, and then the user's trigger operation on the first command control in the system page can be received.

[0084] In a possible implementation, upon receiving a user's trigger operation on a first command control in a system page, the terminal determines a trigger result corresponding to the first command control, wherein the trigger result represents instruction execution data corresponding to the first command control. For example, in a GM command management system, the trigger result corresponding to the game time control is the game time set by the user, and the trigger result corresponding to the teleportation coordinate control is the teleportation coordinate set by the user.

[0085] Indicatively, Figure 6 As shown, when the browser is located at the browser client, the terminal displays the system page 601 of the command management system in the browser interface, and the system page 601 includes multiple command controls. In response to the user's triggering operation on the transmission coordinate control 602, the terminal displays the parameter setting window 603 corresponding to the transmission coordinate control 602 in the browser interface. When receiving the user's parameter setting operation in the parameter setting window 603, in response to the user's triggering operation on the execution control 604, the terminal determines the trigger result corresponding to the transmission coordinate control 602.

[0086] Step 504: Send the trigger result to the web server, and generate a first control instruction corresponding to the first command control through the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client.

[0087] In one possible implementation, after determining the trigger result corresponding to the first command control, the terminal sends the trigger result to the web server, whereupon the web server generates a first control instruction based on the control instructions corresponding to the stored command control and the trigger result corresponding to the first command control, and sends the first control instruction to the terminal corresponding to the application client through the web server.

[0088] In one possible implementation, since the browser is located in the browser client but not inside the application client, after the trigger result is sent to the web server and the first control instruction is generated by the web server, in order to ensure that the web server can send the first control instruction to the corresponding application client and avoid the problem of incorrect instruction sending, the application client can be identified by setting a client identifier.

[0089] In a possible implementation, a web server receives a link binding request sent by a terminal corresponding to each application client, the link binding request at least including a client identifier corresponding to each application client, wherein the client identifier corresponds to the application client one-to-one, and then after the terminal obtains the system code of the command management system from the web server through a browser, the web server sends a link binding notification to the terminal, the link binding notification including the link binding relationship currently existing on the web server, and the terminal receives the link binding notification. Furthermore, before the terminal sends the trigger result to the web server, the terminal first determines the client identifier of the application client, and determines the link status between the application client and the web server based on the client identifier and the link binding notification sent by the web server, so that when it is determined that the application client and the web server are in a link status, the terminal sends the trigger result and the client identifier to the web server, so that the web server sends the generated first control instruction to the terminal corresponding to the application client based on the client identifier.

[0090] Optionally, the client identifier on the browser client side is manually input by the user; the client identifier on the application client side can be manually input by the user or automatically generated by the terminal, which is not limited in the embodiments of the present application.

[0091] Indicatively, Figure 7 As shown, the terminal corresponding to the application client 701 sends a link binding request to the web server 702, and the link binding request includes a client identifier, so that the web server 702 establishes a link with the application client 701 based on the client identifier, and sends a link binding notification to the terminal corresponding to the browser client 703, and the link binding notification includes the link binding relationship currently existing in the web server 702.

[0092] Indicatively, Figure 8 As shown, the terminal determines the client identifier in the browser client 801. When it is determined that the application client corresponding to the client identifier is the application client 803 that establishes a link with the web server 802, the terminal sends the client identifier and the instruction execution data represented by the trigger result to the web server 802, so that the web server 802 generates a first control instruction and sends the first control instruction to the application client 803 based on the client identifier.

[0093] In a possible implementation, when the browser client and the application client belong to the same terminal, the terminal sends the trigger result to the web server, and after the web server generates the first control instruction, considering that the web server can directly return the first control instruction to the terminal, that is, the process only involves data interaction between the terminal and the web server, and there are no other terminals, the terminal can omit the step of determining the client identifier when sending the trigger result to the web server.

[0094] In a possible implementation, when the browser client and the application client belong to different terminals, that is, there is data interaction between the web server and multiple terminals, in order to avoid the web server from erroneously sending the first control instruction, the terminal needs to send the client identifier of the corresponding terminal to the web server while sending the trigger result to the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client based on the client identifier.

[0095] Step 505: Based on the first control instruction, the application client that receives the first control instruction executes a first operation.

[0096] In a possible implementation, when the browser client and the application client belong to the same terminal, after receiving the first control instruction sent by the web server, the terminal performs the first operation through the application client based on the first control instruction.

[0097] In a possible implementation, when the browser client and the application client belong to different terminals, the web server sends the first control instruction to the corresponding terminal based on the client identifier, and executes the first operation through the application client in the corresponding terminal.

[0098] In the above embodiment, when the browser is located at the browser client, the terminal obtains the client identifier entered by the user in the system page, and determines the link status between the application client and the web server based on the client identifier and the link binding notification sent by the web server. Therefore, when the application client and the web server are in a linked state, the terminal sends the client identifier and the trigger result to the web server, and the web server generates a first control instruction, and sends the first control instruction to the terminal corresponding to the application client based on the client identifier, thereby improving the accuracy of remote control of the application client through the browser client and improving the efficiency of command execution.

[0099] In one possible implementation, in order to improve the efficiency of managing command controls through the command management system and flexibly adjust the command controls within the system page, the terminal can also receive user editing operations on command controls within the system page, and based on the editing operations, refresh the system page and update the system code of the command management system.

[0100] In one possible implementation, after obtaining the system code of the command management system from the web server through the browser and rendering and displaying the system page of the command management system based on the system code, in response to the user's editing operation on the command control in the system page, the terminal refreshes the system page displayed in the browser interface and updates the system code of the command management system. Furthermore, in order to ensure that the editing operation can be synchronized when the system page of the command management system is opened again or when other terminals open the system page of the command management system, the terminal can also send the updated system code of the command management system to the web server so that the web server can update the stored system code.

[0101] Optionally, the editing operation may include at least one of a modification operation, an addition operation, and a deletion operation, wherein the modification operation may be to modify the command name corresponding to the command control, or to modify the execution instruction data corresponding to the command control, or to modify the control category corresponding to the command control, etc., and the embodiments of the present application are not limited to this.

[0102] Indicatively, Fig. 9 As shown, in response to the user's triggering operation on the command adding control 902 in the system page 901, the terminal displays the command adding window 903 on the system page 901. After receiving the user's editing operation in the command adding window 903, in response to the user's triggering operation on the adding control 904, the terminal adds a command control 905 to the system page 901 and updates the system code of the command management system.

[0103] In a possible implementation, in order to avoid frequent updates of the system code in the web server and improve the accuracy of the system code update, the terminal can also set an update control in the system page. In response to the user's triggering operation on the update control, the terminal sends the updated system code to the web server.

[0104] In the above embodiment, after the system page is displayed in the browser interface, the terminal timely updates the system code of the command management system based on the received user's editing operation on the command control in the system page, and sends the updated system code to the web server, thereby ensuring the update frequency of the system code of the command management system in the web server, so that other users can also obtain the updated system code in time.

[0105] Furthermore, by editing the command control in the system page, the system code of the command management system in the web server is updated, which avoids the user from repeatedly developing the command management system when there is a new execution instruction demand, thereby reducing resource consumption.

[0106] Please refer to Fig.10 , which shows a flowchart of a command execution method provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 Taking the terminal 120 and the web server 140 as an example, the method includes the following steps:

[0107] Step 1001: receiving a system access request of a command management system sent by a terminal, where the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations.

[0108] In a possible implementation, the web server receives a system access request for the command management system sent by the terminal, where the system access request is used to obtain a system code of the command management system from the web server.

[0109] Optionally, the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations. In one possible implementation, in order to facilitate the user to determine the target command control from multiple command controls, the command controls in the command management system can be classified and managed according to the operation type corresponding to each command control.

[0110] Step 1002: Send the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code.

[0111] In a possible implementation, after receiving a system access request for the command management system sent by the terminal, the web server sends a system code of the command management system to the terminal, so that the terminal displays a system page of the command management system in a browser interface based on the system code.

[0112] In a possible implementation, after sending the system code of the command management system to the terminal, in order to improve the efficiency of the user in managing the command control through the command management system, the user can edit the command control of the command management system at the terminal, wherein the editing operation may include at least one of a modification operation, an addition operation, and a deletion operation. Then, the terminal updates the system code of the command management system based on the editing operation, and sends the updated system code to the web server, so that the web server receives the updated system code sent by the terminal, and updates the stored system code of the command management system based on the updated system code.

[0113] Step 1003: upon receiving a trigger result corresponding to a first command control sent by the terminal, determining a first control instruction corresponding to the first command control so that the terminal performs a first operation through the application client.

[0114] In a possible implementation, the terminal receives a trigger operation of a user on a first command control in a system page, and determines a trigger result corresponding to the first command control, wherein the trigger result represents instruction execution data corresponding to the first command control, and then the terminal sends the trigger result to a web server. Upon receiving the trigger result corresponding to the first command control sent by the terminal, the web server determines a first control instruction corresponding to the first command control based on the trigger result and the control instruction corresponding to the command control, and sends the first control instruction to the terminal corresponding to the application client, so that the terminal executes the first operation through the application client.

[0115] To summarize, in the embodiment of the present application, the system code of the command management system and the control instructions corresponding to each command control in the command management system are stored in the web server. When the web server receives a system access request for the command management system sent by the terminal, the web server sends the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code, and thus when the trigger result corresponding to the first command control sent by the terminal is received, the first control instruction corresponding to the first command control is determined, thereby realizing cross-platform and cross-engine control of the application client through the command management system to perform different operations, thereby improving the efficiency of command execution.

[0116] Please refer to Fig.11 , which shows a structural block diagram of a command execution device provided by an exemplary embodiment of the present application, the device comprising:

[0117] A first acquisition module 1101 is used to acquire a system code of a command management system from a web server through a browser, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations;

[0118] A display module 1102 is used to display a system page of the command management system in a browser interface based on the system code, wherein the system page includes the command control;

[0119] The operation execution module 1103 is used to respond to the triggering operation of the first command control in the system page and execute the first operation through the application client based on the first control instruction corresponding to the first command control, wherein the control instruction corresponding to the command control is stored in the web server.

[0120] Optionally, the operation execution module 1103 includes:

[0121] an acquisition unit, configured to acquire, in response to a triggering operation on the first command control in the system page, the first control instruction corresponding to the first command control when the browser is located inside the application client;

[0122] The first execution unit is used to execute the first operation through the application client where the browser is located based on the first control instruction.

[0123] Optionally, the acquisition unit is used to:

[0124] In response to a trigger operation on the first command control in the system page, determining a trigger result corresponding to the first command control, wherein the trigger result represents instruction execution data corresponding to the first command control;

[0125] Sending the trigger result to the web server, and generating the first control instruction corresponding to the first command control through the web server;

[0126] Receive the first control instruction sent by the web server.

[0127] Optionally, before obtaining the first control instruction corresponding to the first command control in response to the triggering operation on the first command control in the system page, the device further includes:

[0128] A second acquisition module, used for acquiring the control instruction corresponding to the command control from the web server through the browser;

[0129] The acquisition unit is used to:

[0130] In response to a triggering operation on the first command control in the system page, the first control instruction corresponding to the first command control is generated.

[0131] Optionally, the operation execution module 1103 includes:

[0132] a determining unit, configured to determine, when the browser is located at a browser client, a trigger result corresponding to the first command control in response to a trigger operation on the first command control in the system page, wherein the trigger result represents instruction execution data corresponding to the first command control;

[0133] a sending unit, configured to send the trigger result to the web server, and generate the first control instruction corresponding to the first command control through the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client;

[0134] The second execution unit is configured to execute the first operation based on the first control instruction by the application client that has received the first control instruction.

[0135] Optionally, before sending the trigger result to the web server and generating, by the web server, the first control instruction corresponding to the first command control, the device further includes:

[0136] An identification determination module, used to determine a client identification of the application client, wherein the client identification corresponds to the application client in a one-to-one manner;

[0137] The sending unit is used for:

[0138] When the application client and the web server are in a linked state, the trigger result and the client identifier are sent to the web server, and the first control instruction corresponding to the first command control is generated by the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client based on the client identifier.

[0139] Optionally, the device further comprises:

[0140] A first receiving module, configured to receive a link binding notification sent by the web server, wherein the link binding notification includes a link binding relationship currently existing on the web server;

[0141] A state determination module is used to determine the link state between the application client and the web server based on the client identifier and the link binding notification.

[0142] Optionally, before the first operation is performed by the application client that has received the first control instruction based on the first control instruction, the device further includes:

[0143] A second receiving module, configured to receive the first control instruction sent by the web server when the browser client and the application client belong to the same terminal;

[0144] The first sending module is used to send the first control instruction to the terminal corresponding to the application client through the web server when the browser client and the application client belong to different terminals.

[0145] Optionally, the operation execution module 1103 is used to:

[0146] In the case where the first command control is a direct execution type control, in response to a triggering operation on the first command control, determining the first control instruction corresponding to the first command control; and executing the first operation through the application client based on the first control instruction;

[0147] In the case where the first command control is a parameter setting type control, in response to a triggering operation on the first command control, a parameter setting window corresponding to the first command control is displayed; in the case where a parameter setting operation in the parameter setting window is received, the first control instruction corresponding to the first command control is confirmed; based on the first control instruction, the first operation is executed through the application client.

[0148] Optionally, after displaying the system page of the command management system in the browser interface based on the system code, the device further includes:

[0149] An update module, configured to update the system code of the command management system in response to an edit operation on the command control in the system page, wherein the edit operation includes at least one of a modify operation, an add operation, and a delete operation;

[0150] The second sending module is used to send the updated system code to the web server so that the web server updates the stored system code of the command management system.

[0151] To sum up, in the embodiment of the present application, the system code of the command management system and the control instructions corresponding to each command control in the command management system are stored in the web server. The terminal can obtain the system code of the command management system from the web server through the browser, and then display the system page of the command management system in the browser interface based on the system code. Then, when the user triggers the operation of the first command control in the system page, the first operation is executed through the application client based on the first control instruction corresponding to the first command control. By adopting the solution provided in the embodiment of the present application, it is possible to control the application client to execute different operations through the command management system across platforms and engines, perform development and testing, and improve the efficiency of command execution.

[0152] Please refer to Fig.12 , which shows a structural block diagram of a command execution device provided by another exemplary embodiment of the present application, the device comprising:

[0153] A first receiving module 1201 is used to receive a system access request of a command management system sent by a terminal, wherein the command management system is used to manage command controls, wherein different command controls are used to control the application client to perform different operations;

[0154] A sending module 1202 is used to send the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code;

[0155] The instruction determination module 1203 is used to determine the first control instruction corresponding to the first command control when receiving the trigger result corresponding to the first command control sent by the terminal, so that the terminal performs a first operation through the application client.

[0156] Optionally, after sending the system code of the command management system to the terminal, the device further includes:

[0157] A second receiving module, used for receiving the updated system code sent by the terminal;

[0158] An updating module is used to update the stored system code of the command management system based on the updated system code.

[0159] To summarize, in the embodiment of the present application, the system code of the command management system and the control instructions corresponding to each command control in the command management system are stored in the web server. When the web server receives a system access request for the command management system sent by the terminal, the web server sends the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code, and thus when the trigger result corresponding to the first command control sent by the terminal is received, the first control instruction corresponding to the first command control is determined, thereby realizing cross-platform and cross-engine control of the application client through the command management system to perform different operations, thereby improving the efficiency of command execution.

[0160] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0161] Please refer to Fig.13 , which shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. Specifically, the computer device 1300 includes a central processing unit (CPU) 1301, a system memory 1304 including a random access memory 1302 and a read-only memory 1303, and a system bus 1305 connecting the system memory 1304 and the central processing unit 1301. The computer device 1300 also includes a basic input / output system (I / O system) 1306 that helps transmit information between various devices in the computer, and a large-capacity storage device 1307 for storing an operating system 1313, application programs 1314 and other program modules 1315.

[0162] The basic input / output system 1306 includes a display 1308 for displaying information and an input device 1309 such as a mouse and a keyboard for user inputting information. The display 1308 and the input device 1309 are connected to the central processing unit 1301 through an input / output controller 1310 connected to the system bus 1305. The basic input / output system 1306 may also include an input / output controller 1310 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1310 also provides output to a display screen, a printer, or other types of output devices.

[0163] The mass storage device 1307 is connected to the central processing unit 1301 through a mass storage controller (not shown) connected to the system bus 1305. The mass storage device 1307 and its associated computer readable media provide non-volatile storage for the computer device 1300. That is, the mass storage device 1307 may include a computer readable medium (not shown) such as a hard disk or drive.

[0164] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include random access memory (RAM), read-only memory (ROM), flash memory or other solid-state storage technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, cassette, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1304 and mass storage device 1307 can be collectively referred to as memory.

[0165] The memory stores one or more programs, and the one or more programs are configured to be executed by one or more central processing units 1301. The one or more programs contain instructions for implementing the above-mentioned methods. The central processing unit 1301 executes the one or more programs to implement the methods provided by the above-mentioned various method embodiments.

[0166] According to various embodiments of the present application, the computer device 1300 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1300 can be connected to the network 1311 through the network interface unit 1312 connected to the system bus 1305, or the network interface unit 1312 can be used to connect to other types of networks or remote computer systems (not shown).

[0167] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the command execution method described in the above embodiment.

[0168] Optionally, the computer readable storage medium may include: ROM, RAM, solid state drives (SSD) or optical disks, etc. Among them, RAM may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).

[0169] The embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the command execution method described in the above embodiment.

[0170] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0171] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A command execution method, characterized in that: The method is used in a terminal, and the method includes: Obtaining a system code of a command management system from a web server through a browser, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations; Based on the system code, displaying a system page of the command management system in a browser interface, wherein the system page includes the command control; In response to a triggering operation on a first command control in the system page, a first operation is performed through the application client based on a first control instruction corresponding to the first command control, wherein the control instruction corresponding to the command control is stored in the web server.

2. The method according to claim 1, characterized in that The step of responding to the triggering operation of the first command control in the system page and executing the first operation through the application client based on the first control instruction corresponding to the first command control includes: In a case where the browser is located inside the application client, in response to a triggering operation on the first command control in the system page, acquiring the first control instruction corresponding to the first command control; Based on the first control instruction, the first operation is performed by the application client where the browser is located.

3. The method according to claim 2, characterized in that The acquiring, in response to the triggering operation on the first command control in the system page, the first control instruction corresponding to the first command control includes: In response to a trigger operation on the first command control in the system page, determining a trigger result corresponding to the first command control, wherein the trigger result represents instruction execution data corresponding to the first command control; Sending the trigger result to the web server, and generating the first control instruction corresponding to the first command control through the web server; Receive the first control instruction sent by the web server.

4. The method according to claim 2, characterized in that: Before obtaining the first control instruction corresponding to the first command control in response to the triggering operation on the first command control in the system page, the method further includes: Obtaining the control instruction corresponding to the command control from the web server through the browser; The acquiring, in response to the triggering operation on the first command control in the system page, the first control instruction corresponding to the first command control includes: In response to a triggering operation on the first command control in the system page, the first control instruction corresponding to the first command control is generated.

5. The method according to claim 1, characterized in that The step of responding to the triggering operation of the first command control in the system page and executing the first operation through the application client based on the first control instruction corresponding to the first command control includes: In the case where the browser is located at the browser client, in response to a trigger operation on the first command control in the system page, determining a trigger result corresponding to the first command control, wherein the trigger result represents instruction execution data corresponding to the first command control; Sending the trigger result to the web server, generating the first control instruction corresponding to the first command control through the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client; Based on the first control instruction, the first operation is performed by the application client that receives the first control instruction.

6. The method according to claim 5, characterized in that Before sending the trigger result to the web server and generating the first control instruction corresponding to the first command control through the web server, the method further includes: Determine a client identifier of the application client, wherein the client identifier corresponds to the application client in a one-to-one manner; The sending the trigger result to the web server, and generating the first control instruction corresponding to the first command control through the web server, includes: When the application client and the web server are in a linked state, the trigger result and the client identifier are sent to the web server, and the first control instruction corresponding to the first command control is generated by the web server, so that the web server sends the first control instruction to the terminal corresponding to the application client based on the client identifier.

7. The method according to claim 6, characterized in that The method further comprises: receiving a link binding notification sent by the web server, wherein the link binding notification includes a link binding relationship currently existing on the web server; Based on the client identifier and the link binding notification, a link status between the application client and the web server is determined.

8. The method according to claim 5, characterized in that Before the first operation is performed by the application client that has received the first control instruction based on the first control instruction, the method further includes: In a case where the browser client and the application client belong to the same terminal, receiving the first control instruction sent by the web server; In the case that the browser client and the application client belong to different terminals, the first control instruction is sent to the terminal corresponding to the application client through the web server.

9. The method according to claim 1, characterized in that: The step of responding to the triggering operation of the first command control in the system page and executing the first operation through the application client based on the first control instruction corresponding to the first command control includes: In the case where the first command control is a direct execution type control, in response to a triggering operation on the first command control, determining the first control instruction corresponding to the first command control; and executing the first operation through the application client based on the first control instruction; In the case where the first command control is a parameter setting type control, in response to a triggering operation on the first command control, a parameter setting window corresponding to the first command control is displayed; in the case where a parameter setting operation in the parameter setting window is received, the first control instruction corresponding to the first command control is confirmed; based on the first control instruction, the first operation is executed through the application client.

10. The method according to claim 1, characterized in that After displaying the system page of the command management system in the browser interface based on the system code, the method further includes: In response to an edit operation on the command control in the system page, updating the system code of the command management system, the edit operation including at least one of a modify operation, an add operation, and a delete operation; The updated system code is sent to the web server so that the web server updates the stored system code of the command management system.

11. A command execution method, characterized in that: The method is used for a web server, and the method comprises: Receiving a system access request of a command management system sent by a terminal, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations; Sending the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code; In case of receiving a trigger result corresponding to a first command control sent by the terminal, a first control instruction corresponding to the first command control is determined so that the terminal performs a first operation through the application client.

12. The method according to claim 11, characterized in that After sending the system code of the command management system to the terminal, the method further includes: receiving an updated system code sent by the terminal; Based on the updated system code, the stored system code of the command management system is updated.

13. A command execution device, characterized in that: The device is used for a terminal, and the device includes: A first acquisition module is used to acquire a system code of a command management system from a web server through a browser, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations; A display module, configured to display a system page of the command management system in a browser interface based on the system code, wherein the system page includes the command control; An operation execution module is used to respond to a trigger operation on a first command control in the system page and execute a first operation through the application client based on a first control instruction corresponding to the first command control, wherein the control instruction corresponding to the command control is stored in the web server.

14. A command execution device, characterized in that: The device is used for a web server, and the device comprises: A first receiving module, configured to receive a system access request from a command management system sent by a terminal, wherein the command management system is used to manage command controls, wherein different command controls are used to control an application client to perform different operations; A sending module, used for sending the system code of the command management system to the terminal, so that the terminal displays the system page of the command management system in the browser interface based on the system code; The instruction determination module is used to determine the first control instruction corresponding to the first command control when receiving the trigger result corresponding to the first command control sent by the terminal, so that the terminal performs a first operation through the application client.

15. An electronic device, characterized in that: The electronic device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the command execution method described in any one of claims 1 to 10, or to implement the command execution method described in any one of claims 11 to 12.

16. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the command execution method according to any one of claims 1 to 10, or to implement the command execution method according to any one of claims 11 to 12.

17. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions. command, so that the electronic device implements the command execution method according to any one of claims 1 to 10, or, Implement the command execution method described in any one of claims 11 to 12.