CN113312111A - Instruction processing method, device, equipment and storage medium - Google Patents

Instruction processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113312111A
CN113312111A CN202110713294.2A CN202110713294A CN113312111A CN 113312111 A CN113312111 A CN 113312111A CN 202110713294 A CN202110713294 A CN 202110713294A CN 113312111 A CN113312111 A CN 113312111A
Authority
CN
China
Prior art keywords
operation instruction
instruction
server
target
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110713294.2A
Other languages
Chinese (zh)
Inventor
张丹丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110713294.2A priority Critical patent/CN113312111A/en
Publication of CN113312111A publication Critical patent/CN113312111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The embodiment of the disclosure provides an instruction processing method, an instruction processing device, an instruction processing apparatus and a storage medium, wherein the instruction processing method comprises the following steps: receiving a first selection operation and an operation instruction triggered by a user through a client; 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; and if the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction. According to the scheme, before the server executes the operation instruction, the instruction management system verifies the compliance of the operation instruction, so that the timeliness of the verification process can be guaranteed, and the potential safety hazard of the server is reduced.

Description

Instruction processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing an instruction.
Background
With the continuous advancement of informatization, services provided by the server are more and more complex at present, user requirements are more and more diversified, and a more reasonable management mode is needed to ensure that the server can operate flexibly, conveniently, safely and stably.
In the related art, in order to ensure the compliance of the operation of the user on the server, the operation condition of the server is usually audited in a post-audit manner. For example, after the operation instruction of the user is completed, the operation log of the server is checked to check whether the historical operation instruction of the server is in compliance. However, the timeliness of the checking method is poor, and the operation which is not in compliance is often found after the instruction operation is finished, so that a great potential safety hazard is brought to the server.
Disclosure of Invention
The embodiment of the disclosure provides an instruction processing method, an instruction processing device, an instruction processing apparatus and a storage medium. The method is used for guaranteeing timeliness of the running instruction auditing process of the server and reducing potential safety hazards of the server.
In a first aspect, an embodiment of the present disclosure provides an instruction processing method applied to an instruction management system, including: acquiring a first identifier and an operation instruction sent by a client, wherein the first identifier is used for determining 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; and if the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction.
In some embodiments, the instruction processing method further comprises: acquiring a verification type and at least one target verification requirement sent by a maintenance terminal, wherein the verification type comprises real-time verification, and the target verification requirement comprises at least one of the following: the type of the operation instruction which can be executed by the server, the execution time of each type of operation instruction and the user authority corresponding to each type of operation instruction; acquiring a second identifier sent by a maintenance terminal, wherein the second identifier is used for determining a server to be configured with a verification rule to be configured; and setting a verification requirement for the server to be configured according to the verification type and the target verification requirement, wherein the server to be configured comprises the target server.
In some embodiments, setting a verification requirement for the server to be configured according to the verification type and the target verification requirement includes: determining a repeated target verification requirement in the at least one target verification requirement; and reserving one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured according to the verification type and the reserved target verification requirements.
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; determining the logic sequence among each verification requirement group according to a preset logic sequence; and setting a verification requirement for the server to be configured according to the verification type and the logic sequence between each verification requirement group.
In some embodiments, obtaining the operation instruction sent by the client includes: acquiring an online form sent by a client, wherein the online form comprises at least one operation instruction triggered by a user through the client; and acquiring an operation instruction in the online form.
In some embodiments, after sending the operation instruction to the target server, the method further includes: acquiring execution information corresponding to an operation instruction sent by a target server; generating a state list corresponding to the operation instruction according to the execution information, wherein the state list comprises the current execution state of the operation instruction; and sending the state list to a maintenance terminal so that the maintenance terminal can display the state list.
In some embodiments, sending the operational instructions to the target server comprises: and sending at least one operation instruction to the target server through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
In a second aspect, an embodiment of the present disclosure provides an instruction processing method, applied to a server, including: acquiring an operation instruction sent by an instruction management system, wherein the operation instruction is triggered by a user through a client and meets a verification requirement corresponding to a server; executing the operation instruction; and outputting an execution result corresponding to the operation instruction to the client.
In some embodiments, executing the operational instructions comprises: acquiring execution information corresponding to the operation instruction, wherein the execution information comprises the execution time of the operation instruction and/or the execution mode of the operation instruction; and executing the operation instruction according to the execution information.
In some embodiments, obtaining the operation instruction sent by the instruction management system includes: and receiving at least one operation instruction sent by the instruction management system through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
In a third aspect, an embodiment of the present disclosure provides an instruction processing apparatus applied to an instruction management system, where the instruction processing apparatus includes:
the acquisition module is used for acquiring a first identifier and an operation instruction sent by a client, wherein the first identifier is used for determining a target server for executing the operation instruction; the processing module is used for sending the operation instruction to the target server when the operation instruction meets the verification requirement of the target server so as to enable the target server to execute the operation instruction; and when the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction.
In some embodiments, the obtaining module is further configured to: acquiring a verification type and at least one target verification requirement sent by a maintenance terminal, wherein the verification type comprises real-time verification, and the target verification requirement comprises at least one of the following: the type of the operation instruction which can be executed by the server, the execution time of each type of operation instruction and the user authority corresponding to each type of operation instruction; acquiring a second identifier sent by a maintenance terminal, wherein the second identifier is used for determining a server to be configured with a verification rule to be configured; the processing module is further configured to: and setting a verification requirement for the server to be configured according to the verification type and the target verification requirement, wherein the server to be configured comprises the target server.
In some embodiments, the processing module is specifically configured to: determining a repeated target verification requirement in the at least one target verification requirement; and reserving one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured according to the verification type and the reserved target verification requirements.
In some embodiments, the processing module is specifically configured to: grouping the target verification requirements according to the types of the target verification requirements to obtain at least one verification requirement group; determining the logic sequence among each verification requirement group according to a preset logic sequence; and setting a verification requirement for the server to be configured according to the verification type and the logic sequence between each verification requirement group.
In some embodiments, the obtaining module is specifically configured to: acquiring an online form sent by a client, wherein the online form comprises at least one operation instruction triggered by a user through the client; and acquiring an operation instruction in the online form.
In some embodiments, the obtaining module is further configured to: acquiring execution information corresponding to an operation instruction sent by a target server; the processing module is further configured to: generating a state list corresponding to the operation instruction according to the execution information, wherein the state list comprises the current execution state of the operation instruction; and sending the state list to a maintenance terminal so that the maintenance terminal can display the state list.
In some embodiments, the processing module is specifically configured to: and sending at least one operation instruction to the target server through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
In a fourth aspect, an embodiment of the present disclosure provides an instruction processing apparatus applied to a server, where the instruction processing apparatus includes:
the acquisition module is used for acquiring an operation instruction sent by the instruction management system, wherein the operation instruction is triggered by a user through a client and meets a verification requirement corresponding to the server; the processing module is used for executing the operation instruction; and the output module is used for outputting an execution result corresponding to the operation instruction to the client.
In some embodiments, the obtaining module is specifically configured to: acquiring execution information corresponding to the operation instruction, wherein the execution information comprises the execution time of the operation instruction and/or the execution mode of the operation instruction; and executing the operation instruction according to the execution information.
In some embodiments, the obtaining module is specifically configured to: and receiving at least one operation instruction sent by the instruction management system through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a memory for storing program instructions and at least one processor for calling the program instructions in the memory to execute the instruction processing method according to the first aspect and/or the second aspect.
In a sixth aspect, embodiments of the present disclosure provide a computer-readable storage medium having a computer program stored thereon; the computer program, when executed, implements a method of instruction processing as described in the first aspect and/or the second aspect.
In a seventh aspect, embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the instruction processing method according to the first aspect and/or the second aspect.
The embodiment of the disclosure provides an instruction processing method, an instruction processing device, an instruction processing apparatus and a storage medium, wherein the instruction processing method comprises the following steps: receiving a first selection operation and an operation instruction triggered by a user through a client; 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; and if the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction. According to the scheme, before the server executes the operation instruction, the instruction management system verifies the compliance of the operation instruction, so that the timeliness of the verification process can be guaranteed, and the potential safety hazard of the server is reduced.
Drawings
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 disclosure.
Fig. 1 is a schematic view of a scenario of an instruction processing method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating an instruction processing method according to an embodiment of the disclosure;
FIG. 3 is a flowchart illustrating an instruction processing method according to another embodiment of the disclosure;
FIG. 4 is a flowchart illustrating an instruction processing method according to yet another embodiment of the disclosure;
FIG. 5 is a block diagram of an instruction processing apparatus according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of an instruction processing apparatus according to another embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It is to be understood that the embodiments described are only a subset of the embodiments of the disclosure, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
In the context of embodiments of the present disclosure, the term "comprising" and its various variants may be understood as open-ended 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 be present but are not mentioned herein should not be construed or limited in a manner that would contradict the concept upon which the embodiments of the disclosure are based unless explicitly stated. Note that in the following description, it is possible to use "vehicles" as an example of the vehicles. The scope of embodiments of the present disclosure is not so limited and any vehicle capable of employing the charging system described herein is within the scope of embodiments of the present disclosure.
The description includes reference to the accompanying drawings, which form a part hereof. The figures show diagrams in accordance with 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 embodiments of the claimed subject matter described herein. The embodiments may be combined, other embodiments may be utilized, or structural, logical, and electrical changes may be made without departing from the scope and spirit of the claimed subject matter. It should be appreciated that the embodiments described herein are not intended to limit the scope of the subject matter, but rather to enable any person skilled in the art to practice, make, and/or use the subject matter.
In view of the problems that the current checking mode of the server is poor in timeliness, and the operation which is not in compliance is often found after the instruction operation is finished, and a large potential safety hazard is brought to the server, the embodiment of the disclosure provides an instruction processing method. According to the scheme, timeliness of the verification process can be guaranteed, and therefore potential safety hazards of the server are reduced.
For convenience of understanding, an application scenario of the embodiment of the present disclosure is first described with reference to fig. 1:
fig. 1 is a schematic view of a scenario of an instruction processing method according to an embodiment of the present disclosure. As shown in fig. 1, the scenario includes: a client 101, an instruction management system 102, a server 103, and a maintenance terminal 104.
The client 101 and the maintenance terminal 104 may be any type of devices, such as a notebook, a desktop computer, a Personal Digital Assistant (PDA), a smart phone, a tablet computer, and a wearable device. It should be understood that the client 101 in fig. 1 is illustrated as a smart phone, and the maintenance terminal 104 is illustrated as a desktop computer, but the practical application is not limited thereto.
In some embodiments, the server 103 may be a unitary 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 web server, a message server, an application server, an interaction server, a database server, or a proxy server, among others.
In practical application, a maintenance person can log in the instruction management system 102 through the maintenance terminal 104, and then maintain the server 103 through the instruction management system 102, and accordingly, a user can log in the instruction management system 102 through the client 101, and then send an operation instruction to the server 103 through the instruction management system 102.
In some embodiments, before the instruction management system 102 sends the operation instruction to the server 103, it checks whether the operation instruction is compliant according to the check rule, and sends the compliant operation instruction to the server 103, and accordingly, the server 103 executes the operation instruction and sends the execution result to the client 101.
According to the scheme, timeliness of the verification process can be guaranteed, and therefore potential safety hazards of the server are reduced.
The following describes technical solutions of embodiments of the present disclosure and how to solve the above technical problems in detail with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating an instruction processing method according to an embodiment of the disclosure. As shown in fig. 2, in the instruction processing method provided by the embodiment of the present disclosure, the instruction management system and the server execute the following steps:
s201, the instruction management system acquires a first identifier and an operation instruction sent by a client.
The first identification is used for determining a target server for executing the operation instruction.
In some embodiments, a user may select a target server on a client, input an operation instruction that needs to be executed by the target server, and send a first identifier of the target server selected by the user and the operation instruction corresponding to the target server to an instruction management system.
In practical application, on one hand, the target server and the operation instruction may be in a many-to-one correspondence relationship, that is, a user may select multiple servers at the same time for executing the same operation instruction; on the other hand, the target servers and the operation instructions may be in a one-to-many correspondence relationship, and each target server may be configured to execute a plurality of operation instructions.
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.
In this step, each target server is provided with a corresponding verification requirement, and after the instruction management system determines the target server and the operation instruction, it is verified whether the operation instruction meets the verification requirement of the target server according to the verification requirement, where for specific contents of the verification requirement, the embodiment of the present disclosure is not specifically limited, and for example, the specific contents may include a time limit requirement, a user right requirement, a type requirement of the operation instruction, and the like.
The time limit requirement is, for example: allowing the target server to execute the operation instruction in a time period, namely determining that the operation instruction meets the time limit requirement if the current time is in the time period; similarly, the user rights requirements are, for example: allowing the permission of the user who executes the operation instruction through the target server, namely determining that the operation instruction meets the user permission requirement if the user has the permission to execute the operation instruction through the target server; the type requirements are for example: and the type of the operation instruction allowed to be executed by the server is determined, namely if the operation instruction is of the type capable of being executed by the target server, the operation instruction meets the type requirement.
It should be noted that, for the scheme of setting the check rule for the target server, it is shown in the following embodiments.
S203, if the operation instruction does not meet the verification requirement corresponding to the target server, the instruction processing system sends first prompt information to the client.
The first prompt message is used for instructing the user to reselect the target server and/or re-trigger the operation instruction. It should be noted that, regarding the type of the first prompt message, the embodiment of the present disclosure is not particularly limited, for example, a prompt message prompting the user to reselect the target server may be displayed on the client, or a prompt message prompting the user to re-trigger the operation instruction may be displayed on the client.
Correspondingly, after the user reselects the target server and/or retriggers the operation instruction, the steps S201 to S203 are continuously executed until the operation instruction meets the verification requirement corresponding to the target server, and the following step S204 is executed.
And S204, the target server acquires the operation instruction sent by the instruction management system and executes the operation instruction.
And S205, the target server outputs an execution result corresponding to the operation instruction to the client.
According to the instruction processing method provided by the embodiment of the disclosure, before the server executes the operation instruction, the instruction management system verifies the compliance of the operation instruction, so that the timeliness of the verification process can be guaranteed, and the potential safety hazard of the server is reduced.
In some embodiments, before a user sends an operation instruction to a server through an instruction management system, or when a maintenance person maintains the server, the user needs to log in the instruction management system, and accordingly, the instruction management system can verify the identity of the login person, so that the security of the server and the instruction management system is further ensured.
Specifically, the verification mode may be a two-factor authentication mode, that is, the identity of the login user is confirmed through at least two kinds of identity information of the user or the maintenance personnel, for example, verification code verification, password verification, face authentication, fingerprint authentication, and the like.
Correspondingly, the instruction management system can also be locked when the identity authentication of the user or the maintenance personnel fails, namely when the identity authentication of the user or the maintenance personnel is performed, any identity information is not authenticated, namely the instruction management system is locked, and when the instruction management system is locked, login authentication operation cannot be performed.
In some embodiments, the instruction management system may further set a preset authentication number, that is, when the number of authentication failures of the identity information is greater than the preset number, the instruction management system is locked.
In the scheme, the safety of the instruction management system can be further improved by setting the login authentication.
In some embodiments, a maintenance person may also configure a check rule for the server through the instruction management system, and fig. 3 is a flowchart of an instruction processing method according to another embodiment of the present disclosure. It should be understood that the execution subject of the embodiments of the present disclosure is the above-described instruction management system. As shown in fig. 3, in the instruction processing method provided in the embodiment of the present disclosure, the instruction management system specifically executes the following steps:
s301, acquiring the verification type and at least one target verification requirement sent by the maintenance terminal.
The checking type comprises real-time checking, and the target checking requirement comprises at least one of the following: the type of the operation instruction executable by the server, the execution time of each type of operation instruction, the user authority corresponding to each type of operation instruction and the like.
It should be understood that the real-time verification is used for indicating that the operation instruction is verified before the server executes the operation instruction, and the server can execute the operation instruction after the operation instruction passes the verification.
S302, acquiring a second identifier sent by the maintenance terminal.
And the second identifier is used for determining the server to be configured with the verification requirement.
In practical application, a maintenance person can select the second identifier of the server to be configured on the maintenance terminal, and further, the second identifier selected by the user is sent to the instruction management system.
Correspondingly, the instruction management system acquires a second identifier sent by the maintenance terminal, and determines the server to be configured according to the second identifier.
S303, setting a verification requirement for the server to be configured according to the verification type and the target verification requirement, wherein the server to be configured comprises the target server.
In some embodiments, when the verification requirement is set, a repeated verification rule may occur in the target verification requirement, and at this time, in the configuration process, the repeated target verification rule needs to be further processed, specifically, in the configuration, step S303 specifically includes the following steps:
(1) determining a repeated target verification requirement in the at least one target verification requirement;
(2) and reserving one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured according to the verification type and the reserved target verification requirements.
In other embodiments, the target verification requirements of the same type or the associated target verification requirements may be grouped and managed to facilitate management, and specifically, during configuration, step S303 specifically includes the following steps:
(1) grouping the target verification requirements according to the types of the target verification requirements to obtain at least one verification requirement group;
(2) determining the logic sequence among each verification requirement group according to a preset logic sequence;
(3) and setting a verification requirement for the server to be configured according to the verification type and the logic sequence between each verification requirement group.
The logical order is a logical relationship between the verification requirement in each verification requirement group and the verification requirement in another verification requirement group, and the logical order is, for example: "and", "or", and the like.
For example, when an operation instruction is verified, a verification requirement corresponding to a server executing the operation instruction is determined, taking that the server corresponds to two verification requirements as an example, and if a verification requirement group where the two verification requirements are located is in a sum relationship, the operation instruction is verified by adopting the two verification requirements at the same time; and if the verification requirement group where the two verification requirements are located is in an OR relationship, adopting any one of the two verification requirements to verify the operation instruction.
In some embodiments, the logic sequence may further include an execution sequence of each check requirement group, and for example, when the operation instruction is checked, the operation instruction is checked in sequence according to the execution sequence of the check requirement group in which the check requirement corresponding to the operation instruction is located.
In the embodiment of the disclosure, the safety performance of the server can be improved by configuring the verification requirements for the server through the instruction management system, and in addition, according to the scheme, the corresponding verification requirements can be set for the server according to individual requirements, so that the flexibility degree is higher, and the method and the system can be applied to various types of servers.
In practical applications, the user may also trigger a plurality of operation instructions by triggering an online form, and the present solution is described in more detail below with reference to the embodiment shown in fig. 4.
Fig. 4 is a flowchart illustrating an instruction processing method according to another embodiment of the disclosure. As shown in fig. 4, the instruction processing method provided by the embodiment of the present disclosure includes the following steps:
s401, the instruction management system obtains the online form and the first identification sent by the client.
The first identification is used for determining a target server for executing the operation instruction, and the online form contains at least one operation instruction triggered by a user through a client.
S402, the instruction management system obtains an operation instruction in the online form.
And 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.
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 comprises an operation instruction triggered by a user through a client.
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 first prompt information to the client.
The first prompt message is used for instructing the user to reselect the target server and/or re-trigger the operation instruction.
Accordingly, the first prompt message can be presented at the client, and at the same time, the page of the command management system returns to the target server selection page or the page sending the operation command.
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.
The execution information includes an execution time of the operation instruction and/or an execution mode of the operation instruction, where the execution time is used to indicate a time for the server to execute the operation instruction, and the execution mode of the operation instruction is, for example, to execute the operation instruction in a loop.
Specifically, the steps may be: the target server receives at least one operation instruction sent by the instruction management system through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
The instruction queue is, for example, an Advanced Message Queuing Protocol (AMQP).
S406, the instruction management system acquires execution information corresponding to the operation instruction sent by the target server, and generates a state list corresponding to the operation instruction according to the execution information.
The state list comprises the current execution state of the operation instruction.
S407, the instruction management system sends the state list to the maintenance terminal so that the maintenance terminal can display the state list.
And S408, the target server outputs an execution result corresponding to the operation instruction to the client.
In the embodiment of the disclosure, a plurality of operation instructions are triggered in an online form manner, and can be triggered simultaneously, so as to improve the instruction execution efficiency.
Fig. 5 is a schematic structural diagram of an instruction processing apparatus according to an embodiment of the present disclosure. The instruction processing apparatus is applied to an instruction management system, and as shown in fig. 5, the instruction management apparatus 500 includes:
an obtaining module 501, configured to obtain 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;
the processing module 502 is 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 sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction.
It can be understood that the instruction management apparatus provided in the embodiments of the present disclosure may be used to execute the instruction processing method executed by the instruction management system side, and the implementation principle and the technical effect are similar, and reference may be specifically made to the above method embodiments, and details are not described here.
In some embodiments, the obtaining module 501 is further configured to: acquiring a verification type and at least one target verification requirement sent by a maintenance terminal, wherein the verification type comprises real-time verification, and the target verification requirement comprises at least one of the following: the type of the operation instruction which can be executed by the server, the execution time of each type of operation instruction and the user authority corresponding to each type of operation instruction; acquiring a second identifier sent by a maintenance terminal, wherein the second identifier is used for determining a server to be configured with a verification rule to be configured;
the processing module 502 is further configured to: and setting a verification requirement for the server to be configured according to the verification type and the target verification requirement, wherein the server to be configured comprises the target server.
In some embodiments, the processing module 502 is further configured to: determining a repeated target verification requirement in the at least one target verification requirement; and reserving one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured according to the verification type and the reserved target verification requirements.
In some embodiments, the processing module 502 is specifically configured to: grouping the target verification requirements according to the types of the target verification requirements to obtain at least one verification requirement group; determining the logic sequence among each verification requirement group according to a preset logic sequence; and setting a verification requirement for the server to be configured according to the verification type and the logic sequence between each verification requirement group.
In some embodiments, the obtaining module 501 is specifically configured to: acquiring an online form sent by a client, wherein the online form comprises at least one operation instruction triggered by a user through the client; and acquiring an operation instruction in the online form.
In some embodiments, the obtaining module 501 is further configured to: acquiring execution information corresponding to an operation instruction sent by a target server; the processing module 502 is further configured to: generating a state list corresponding to the operation instruction according to the execution information, wherein the state list comprises the current execution state of the operation instruction; and sending the state list to a maintenance terminal so that the maintenance terminal can display the state list.
In some embodiments, the processing module 502 is specifically configured to: and sending at least one operation instruction to the target server through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
It can be understood that the instruction management apparatus provided in the embodiments of the present disclosure may be used to execute the instruction processing method executed by the instruction management system side, and the implementation principle and the technical effect are similar, and reference may be specifically made to the above method embodiments, and details are not described here.
Fig. 6 is a diagram of an instruction management apparatus according to another embodiment of the disclosure. The apparatus is applied to a server, and as shown in fig. 6, the instruction management apparatus 600 includes:
the obtaining module 601 is configured to obtain an operation instruction sent by an instruction management system, where the operation instruction is triggered by a user through a client and meets a verification requirement corresponding to a server; a processing module 602, configured to execute an operation instruction; the output module 603 is configured to output an execution result corresponding to the operation instruction to the client.
In some embodiments, the processing module 602 is specifically configured to: acquiring execution information corresponding to the operation instruction, wherein the execution information comprises the execution time of the operation instruction and/or the execution mode of the operation instruction; and executing the operation instruction according to the execution information.
In some embodiments, the obtaining module 601 is specifically configured to: and receiving at least one operation instruction sent by the instruction management system through the instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by a user through a client.
It can be understood that the instruction management apparatus provided in the embodiments of the present disclosure may be used to execute the instruction processing method executed by the server side, and the implementation principle and the technical effect are similar, and reference may be specifically made to the above method embodiments, and details are not described here.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 700 of this embodiment may be the instruction management system and/or the server (or may be a component of the instruction management system and/or the server) mentioned in the foregoing method embodiments, and may be configured to implement the instruction processing method corresponding to the instruction management system and/or the server described in the foregoing method embodiments, which is specifically referred to the description in the foregoing method embodiments and is not described herein again.
The electronic device 700 may include one or more processors 701, where the processors 701 may also be referred to as processing units and may implement certain control or processing functions. The processor 701 may be a general purpose processor or a special purpose processor, etc. For example, a baseband processor, or a central processor. The baseband processor may be used to process data, and the central processor may be used to control the electronic device 700, execute software programs, and process data of the software programs.
In one possible design, processor 701 may also have instructions 703 or data (e.g., test parameters) stored therein. 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.
In yet another possible design, electronic device 700 may include circuitry that may perform the functions of transmitting or receiving or communicating in the foregoing method embodiments.
In one possible implementation, the electronic device 700 may include one or more memories 702, on which instructions 704 may be stored, and the instructions may 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 side described in the above method embodiments.
In one possible implementation, the memory 702 may also have data stored therein. The processor 701 and the memory 702 may be provided separately or may be integrated together.
In one possible implementation, the electronic device 700 may also include a transceiver 705 and/or an antenna 706. The processor 701, which may be referred to as a processing unit, controls the electronic device 700. The transceiver 705 may be referred to as a transceiving unit, a transceiver, a transceiving circuit, a transceiver, or the like, for implementing transceiving functions of the electronic device 700.
For specific implementation processes of the processor 701 and the transceiver 705, reference may be made to the related descriptions of the above embodiments, and details are not described here again.
The processor 701 and the transceiver 705 described in this 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, and so on.
Those skilled in the art will appreciate that the configuration of the electronic device shown in fig. 7 is not intended to be limiting of the present electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
It should be noted that, the electronic device provided in the present disclosure is configured to implement the instruction processing method executed by the instruction management system and/or the server described in the foregoing method embodiment, and can achieve the same technical effect, and details of the same parts and beneficial effects as those of the method embodiment in this embodiment are not described herein again.
Embodiments of the present disclosure also provide a computer-readable storage medium, and when 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 side in the above method embodiments.
Embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the instruction management system and/or the instruction processing method executed by the server in the foregoing method embodiments are implemented.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (english: processor) to execute some steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
In the above embodiments of the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The steps of a method disclosed in connection with the present disclosure may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. The embodiments of the disclosure are intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (15)

1. An instruction processing method applied to an instruction management system includes:
acquiring a first identifier and an operation instruction sent by a client, wherein the first identifier is used for determining 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;
and if the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction.
2. The instruction processing method according to claim 1, further comprising:
acquiring a check type and at least one target check requirement sent by a maintenance terminal, wherein the check type comprises real-time check, and the target check requirement comprises at least one of the following: the type of the operation instruction which can be executed by the server, the execution time of each type of operation instruction and the user authority corresponding to each type of operation instruction;
acquiring a second identifier sent by a maintenance terminal, wherein the second identifier is used for determining a server to be configured with a verification rule to be configured;
and setting a verification requirement for the server to be configured according to the verification type and the target verification requirement, wherein the server to be configured comprises the target server.
3. The instruction processing method according to claim 2, wherein the setting of the checking requirement for the server to be configured according to the checking type and the target checking requirement comprises:
determining a repeated target verification requirement of the at least one target verification requirement;
and reserving one target verification requirement in each group of repeated target verification requirements, and configuring the verification requirements for the server to be configured according to the verification type and the reserved target verification requirements.
4. The instruction processing method according to claim 2, wherein the setting of the checking requirement for the server to be configured according to the checking type and the target checking requirement comprises:
grouping the target verification requirements according to the types of the target verification requirements to obtain at least one verification requirement group;
determining a logic sequence between each check requirement group according to a preset logic sequence;
and setting a verification requirement for the server to be configured according to the verification type and the logic sequence between each verification requirement group.
5. The instruction processing method according to claim 1, wherein the obtaining of the operation instruction sent by the client comprises:
acquiring an online form sent by the client, wherein the online form comprises at least one operation instruction triggered by the client;
and acquiring the operation instruction in the online form.
6. The instruction processing method according to claim 1, further comprising, after sending the operation instruction to the target server:
acquiring execution information corresponding to the operation instruction sent by the target server;
generating a state list corresponding to the operation instruction according to the execution information, wherein the state list comprises the current execution state of the operation instruction;
and sending the state list to a maintenance terminal so that the maintenance terminal displays the state list.
7. The instruction processing method according to any one of claims 1 to 4, wherein the sending the operation instruction to the target server includes:
and sending at least one operation instruction to the target server through an instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by the user through a client.
8. An instruction processing method applied to a server includes:
acquiring an operation instruction sent by an instruction management system, wherein the operation instruction is triggered by a user through a client and meets a verification requirement corresponding to the server;
executing the operation instruction;
and outputting an execution result corresponding to the operation instruction to the client.
9. The instruction processing method according to claim 8, wherein the executing the operation instruction comprises:
acquiring execution information corresponding to the operation instruction, wherein the execution information comprises the execution time of the operation instruction and/or the execution mode of the operation instruction;
and executing the operation instruction according to the execution information.
10. The instruction processing method according to claim 8 or 9, wherein the obtaining of the operation instruction sent by the instruction management system comprises:
receiving at least one operation instruction sent by an instruction management system through an instruction queue, wherein the at least one operation instruction comprises an operation instruction triggered by the user through a client.
11. An instruction processing apparatus applied to an instruction management system, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first identifier and an operation instruction sent by a client, and the first identifier is used for determining a target server for executing the operation instruction;
the processing module is used for sending the operation instruction to the target server when the operation instruction meets the verification requirement of the target server so as to enable the target server to execute the operation instruction; and when the operation instruction does not meet the verification requirement corresponding to the target server, not sending the operation instruction to the server, and sending first prompt information to the client, wherein the first prompt information is used for indicating a user to reselect the target server and/or re-trigger the operation instruction.
12. An instruction processing apparatus applied to a server, the apparatus comprising:
the acquisition module is used for acquiring an operation instruction sent by an instruction management system, wherein the operation instruction is triggered by a user through a client and meets a verification requirement corresponding to the server;
the processing module is used for executing the operation instruction;
and the output module is used for outputting an execution result corresponding to the operation instruction to the client.
13. An electronic device, comprising: a memory for storing program instructions and at least one processor for calling program instructions in the memory to perform the instruction processing method of any of claims 1 to 7 and/or 8 to 10.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program; the computer program, when executed, implements a method of processing instructions as claimed in any one of claims 1 to 7 and/or claims 8 to 10.
15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the instruction processing method of any of claims 1 to 7 and/or claims 8 to 10.
CN202110713294.2A 2021-06-25 2021-06-25 Instruction processing method, device, equipment and storage medium Pending CN113312111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110713294.2A CN113312111A (en) 2021-06-25 2021-06-25 Instruction processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110713294.2A CN113312111A (en) 2021-06-25 2021-06-25 Instruction processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113312111A true CN113312111A (en) 2021-08-27

Family

ID=77380448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110713294.2A Pending CN113312111A (en) 2021-06-25 2021-06-25 Instruction processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113312111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741381A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 DCS monitoring image industrial control command issuing method, system, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741381A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 DCS monitoring image industrial control command issuing method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
KR20210049721A (en) Blockchain-based data processing method and apparatus, device, storage medium and program
CN107135218B (en) Login state obtaining and sending method, credential configuration method, client and server
CN110493184B (en) Method and device for processing login page in client and electronic device
CN110730153A (en) Account configuration method, device and system of cloud equipment and data processing method
CN110365684B (en) Access control method and device for application cluster and electronic equipment
CN110430167B (en) Temporary account management method, electronic device, management terminal and storage medium
CN112948802B (en) Single sign-on method, device, equipment and storage medium
CN104717648A (en) Unified authentication method and device based on SIM card
CN112491776A (en) Security authentication method and related equipment
CN114692195A (en) Document processing method, device, equipment and storage medium
CN113312111A (en) Instruction processing method, device, equipment and storage medium
CN114500082A (en) Access authentication method and device, equipment, server, storage medium and system
CN104768204A (en) Network access management method, wearable device and system
CN111984991A (en) Data encryption storage method, system, terminal and storage medium
CN112417407A (en) Data authorization processing method, device, equipment and storage medium
CN113765963A (en) Data processing method, device, equipment and computer readable storage medium
CN112600744A (en) Authority control method and device, storage medium and electronic device
CN112769757A (en) Data pushing method, device and system
CN111913396A (en) Offline cooking control method, device and equipment
CN116318911A (en) Domain name access method and device, electronic equipment and storage medium
CN116032546A (en) Resource access method and device and electronic equipment
CN113872851B (en) Communication method, device, system, equipment and storage medium
CN105681536B (en) A kind of Dialing Method and user terminal
CN113923130A (en) Multi-tenant open interface resource configuration method, device and terminal
CN111339518A (en) Certificate storage method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination