Instruction processing method, device, equipment and storage medium
By performing compliance verification before sending server operation instructions, the problem of poor verification timeliness in the existing technology is solved, the security risks of the server are reduced, and more efficient compliance and security are achieved.
Patent Information
- Application Number
- CN202110713294.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-25
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2041-06-25
AI Technical Summary
The operation instructions verification method of existing servers is poor in time, which leads to non-compliant operations only after the command is completed, which brings great security risks to the server.
Before the operation instructions are sent to the server, the instruction management system determines whether the user's operation instructions are compliant in advance, and requires the user to resubmit when they are not compliant to ensure the timeliness of the verification process.
It ensures the timeliness of the verification process, reduces the security risks of the server, and improves the compliance of operation instructions and the security of the server.
Smart Images

Figure CN113312111B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an instruction processing method, apparatus, device and storage medium. Background Art
[0002] With the continuous advancement of informatization, the services provided by servers are becoming more and more complex, and user needs are becoming more and more diversified. This requires a more reasonable management model to ensure that the server runs flexibly, conveniently, safely and stably.
[0003] In the related art, in order to ensure the compliance of the user's operation on the server, a post-audit method is usually used to review the operation of the server. For example, after the user's operation instruction is completed, the server's operation log is reviewed to verify whether the server's historical operation instructions are compliant. However, this verification method has poor timeliness, and often non-compliant operations are discovered only after the instruction is completed, which will bring greater security risks to the server. Summary of the invention
[0004] The embodiments of the present disclosure provide a command processing method, device, equipment and storage medium, which are used to ensure the timeliness of the audit process of the operation command of the server and reduce the security risks of the server.
[0005] In a first aspect, an embodiment of the present disclosure provides an instruction processing method, which is applied to an instruction management system, including: obtaining a first identifier and an operation instruction sent by a client, the first identifier being used to determine a target server for executing the operation instruction; if the operation instruction meets the verification requirements of the target server, the operation instruction is sent to the target server so that the target server executes the operation instruction; if the operation instruction does not meet the verification requirements corresponding to the target server, the operation instruction is not sent to the server, and a first prompt message is sent to the client, the first prompt message being used to instruct the user to reselect the target server and / or re-trigger the operation instruction.
[0006] In some embodiments, the instruction processing method also includes: obtaining a verification type and at least one target verification requirement sent by a maintenance terminal, the verification type includes real-time verification, and the target verification requirement includes at least one of the following: the type of operation instructions executable by the server, the execution time of each type of operation instruction, and the user authority corresponding to each type of operation instruction; obtaining a second identifier sent by the maintenance terminal, the second identifier is used to determine the server to be configured for the verification rule to be configured; setting verification requirements for the server to be configured according to the verification type and the target verification requirements, and the server to be configured includes the target server.
[0007] In some embodiments, verification requirements are set for the server to be configured based on the verification type and the target verification requirements, including: determining a repeated target verification requirement in at least one target verification requirement; retaining one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured based on the verification type and the retained target verification requirements.
[0008] In some embodiments, the target verification requirements are grouped according to the type of the target verification requirements to obtain at least one verification requirement group; the logical order between each verification requirement group is determined according to a preset logical order; and the verification requirements are set for the server to be configured according to the verification type and the logical order between each verification requirement group.
[0009] In some embodiments, obtaining the operation instruction sent by the client includes: obtaining an online form sent by the client, the online form containing at least one operation instruction triggered by the user through the client; and obtaining the operation instruction in the online form.
[0010] In some embodiments, after sending the operation instruction to the target server, it also includes: obtaining execution information corresponding to the operation instruction sent by the target server; generating a status list corresponding to the operation instruction based on the execution information, the status list including the current execution status of the operation instruction; sending the status list to the maintenance terminal so that the maintenance terminal displays the status list.
[0011] In some embodiments, sending the operation instruction to the target server includes: sending at least one operation instruction to the target server through an instruction queue, wherein the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0012] In a second aspect, an embodiment of the present disclosure provides an instruction processing method, which is applied to a server, including: obtaining an operation instruction sent by an instruction management system, where the operation instruction is triggered by a user through a client, and the operation instruction meets the corresponding verification requirements of the server; executing the operation instruction; and outputting the execution result corresponding to the operation instruction to the client.
[0013] In some embodiments, executing an operation instruction includes: obtaining execution information corresponding to the operation instruction, the execution information including the execution time of the operation instruction and / or the execution method of the operation instruction; and executing the operation instruction according to the execution information.
[0014] In some embodiments, obtaining an operation instruction sent by the instruction management system includes: receiving at least one operation instruction sent by the instruction management system through an instruction queue, the at least one operation instruction including an operation instruction triggered by a user through a client.
[0015] In a third aspect, an embodiment of the present disclosure provides an instruction processing device, which is applied to an instruction management system. The instruction processing device includes:
[0016] An acquisition module is used to acquire a first identifier and an operation instruction sent by a client, wherein the first identifier is used to determine a target server for executing the operation instruction; a processing module is used to send the operation instruction to the target server when the operation instruction meets the verification requirements of the target server, so that the target server executes the operation instruction; and when the operation instruction does not meet the verification requirements corresponding to the target server, the operation instruction is not sent to the server, and a first prompt message is sent to the client, wherein the first prompt message is used to instruct the user to reselect the target server and / or re-trigger the operation instruction.
[0017] In some embodiments, the acquisition module is also used to: obtain the verification type and at least one target verification requirement sent by the maintenance terminal, the verification type includes real-time verification, and the target verification requirement includes at least one of the following: the type of operation instructions executable by the server, the execution time of each type of operation instructions, and the user rights corresponding to each type of operation instructions; obtain the second identifier sent by the maintenance terminal, and the second identifier is used to determine the server to be configured for the verification rule to be configured; the processing module is also used to: set verification requirements for the server to be configured according to the verification type and the target verification requirements, and the server to be configured includes the target server.
[0018] In some embodiments, the processing module is specifically used to: determine repeated target verification requirements in at least one target verification requirement; retain one target verification requirement in each group of repeated target verification requirements, and configure verification requirements for the server to be configured based on the verification type and the retained target verification requirements.
[0019] In some embodiments, the processing module is specifically used to: group the target verification requirements according to the type of the target verification requirements to obtain at least one verification requirement group; determine the logical order between each verification requirement group according to a preset logical order; and set the verification requirements for the server to be configured according to the verification type and the logical order between each verification requirement group.
[0020] In some embodiments, the acquisition module is specifically used to: acquire an online form sent by a client, the online form including at least one operation instruction triggered by a user through the client; and acquire the operation instruction in the online form.
[0021] In some embodiments, the acquisition module is also used to: obtain execution information corresponding to the operation instruction sent by the target server; the processing module is also used to: generate a status list corresponding to the operation instruction based on the execution information, the status list containing the current execution status of the operation instruction; and send the status list to the maintenance terminal so that the maintenance terminal displays the status list.
[0022] In some embodiments, the processing module is specifically used to: send at least one operation instruction to the target server through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0023] In a fourth aspect, an embodiment of the present disclosure provides an instruction processing device, which is applied to a server, and the instruction processing device includes:
[0024] The acquisition module is used to obtain the operation instructions sent by the instruction management system. The operation instructions are triggered by the user through the client, and the operation instructions meet the corresponding verification requirements of the server; the processing module is used to execute the operation instructions; the output module is used to output the execution results corresponding to the operation instructions to the client.
[0025] In some embodiments, the acquisition module is specifically used to: acquire execution information corresponding to the operation instruction, the execution information including the execution time of the operation instruction and / or the execution method of the operation instruction; and execute the operation instruction according to the execution information.
[0026] In some embodiments, the acquisition module is specifically used to: receive at least one operation instruction sent by the instruction management system through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0027] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising: a memory and at least one processor, the memory being used to store program instructions, the processor being used to call the program instructions in the memory to execute the instruction processing method as described in the first aspect and / or the second aspect.
[0028] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon; when the computer program is executed, the instruction processing method as described in the first aspect and / or the second aspect is implemented.
[0029] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the instruction processing method described in the first aspect and / or the second aspect.
[0030] The embodiments of the present disclosure provide an instruction processing method, apparatus, device and storage medium, the instruction processing method comprising: receiving a first selection operation and an operation instruction triggered by a user through a client; if the operation instruction meets the verification requirements of the target server, the operation instruction is sent to the target server so that the target server executes the operation instruction; if the operation instruction does not meet the verification requirements corresponding to the target server, the operation instruction is not sent to the server, and a first prompt message is sent to the client, the first prompt message is used to instruct the user to reselect the target server and / or re-trigger the operation instruction. Through this solution, before the server executes the operation instruction, the instruction management system verifies the compliance of the operation instruction, which can ensure the timeliness of the verification process, thereby reducing the security risks of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0032] Figure 1 A schematic diagram of a scenario of an instruction processing method provided by an embodiment of the present disclosure;
[0033] Figure 2 A flowchart of an instruction processing method provided by an embodiment of the present disclosure;
[0034] Figure 3 A flowchart of an instruction processing method provided by another embodiment of the present disclosure;
[0035] Figure 4 A flowchart of an instruction processing method provided by another embodiment of the present disclosure;
[0036] Figure 5 A schematic diagram of the structure of an instruction processing device provided by an embodiment of the present disclosure;
[0037] Figure 6 A schematic diagram of the structure of an instruction processing device provided by another embodiment of the present disclosure;
[0038] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present disclosure.
[0039] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0041] Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present disclosure.
[0042] In the context of the embodiments of the present disclosure, the term "including" and its various variations may be understood as open terms, which mean "including but not limited to"; the term "based on" may be understood as "based at least in part on"; the term "one embodiment" may be understood as "at least one embodiment"; the term "another embodiment" may be understood as "at least one other embodiment". Other terms that may appear but are not mentioned here should not be interpreted or defined in a manner inconsistent with the concepts on which the embodiments of the present disclosure are based, unless explicitly stated. Note that in the following description, "vehicle" may be used as an example of a means of transportation. However, the scope of the embodiments of the present disclosure is not limited to this, and any means of transportation that can adopt the charging system described herein is included in the scope of the embodiments of the present disclosure.
[0043] The description includes references to the accompanying drawings that form a part of the detailed description. The accompanying drawings show diagrams according to exemplary embodiments. These embodiments, which may also be referred to herein as "examples," are described in sufficient detail to enable those skilled in the art to practice the embodiments of the claimed subject matter described herein. The embodiments may be combined, other embodiments may be used, or structural, logical, and electrical changes may be made without departing from the scope and spirit of the claimed subject matter. It should be understood that the embodiments described herein are not intended to limit the scope of the subject matter, but rather to enable those skilled in the art to practice, make, and / or use the subject matter.
[0044] Considering the poor timeliness of the current server verification method, and the fact that non-compliant operations are often discovered only after the command is run, which will bring great security risks to the server, the disclosed embodiment provides an instruction processing method, which uses the instruction management system to pre-judge whether the user's operation instructions are compliant, and then sends the compliant operation instructions to the server for processing. If they are not compliant, the user is required to resubmit. Through this solution, the timeliness of the verification process can be guaranteed, thereby reducing the security risks of the server.
[0045] For ease of understanding, first combine Figure 1 The application scenarios of the embodiments of the present disclosure are described as follows:
[0046] Figure 1 A schematic diagram of a scenario of an instruction processing method provided by an embodiment of the present disclosure. Figure 1 As shown, the scenario includes: a client 101 , an instruction management system 102 , a server 103 and a maintenance terminal 104 .
[0047] The client 101 and the maintenance terminal 104 can be any type of device, such as a notebook, a desktop computer, a personal digital assistant (PDA), a smart phone, a tablet computer, and a wearable device. Figure 1 The client 101 is illustrated by a smart phone as an example, and the maintenance terminal 104 is illustrated by a desktop computer as an example, but they are not limited to this in actual applications.
[0048] In some embodiments, server 103 may be an integral server or a distributed server or server cluster across multiple computers or computer data centers, which may be of various types, such as but not limited to, a network server, a message server, an application server, an interactive server, a database server, or a proxy server, etc.
[0049] In actual application, maintenance personnel can log in to the instruction management system 102 through the maintenance terminal 104, and then maintain the server 103 through the instruction management system 102. Correspondingly, users can log in to the instruction management system 102 through the client 101, and then send operation instructions to the server 103 through the instruction management system 102.
[0050] In some embodiments, before the instruction management system 102 sends an operation instruction to the server 103, it will verify whether the operation instruction is compliant according to the verification rules, and send the compliant operation instruction to the server 103. Accordingly, the server 103 executes the operation instruction and sends the execution result to the client 101.
[0051] Through this solution, the timeliness of the verification process can be guaranteed, thereby reducing the security risks of the server.
[0052] The following is a detailed description of the technical solutions of the embodiments of the present disclosure and how the technical solutions of the present disclosure solve the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.
[0053] Figure 2 The following is a flow chart of an instruction processing method provided by an embodiment of the present disclosure. Figure 2 As shown, in the instruction processing method provided by the embodiment of the present disclosure, the instruction management system and the server perform the following steps:
[0054] S201. The instruction management system obtains a first identifier and an operation instruction sent by a client.
[0055] The first identifier is used to determine the target server for executing the operation instruction.
[0056] In some embodiments, the user can select a target server on the client, input an operation instruction that needs to be executed by the target server, and send the first identifier of the target server selected by the user and the operation instruction corresponding to the target server to the instruction management system.
[0057] In actual applications, on the one hand, the target server and the operation instruction can be a many-to-one correspondence, that is, the user can select multiple servers at the same time to execute the same operation instruction; on the other hand, the target server and the operation instruction can also be a one-to-many correspondence, and each target server can be used to execute multiple operation instructions.
[0058] S202: If the operation instruction meets the verification requirement of the target server, the instruction processing system sends the operation instruction to the target server so that the target server executes the operation instruction.
[0059] In this step, each target server is set with corresponding verification requirements. After the instruction management system determines the target server and the operation instruction, it will verify whether the operation instruction meets the verification requirements of the target server according to the verification requirements. The specific content of the verification requirements is not specifically limited in the embodiment of the present disclosure. For example, it may include time limit requirements, user authority requirements, type requirements of operation instructions, etc.
[0060] Among them, the time limit requirement is, for example: the time period during which the target server is allowed to execute the operation instruction, that is, if the current time is within the time period, it is determined that the operation instruction meets the time limit requirement; similarly, the user authority requirement is, for example: the authority of the user allowed to execute the operation instruction through the target server, that is, if the user has the authority to execute the operation instruction through the target server, it is determined that the operation instruction meets the user authority requirement; the type requirement is, for example: the type of operation instruction allowed to be executed by the server, that is, if the operation instruction is the type of operation instruction that the target server can execute, it is determined that the operation instruction meets the type requirement.
[0061] It should be noted that the solution for setting verification rules for the target server is shown in the subsequent embodiments.
[0062] S203: If the operation instruction does not meet the verification requirement corresponding to the target server, the instruction processing system sends a first prompt message to the client.
[0063] The first prompt information is used to instruct the user to reselect a target server and / or re-trigger an operation instruction. It should be noted that the embodiment of the present disclosure does not specifically limit the type of the first prompt information. For example, a prompt information prompting the user to reselect a target server may be displayed on the client, or a prompt information prompting the user to re-trigger an operation instruction may be displayed on the client.
[0064] Correspondingly, when the user reselects the target server and / or re-triggers the operation instruction, steps S201 to S203 are continued to be executed until the operation instruction meets the verification requirements corresponding to the target server, and the following step S204 is executed.
[0065] S204: The target server obtains the operation instruction sent by the instruction management system and executes the operation instruction.
[0066] S205: The target server outputs the execution result corresponding to the operation instruction to the client.
[0067] In the instruction processing method provided by the embodiment of the present disclosure, before the server executes the operation instruction, the instruction management system verifies the compliance of the operation instruction, which can ensure the timeliness of the verification process and thus reduce the security risks of the server.
[0068] In some embodiments, before a user sends an operation instruction to a server through the instruction management system, or when a maintenance personnel performs maintenance on the server, the user needs to log in to the instruction management system. Accordingly, the instruction management system will verify the identity of the person logging in, thereby further ensuring the security of the server and the instruction management system.
[0069] Specifically, the verification method can be a two-factor authentication method, that is, the identity of the logon user is confirmed through at least two identity information of the user or maintenance personnel, such as verification code verification, password verification, face recognition, fingerprint recognition, etc. When all authentication information is authenticated, the user or maintenance personnel can log in to the instruction management system.
[0070] Correspondingly, the instruction management system can also lock the system when the user or maintenance personnel's identity authentication fails. That is, when the user or maintenance personnel is performing identity authentication, if any identity information fails to pass the authentication, the instruction management system will be locked. When the instruction management system is locked, login authentication operations cannot be performed.
[0071] In some embodiments, the instruction management system may also be configured with a preset number of authentication attempts, that is, when the number of identity information authentication failures exceeds the preset number, the instruction management system is locked.
[0072] In this solution, the security of the order management system can be further improved by setting up login authentication.
[0073] In some embodiments, the maintenance personnel can also configure verification rules for the server through the command management system. Figure 3 This is a flowchart of an instruction processing method provided by another embodiment of the present disclosure. It should be understood that the execution subject of the embodiment of the present disclosure is the above-mentioned instruction management system. Figure 3 As shown, in the instruction processing method provided in the embodiment of the present disclosure, the instruction management system specifically performs the following steps:
[0074] S301. Obtain a verification type and at least one target verification requirement sent by a maintenance terminal.
[0075] Among them, the verification type includes real-time verification, and the target verification requirements include at least one of the following: the type of operation instructions executable by the server, the execution time of each type of operation instructions, the user authority corresponding to each type of operation instructions, etc.
[0076] It should be understood that real-time verification is used to indicate that the operation instruction is verified before the server executes the operation instruction. The server can only execute the operation instruction after the operation instruction passes the verification. Compared with post-verification, the timeliness of the verification process can be guaranteed, thereby reducing the security risks of the server.
[0077] S302: Acquire a second identifier sent by the maintenance terminal.
[0078] The second identifier is used to determine the server to be configured that meets the configuration verification requirement.
[0079] In actual applications, the maintenance personnel may select the second identifier of the server to be configured on the maintenance terminal, and further send the second identifier selected by the user to the instruction management system.
[0080] Correspondingly, the instruction management system obtains the second identifier sent by the maintenance terminal, and determines the server to be configured according to the second identifier.
[0081] S303: Setting verification requirements for the servers to be configured according to the verification type and the target verification requirements, where the servers to be configured include the target server.
[0082] In some embodiments, when setting the verification requirements, repeated verification rules may appear in the target verification requirements. In this case, during the configuration process, the repeated target verification rules need to be further processed. Specifically, during the configuration, step S303 specifically includes the following steps:
[0083] (1) determining a target verification requirement that is repeated in at least one target verification requirement;
[0084] (2) retain one target verification requirement in each set of repeated target verification requirements, and configure verification requirements for the server to be configured according to the verification type and the retained target verification requirements.
[0085] In some other embodiments, for target verification requirements of the same type or related target verification requirements, they can be grouped and managed to facilitate management. Specifically, during configuration, step S303 specifically includes the following steps:
[0086] (1) grouping the target verification requirements according to the type of the target verification requirements to obtain at least one verification requirement group;
[0087] (2) Determine the logical order between each verification requirement group according to a preset logical order;
[0088] (3) Set verification requirements for the server to be configured based on the verification type and the logical order between each verification requirement group.
[0089] The logical order is a logical relationship between the verification requirements in each verification requirement group and the verification requirements in another verification requirement group. The logical order is, for example, at least one logical relationship such as “and” or “or”.
[0090] Exemplarily, when verifying an operation instruction, first determine the verification requirements corresponding to the server that executes the operation instruction. Taking the two verification requirements corresponding to the server as an example, if the verification requirement group including the two verification requirements is in an "and" relationship, both verification requirements are used to verify the operation instruction; if the verification requirement group including the two verification requirements is in an "or" relationship, use any one of the two verification requirements to verify the operation instruction.
[0091] In some embodiments, the logical order may also include the execution order of each verification requirement group. For example, when verifying an operation instruction, the operation instruction is verified in sequence according to the execution order of the verification requirement group to which the verification requirement corresponding to the operation instruction belongs.
[0092] In the disclosed embodiment, the security performance of the server can be improved by configuring verification requirements for the server through the instruction management system. In addition, through this solution, corresponding verification requirements can be set for the server according to personalized needs, which is more flexible and can be applied to various types of servers.
[0093] In actual applications, users can also trigger multiple operation instructions by triggering online forms. Figure 4 The illustrated embodiment illustrates the present solution in more detail.
[0094] Figure 4A flowchart of an instruction processing method provided by another embodiment of the present disclosure is shown below. Figure 4 As shown, the instruction processing method provided by the embodiment of the present disclosure includes the following steps:
[0095] S401: The instruction management system obtains an online form and a first identifier sent by a client.
[0096] The first identifier is used to determine a target server for executing an operation instruction, and the online form includes at least one operation instruction triggered by a user through a client.
[0097] S402: The instruction management system obtains the operation instruction in the online form.
[0098] S403: If the operation instruction meets the verification requirement of the target server, the instruction management system sends the operation instruction to the target server so that the target server executes the operation instruction.
[0099] Specifically, the instruction management system sends at least one operation instruction to the target server through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0100] S404: If the operation instruction does not meet the verification requirement corresponding to the target server, the instruction management system does not send the operation instruction to the server, and sends a first prompt message to the client.
[0101] The first prompt information is used to instruct the user to reselect a target server and / or re-trigger an operation instruction.
[0102] Accordingly, the first prompt information can be displayed on the client, and at the same time, the page of the instruction management system returns to the target server selection page or the page for sending the operation instruction.
[0103] S405: The target server obtains the operation instruction sent by the instruction management system, obtains execution information corresponding to the operation instruction, and executes the operation instruction according to the execution information.
[0104] The execution information includes the execution time of the operation instruction and / or the execution method of the operation instruction. The execution time is used to indicate the time when the server executes the operation instruction. The execution method of the operation instruction, for example, is to execute the operation instruction in a loop.
[0105] Specifically, this step may be: the target server receives at least one operation instruction sent by the instruction management system through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0106] The instruction queue is, for example, Advanced Message Queuing Protocol (AMQP).
[0107] S406: The instruction management system obtains execution information corresponding to the operation instruction sent by the target server, and generates a status list corresponding to the operation instruction according to the execution information.
[0108] The status list includes the current execution status of the operation instruction.
[0109] S407. The instruction management system sends the status list to the maintenance terminal, so that the maintenance terminal displays the status list.
[0110] S408: The target server outputs the execution result corresponding to the operation instruction to the client.
[0111] In the disclosed embodiment, multiple operation instructions are triggered by online forms, and multiple operation instructions can be triggered simultaneously to improve the efficiency of instruction execution. In addition, by sending a status list of instruction execution to the maintenance terminal, the maintenance personnel can monitor the instruction execution status in real time.
[0112] Figure 5 Schematic diagram of the structure of an instruction processing device provided by an embodiment of the present disclosure. The instruction processing device is applied to an instruction management system, such as Figure 5 As shown, the instruction management device 500 includes:
[0113] An acquisition module 501 is used to acquire a first identifier and an operation instruction sent by a client, where the first identifier is used to determine a target server for executing the operation instruction;
[0114] Processing module 502 is used to send the operation instruction to the target server when the operation instruction meets the verification requirements of the target server so that the target server executes the operation instruction; and when the operation instruction does not meet the verification requirements corresponding to the target server, not send the operation instruction to the server, and send a first prompt message to the client, the first prompt message is used to instruct the user to reselect the target server and / or re-trigger the operation instruction.
[0115] It can be understood that the instruction management device provided in the embodiments of the present disclosure can be used to execute the instruction processing method executed by the above-mentioned instruction management system end, and its implementation principle and technical effects are similar. For details, please refer to the above-mentioned method embodiments, which will not be repeated here.
[0116] In some embodiments, the acquisition module 501 is further used to: acquire a verification type and at least one target verification requirement sent by the maintenance terminal, the verification type includes real-time verification, and the target verification requirement includes at least one of the following: the type of operation instructions executable by the server, the execution time of each type of operation instruction, and the user authority corresponding to each type of operation instruction; acquire a second identifier sent by the maintenance terminal, the second identifier is used to determine the server to be configured for the verification rule to be configured;
[0117] The processing module 502 is further used to set verification requirements for the servers to be configured according to the verification type and the target verification requirements, where the servers to be configured include the target server.
[0118] In some embodiments, the processing module 502 is also used to: determine repeated target verification requirements in at least one target verification requirement; retain one target verification requirement in each group of repeated target verification requirements, and configure verification requirements for the server to be configured based on the verification type and the retained target verification requirements.
[0119] In some embodiments, the processing module 502 is specifically used to: group the target verification requirements according to the type of the target verification requirements to obtain at least one verification requirement group; determine the logical order between each verification requirement group according to a preset logical order; and set the verification requirements for the server to be configured according to the verification type and the logical order between each verification requirement group.
[0120] In some embodiments, the acquisition module 501 is specifically used to: acquire an online form sent by a client, where the online form includes at least one operation instruction triggered by a user through the client; and acquire the operation instruction in the online form.
[0121] In some embodiments, the acquisition module 501 is also used to: obtain execution information corresponding to the operation instruction sent by the target server; the processing module 502 is also used to: generate a status list corresponding to the operation instruction based on the execution information, the status list including the current execution status of the operation instruction; and send the status list to the maintenance terminal so that the maintenance terminal displays the status list.
[0122] In some embodiments, the processing module 502 is specifically used to: send at least one operation instruction to the target server through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by the user through the client.
[0123] It can be understood that the instruction management device provided in the embodiments of the present disclosure can be used to execute the instruction processing method executed by the above-mentioned instruction management system end, and its implementation principle and technical effects are similar. For details, please refer to the above-mentioned method embodiments, which will not be repeated here.
[0124] Figure 6 Another embodiment of the present disclosure provides an instruction management device. The device is applied to a server, such as Figure 6 As shown, the instruction management device 600 includes:
[0125] The acquisition module 601 is used to obtain the operation instruction sent by the instruction management system. The operation instruction is triggered by the user through the client, and the operation instruction meets the corresponding verification requirements of the server; the processing module 602 is used to execute the operation instruction; the output module 603 is used to output the execution result corresponding to the operation instruction to the client.
[0126] In some embodiments, the processing module 602 is specifically used to: obtain execution information corresponding to the operation instruction, the execution information including the execution time of the operation instruction and / or the execution method of the operation instruction; and execute the operation instruction according to the execution information.
[0127] In some embodiments, the acquisition module 601 is specifically used to: receive at least one operation instruction sent by the instruction management system through the instruction queue, and the at least one operation instruction includes an operation instruction triggered by a user through a client.
[0128] It can be understood that the instruction management device provided in the embodiment of the present disclosure can be used to execute the instruction processing method executed by the server as mentioned above, and its implementation principle and technical effects are similar. For details, please refer to the above method embodiment, which will not be repeated here.
[0129] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. The electronic device 700 of this embodiment may be the instruction management system and / or server (or a component that can be used for the instruction management system and / or server) mentioned in the aforementioned method embodiment, which can be used to implement the instruction processing method corresponding to the instruction management system and / or server described in the aforementioned method embodiment, and the specific details are referred to in the aforementioned method embodiment, which will not be repeated here.
[0130] The electronic device 700 may include one or more processors 701, which may also be referred to as a processing unit, and may implement certain control or processing functions. The processor 701 may be a general-purpose processor or a dedicated processor, etc. For example, it may be a baseband processor or a central processing unit. The baseband processor may be used to process data, and the central processing unit may be used to control the electronic device 700, execute software programs, and process data of software programs.
[0131] In a possible design, the processor 701 may also store instructions 703 or data (such as test parameters), wherein the instructions 703 may be executed by the processor 701, so that the electronic device 700 executes the instruction processing method described in the above method embodiment.
[0132] In yet another possible design, the electronic device 700 may include a circuit that can implement the functions of sending, receiving, or communicating in the aforementioned method embodiments.
[0133] In one possible implementation, the electronic device 700 may include one or more memories 702, on which instructions 704 may be stored. The instructions can be executed on the processor 701, so that the electronic device 700 executes the instruction processing method executed by the instruction management system and / or the server described in the above method embodiment.
[0134] In a possible implementation, data may also be stored in the memory 702. The processor 701 and the memory 702 may be provided separately or integrated together.
[0135] In a possible implementation, the electronic device 700 may further include a transceiver 705 and / or an antenna 706. The processor 701 may be referred to as a processing unit, which controls the electronic device 700. The transceiver 705 may be referred to as a transceiver unit, a transceiver, a transceiver circuit, or a transceiver, etc., which is used to implement the transceiver function of the electronic device 700.
[0136] The specific implementation process of the processor 701 and the transceiver 705 can refer to the relevant description of the above embodiments, which will not be repeated here.
[0137] The processor 701 and transceiver 705 described in the present disclosure may be implemented on an integrated circuit (IC), an analog IC, a radio frequency integrated circuit (RFIC), a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc.
[0138] It can be understood by those skilled in the art that Figure 7 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0139] It should be noted here that the above-mentioned electronic device provided by the present disclosure is used to implement the instruction management system described in the above-mentioned method embodiment and / or the instruction processing method executed by the server side, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0140] An embodiment of the present disclosure also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the instruction processing method executed by the instruction management system and / or the server in the above method embodiment.
[0141] An embodiment of the present disclosure further provides a computer program product, including a computer program. When the computer program is executed by a processor, the instruction processing method executed by the instruction management system and / or the server in the above method embodiment is implemented.
[0142] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0143] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0144] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0145] In the above server embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), etc. The steps of the method disclosed in the present disclosure may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
[0146] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the schemes disclosed herein. The embodiments of the present disclosure are intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0147] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A command processing method, characterized in that: Applied to order management systems, including: Acquire a first identifier and an operation instruction sent by the client, where the first identifier is used to determine a target server for executing the operation instruction; If the operation instruction meets the verification requirement of the target server, the operation instruction is sent to the target server so that the target server executes the operation instruction; the execution information corresponding to the operation instruction sent by the target server is obtained; a status list corresponding to the operation instruction is generated according to the execution information, and the status list includes the current execution status of the operation instruction; the status list is sent to the maintenance terminal so that the maintenance terminal displays the status list; If the operation instruction does not meet the verification requirement corresponding to the target server, the operation instruction is not sent to the target server, and a first prompt message is sent to the client, where the first prompt message is used to instruct the user to reselect the target server and / or re-trigger the operation instruction; Acquire the verification type and at least one target verification requirement sent by the maintenance terminal, wherein the verification type includes real-time verification, and the target verification requirement includes at least one of the following: types of operation instructions executable by the server, execution time of each type of operation instruction, and user authority corresponding to each type of operation instruction; Acquire a second identifier sent by the maintenance terminal, and determine the server to be configured according to the second identifier; the second identifier is the second identifier of the server to be configured selected by the maintenance personnel through the maintenance terminal; the server to be configured includes the target server; According to the type of the target verification requirement, the target verification requirements are grouped to obtain at least one verification requirement group; Determining the logical order between each of the verification requirement groups according to a preset logical order; Verification requirements are set for the server to be configured according to the verification type and the logical order between each of the verification requirement groups; the logical order includes the logical relationship and execution order between the verification requirement groups.
2. The instruction processing method according to claim 1, characterized in that: Get the operation instructions sent by the client, including: Acquire an online form sent by the client, where the online form includes at least one operation instruction triggered by a user through the client; Obtaining the operation instructions in the online form.
3. The instruction processing method according to claim 1, characterized in that: The sending the operation instruction to the target server includes: At least one operation instruction is sent to the target server through an instruction queue, wherein the at least one operation instruction includes an operation instruction triggered by the user through a client.
4. An instruction processing device, characterized in that: Applied to an instruction management system, the instruction processing device comprises: An acquisition module, used to acquire a first identifier and an operation instruction sent by a client, wherein the first identifier is used to determine a target server for executing the operation instruction; a processing module, configured to send the operation instruction to the target server when the operation instruction meets the verification requirement of the target server, so that the target server executes the operation instruction; and, when the operation instruction does not meet the verification requirement corresponding to the target server, not send the operation instruction to the target server, and send first prompt information to the client, wherein the first prompt information is used to instruct the user to reselect the target server and / or re-trigger the operation instruction; The acquisition module is further configured to acquire execution information corresponding to the operation instruction sent by the target server after the processing module sends the operation instruction to the target server; The processing module is further configured to generate a status list corresponding to the operation instruction according to the execution information, wherein the status list includes the current execution status of the operation instruction; and send the status list to the maintenance terminal so that the maintenance terminal displays the status list; The acquisition module is further used to acquire the verification type and at least one target verification requirement sent by the maintenance terminal, the verification type includes real-time verification, and the target verification requirement includes at least one of the following: the type of operation instructions executable by the server, the execution time of each type of operation instruction, and the user authority corresponding to each type of operation instruction; acquire the second identifier sent by the maintenance terminal, and determine the server to be configured according to the second identifier; the second identifier is the second identifier of the server to be configured selected by the maintenance personnel through the maintenance terminal; the server to be configured includes the target server; The processing module is further used to group the target verification requirements according to the type of the target verification requirements to obtain at least one verification requirement group; determine the logical order between each of the verification requirement groups according to a preset logical order; set the verification requirements for the server to be configured according to the verification type and the logical order between each of the verification requirement groups; the logical order includes the logical relationship and execution order between the verification requirement groups.
5. An electronic device, characterized in that: include: A memory and at least one processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions in the memory to execute the instruction processing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program; when the computer program is executed, the instruction processing method according to any one of claims 1 to 3 is implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the instruction processing method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Interface processing method and equipment, server and computer-readable storage medium
CN107451460A
Service control method, device and system
CN112152913A