CN113641475A - Service filtering method and device, electronic equipment and storage medium - Google Patents

Service filtering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113641475A
CN113641475A CN202110936637.1A CN202110936637A CN113641475A CN 113641475 A CN113641475 A CN 113641475A CN 202110936637 A CN202110936637 A CN 202110936637A CN 113641475 A CN113641475 A CN 113641475A
Authority
CN
China
Prior art keywords
service
command
services
combination
user
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
CN202110936637.1A
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110936637.1A priority Critical patent/CN113641475A/en
Publication of CN113641475A publication Critical patent/CN113641475A/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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3836Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a service filtering method, device, electronic device and storage medium, the method comprising: calling a first service combination according to the received first command and the information of the first user; the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system; selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition. According to the method and the system, the corresponding service combination is called according to the received command and the user information of the service system, the command is verified layer by the service in the service combination, and only the command which passes the verification can be executed, so that the accuracy and the safety of command execution are ensured.

Description

Service filtering method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a service filtering method and apparatus, an electronic device, and a storage medium.
Background
In everyday applications, there is a need for service interaction between two service systems. For example, in the process of Securitization of assets, a party A has a requirement of Securitization of Assets (ABS), operates an Asset Securitization business system, and can perform a series of functions of buying and selling, counting, paying and the like on bonds by using the system; the second party has funds and operates a fund management system, and the fund management can be realized by utilizing the system. When a first party needs to perform asset securitization operation, the first party sends an asset operation command through an asset securitization system, and after receiving the asset operation command, a fund management system of a second party needs to call a series of services to filter the command (service filtering is abbreviated in the disclosure) before executing the command, and only the command passing the service filtering is executed.
In the present disclosure, a service system that issues a command is referred to as a cloud, and a service system that implements service filtering is referred to as a ground. Generally, the ground has diversity. Still taking the asset evidentification business as an example, an asset securitization operation issued by party a may be carried over by multiple parties b. The funding systems operated by different parties (which appear as different party b users in the funding system) may differ in the type and amount of services invoked when performing service filtering on asset operation commands. For example, a fund management system of one party B needs to provide format conversion services for asset operation commands, and a fund management system of another party B does not need.
In the prior art, the types and the number of services provided by the ground terminal are relatively fixed and are not flexible enough, and the services cannot be provided in a targeted manner according to different application scenes.
Disclosure of Invention
In order to solve the problems in the prior art, the present disclosure provides a service filtering method, device, electronic device, and storage medium.
The present disclosure provides a service filtering method, including:
calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition.
According to the service filtering method provided by the disclosure, the method further comprises the following steps:
and under the condition that the first command meets the preset condition, selecting the next service from the first service combination according to the execution sequence, and re-executing the step of determining whether the first command meets the preset condition corresponding to the selected service according to the selected service until all the services in the first service combination are determined to pass the first command.
According to a service filtering method provided by the present disclosure, the first service is combined into a first service chain; wherein the content of the first and second substances,
the first service chain comprises a plurality of master nodes, and the first master node corresponds to a first service; wherein the first host node is one of the host nodes, and the first service is one of the first service combination;
the first master node includes a child node corresponding to one atomic operation in the first service.
According to a service filtering method provided by the present disclosure, selecting a service from the first service combination according to the execution sequence, and determining whether the first command satisfies a preset condition corresponding to the selected service according to the selected service, the method includes:
and selecting a main node which does not perform preset condition detection on the first command from the first service chain according to the trend of the first service chain, and determining whether the first command meets a preset condition or not by the selected main node or a sub-node contained in the selected main node.
According to the service filtering method provided by the disclosure, the first service chain is realized by adopting a Filter interceptor.
According to a service filtering method provided by the present disclosure, the first service combination includes a third service; wherein the third service is a service provided by a third service system.
According to a service filtering method provided by the present invention, the invoking a first service combination according to a received first command and information of a first user includes:
acquiring configuration information according to the received first command and the information of the first user;
determining a plurality of services and an execution sequence among the plurality of services according to the configuration information;
determining a first service combination according to the plurality of services and an execution order among the plurality of services;
invoking the first service combination.
According to the service filtering method provided by the disclosure, the first service system is an asset securitization service system, and the second service system is a fund management system.
The present disclosure also provides a service filtering apparatus, including:
the first service combination calling module is used for calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
the first verification module is used for selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command when the first command does not meet the preset condition.
The present disclosure also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the service filtering method according to any one of the above when executing the program.
The present disclosure also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the service filtering method as described in any of the above.
According to the service filtering method, the service filtering device, the electronic equipment and the storage medium, the corresponding service combination is called according to the received command and the user information of the service system, the command is verified layer by the service in the service combination, and only the command which passes the verification can be executed, so that the accuracy and the safety of command execution are ensured.
Drawings
In order to more clearly illustrate the technical solutions of the present disclosure or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow diagram of a service filtering method provided by the present disclosure;
FIG. 2 is a schematic diagram of a first service chain involved in a service filtering method provided by the present disclosure in one embodiment;
FIG. 3 is a schematic diagram of a service chain involved in another embodiment of a service filtering method provided by the present disclosure;
FIG. 4 is a schematic diagram of a service filter arrangement provided by the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided by the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present disclosure. 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.
The service filtering method, apparatus, electronic device and storage medium provided by the present disclosure are described below with reference to fig. 1 to 5.
Fig. 1 is a flowchart of a service filtering method provided by the present disclosure, and as shown in fig. 1, the service filtering method provided by the present disclosure includes:
step 101, calling a first service combination according to the received first command and the information of the first user.
In this embodiment, the first command is a command sent by the first service system to the second service system, and the first user is a user of the second service system. For example, if the first command is a fund operation command sent by the asset securitization business system to the fund management system, the first service system is the asset securitization business system, and the second service system is the fund management system.
The service filtering method provided by this embodiment is applied to the second service system, which is also referred to as the ground in this embodiment. Correspondingly, the first service system is referred to as a cloud in this embodiment.
The first service combination includes a plurality of services having a preset execution order. For example, the first combination of services may include, in order, a decryption service, a format conversion service, and a funding service. The services are used for verifying the first command and executing the first command after the first command is verified. The first service combination may be a directed linked list formed by the services, or may be an array. In this embodiment, the specific form of the first service combination is not limited.
The number of services included in the first service combination, the content of the included services and the first command are related to the information of the first user.
The architecture of the second service system supports one instance serving multiple users, and the system gives the users the ability to make partial customizations to the system, such as customizing user interface colors or customizing business rules. Therefore, in the second service system, the business rules corresponding to different users may be different. Since the business rules may affect the services in the first service combination, the number of services included in the first service combination, and the content of the included services are related to the information of the first user. The information of the first user may be identification Information (ID) of the first user, user type information (e.g., corporate user, individual user) of the first user, and the like.
And the service in the first service combination is used for verifying the first command and executing the first command after the verification is passed. If the content of the first command is different, there may be a difference in the service used to authenticate and execute the first command. For example, for a command with a high security requirement, security verification is required before execution, and for a command with a low security requirement, security verification may be omitted before execution. Therefore, the number of services included in the first service combination, and the content of the included services are related to the first command.
For the above reasons, in this step, it is necessary to determine the first service combination according to the first command and the information of the first user and invoke the first service combination.
For example, after receiving the command c, the user a invokes a first service combination including a replacement service, a recurrent purchase service, and a settlement service; after receiving the command c, the user b invokes a first service combination including a recurring purchase service and an assignment service.
Step 102, selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command when the first command does not meet the preset condition.
In a previous step, a first combination of services has been determined and invoked according to the first command and the information of the first user. In this step, each service in the first service combination needs to be adopted to verify and execute the first command.
Since in the first service combination the execution order between the included services has been defined. Therefore, in this embodiment, the services can be sequentially selected according to the execution order, and the first command can be verified and executed by using the selected services.
For example, the first command is a fund operation command encrypted by an encryption algorithm a, and the first service combination includes a decryption service, a format conversion service, and a fund operation service. In the above service, the decryption service and the format conversion service are used for verifying the first command, and the fund operation service is used for executing the first command. The first command is verified before the first command is executed. When the first command is verified, firstly, a decryption service is selected, the decryption service verifies whether the first command meets a decryption algorithm A '(the decryption algorithm A' is a decryption algorithm corresponding to the encryption algorithm A), if the first command meets the preset condition corresponding to the decryption service, the first command is proved to meet the preset condition (assuming that the decryption service only performs ciphertext decryption operation), and the format conversion service is continuously selected to verify the first command; if not, the first command is proved not to meet the preset condition corresponding to the decryption service, and the first command is intercepted, namely the verification process of the first command is terminated. The authentication process of the format conversion service for the first command is also similar and therefore not repeated here. After the first command is verified, the fund operation service executes the first command (fund operation command), and when the first command is executed, it is also required to determine whether the first command meets a preset condition corresponding to the fund operation service, and if not, the first command needs to be intercepted, that is, the execution process of the first command is terminated.
In this embodiment, if any one of the first combination of services fails to determine (verify or execute) that the first command passes, the first command is intercepted. After the first command is intercepted, the second service system will not execute the first command. This strongly guarantees the accuracy with which the first command is executed.
It should be noted that a service may include a plurality of atomic operations related to authentication, and if a first command fails to pass any of the plurality of atomic operations, the first command is not determined to pass by the service.
The service filtering method provided by the disclosure calls the corresponding service combination according to the received command and the user information of the service system, the command is verified and executed by the service in the service combination, and only the command passing the verification can be executed, so that the accuracy and the safety of command execution are ensured.
Based on any one of the above embodiments, in this embodiment, the method further includes:
and under the condition that the first command meets the preset condition, selecting the next service from the first service combination according to the execution sequence, and re-executing the step of determining whether the first command meets the preset condition corresponding to the selected service according to the selected service until all the services in the first service combination are determined to pass the first command.
In the previous embodiment, a case was described where the first command failed to be passed by a certain service in the first service combination, resulting in the first command being intercepted.
In this embodiment, when the first command is determined to pass through by a certain service in the first service combination, a next service is selected from the first service combination according to the execution sequence, and then the first command is continuously verified or executed by the selected new service. And the first command completes the process of service filtering only after all the services in the first service combination are determined to pass the first command.
The service filtering method provided by the disclosure calls the corresponding service combination according to the received command and the user information of the service system, the command is verified and executed by the service in the service combination, and only the command passing the verification can be executed, so that the accuracy and the safety of command execution are ensured.
Based on any of the above embodiments, in this embodiment, the first service combination is a first service chain; wherein the content of the first and second substances,
the first service chain comprises a plurality of master nodes, and the first master node corresponds to a first service; wherein the first host node is one of the host nodes, and the first service is one of the first service combination;
the first master node includes a child node corresponding to one atomic operation in the first service.
In the previous embodiments, the composition and role of the first service combination are explained. In this embodiment, an implementation manner of the first service combination is further described.
In this embodiment, the first service combination is a first service chain. The first service chain comprises a single chain table, the single chain table comprises a plurality of main nodes, and one main node in the main nodes corresponds to one service in the first service combination. The run of the one-way linked list in the first service chain describes the execution order among the plurality of primary nodes.
For example, the first service combination includes, in order, a decryption service, a format conversion service, and a funding service. The corresponding first service chain is a single linked list comprising three primary nodes, wherein the first primary node represents a decryption service, the second primary node represents a format conversion service, and the third primary node represents a fund operation service.
The first chain of service also includes a doubly linked list. A doubly linked list may be included under the primary node, the doubly linked list including one or more child nodes, each child node corresponding to an atomic operation in the service. For example, a host node represents a decryption operation, which may be further subdivided into multiple atomic operations, such as lease verification, ciphertext decryption, and signature verification. A doubly linked list may be set under the master node, where the doubly linked list includes three child nodes, where the first child node represents the lease verification, the second child node represents the ciphertext decryption, and the third child node represents the signature verification. The first direction in the doubly linked list describes an execution order among the plurality of child nodes, and the second direction in the doubly linked list describes a return order after the execution of the plurality of child nodes is finished.
Fig. 2 is a schematic diagram of a first service chain involved in the service filtering method provided by the present disclosure in an embodiment, and as shown in fig. 2, the first service chain includes a single-direction linked list, where the single-direction linked list includes a1- > a2- > A3- > EndPoint, where a1, a2, and A3 are master nodes, and EndPoint is an end node. The main node A1 is connected with a doubly linked list b1- > b2- > b3, wherein b1, b2 and b3 are all child nodes in the doubly linked list; the main node A2 is connected with a doubly linked list c1, wherein c1 is the child node in the doubly linked list; master node A3 has a doubly linked list d1- > d2, where d1 and d2 are the children of the doubly linked list.
The service filtering method provided by the disclosure represents the service combination in a directed chain table mode, represents the service in the service combination by using the main node, represents the atomic operation in the service by using the sub-node, and can realize the verification and execution of the command by using the directed chain table.
Based on any of the foregoing embodiments, in this embodiment, selecting services from the first service combination according to the execution order, and determining whether the first command satisfies a preset condition corresponding to the selected service according to the selected services includes:
and selecting a main node which does not verify the first command from the first service chain according to the trend of the first service chain, and determining whether the first command meets a preset condition or not by the selected main node or a sub-node contained in the selected main node.
In the previous description, the structure of the first service chain has been explained. In this embodiment, when the first command is subjected to service filtering, according to the trend of the first service chain, the first command first reaches a first main node in a single direction chain table, and a first child node is selected from a double direction chain table under the main node; taking the first child node as a current child node, determining whether the first command meets corresponding preset conditions or not by the current child node, if so, judging whether a next child node exists or not, if so, taking the next child node as the current child node, and then re-executing the step of calling the current child node to determine whether the first command meets the corresponding preset conditions or not; and if the next child node does not exist, returning the main node where the current child node is located. And if the first command does not meet the preset condition, intercepting the first command, namely ending the process of performing service filtering on the first command.
If there are multiple master nodes in the single-direction chain table, referring to the above description, each master node (if the service corresponding to the master node has only one atomic operation) or a child node under the master node (if the service corresponding to the master node has more than one atomic operation) is used to determine whether the preset condition is satisfied for the first command. If the first command can pass the filtering of all the services in the first service chain, the first command is qualified and can be executed subsequently. If the first command is intercepted by any main node or sub-node under the main node in the first service chain, the failure of the process of performing service filtering on the first command is shown, and the first command is not executed any more subsequently.
It should be noted that the first service chain is implemented by using a Filter interceptor, and therefore, the master node and the child node in the first service chain have the capability of intercepting the first command.
The service filtering method provided by the disclosure realizes the verification and execution of the command through the directed linked list, and only the command passing the verification can be executed, thereby ensuring the accuracy and the safety of the command execution.
Based on any one of the above embodiments, in this embodiment, the first service combination includes a third service; wherein the third service is a service provided by a third service system.
In the foregoing embodiment, it has been mentioned that the service filtering method provided by the present disclosure relates to a first service system and a second service system. The first service system is a service system which issues a first command; the second service system is a system that receives the first command and performs service filtering on the first command. For example, the first service system is an asset securitization business system and the second service system is a fund management system.
In this embodiment, the service included in the first service combination called in the second service system is not limited to the service provided by the second service system, and may be a third service system different from the first service system and the second service system. For example, during the process of securitization of assets, a third party assessment of the assets is required, and therefore, the assessment service provided by the third party service system can be included in the first service portfolio.
The service filtering method provided by the disclosure allows the services in the service combination to be the services provided by the third party, so that the command verification is more flexible and diversified.
Based on any one of the foregoing embodiments, in this embodiment, the invoking the first service combination according to the received first command and the information of the first user includes:
acquiring configuration information according to the received first command and the information of the first user;
determining a plurality of services and an execution sequence among the plurality of services according to the configuration information;
determining a first service combination according to the plurality of services and an execution order among the plurality of services;
invoking the first service combination.
In this embodiment, a specific implementation process for invoking the first service combination according to the first command and the information of the first user is described.
After the second service system receives the first command sent by the first service system, the content contained in the first command can be determined. Information of a first user currently using the second service system may also be determined.
After determining the first command and the information of the first user, the configuration information can be obtained accordingly. The configuration information is used for describing a service required for verifying and executing the first command and an execution sequence between the required services in the case where the user of the second service system is the first user. The configuration information may be pre-stored in a database, and the database also stores a mapping relationship between the configuration information and the first command and the first user.
After the configuration information is obtained, according to the content included in the configuration information, the plurality of services and the execution sequence among the plurality of services can be determined, and then the first service combination is obtained. If the first service combination is a first service chain, when the first service chain is generated, one service can be corresponding to one main node, and then a plurality of main nodes are connected in series to form a single linked list according to the execution sequence among a plurality of services; then, according to the atomic operations contained in each service, child nodes are mounted under a main node, one child node corresponds to one atomic operation in the service, and the sequence of the atomic operations in the service corresponds to the sequence of a plurality of child nodes under the same main node.
After determining the first combination of services, the first combination of services may then be invoked.
The service filtering method provided by the disclosure determines the configuration information through the received command and the information of the user, determines the service combination according to the configuration information, realizes flexible configuration of the service combination, and meets the requirements that different asset parties can need various services and can configure different services in an asset securitization application scene.
For ease of understanding, the service filtering method provided by the present disclosure is further described below with reference to a specific example.
In one embodiment, an asset securitization business system (cloud) issues a command to a fund management system (ground) to cyclically purchase 1 billion assets. After receiving the command, the fund management system executes the following steps:
step S1, after receiving the command, the fund management system invokes the service chain corresponding to the command. Fig. 3 is a schematic diagram of a service chain involved in another embodiment of a service filtering method provided by the present disclosure.
Step S2, the first master node service _ chain _1 in the service chain intercepts the command, and performs a decryption operation on the command. The first master node service _ chain _1 has three child nodes sub _ chain _1, sub _ chain _2 and sub _ chain _3 mounted thereon, which respectively correspond to three atomic operations of the decryption operation: and renting and verifying operation, ciphertext decryption operation and signature verification operation. Therefore, when the command is decrypted, the lease-back verification operation, the ciphertext decryption operation and the signature verification operation need to be executed in sequence, and the decryption operation of the command is completed only if the atomic operations of the three decryption operations are passed. Once the atomic operation of any one of the decryption operations fails, the command is not decrypted successfully, the command is discarded, and other services on the service chain are not called to process the command.
And if the atomic operations of the three decryption operations are passed when the command is decrypted, returning to the main node service _ chain _1 to execute the next main node.
Step S3, the second master node service _ chain _2 in the service chain intercepts the command, and performs a format conversion operation on the command.
Because different asset parties have differences in the details of fund management, command formats corresponding to different users in the fund management system may also differ. This makes commands issued by the asset securitization business system difficult to directly identify by the funds management systems of different users. In view of the above, it is necessary to set a master node service _ chain _2 capable of performing a format conversion operation on a command in a service chain.
And the child node sub _ chain _1 mounted on the main node service _ chain _2 corresponds to format conversion operation and is used for carrying out format conversion on the command.
If the format conversion operation can be realized, returning to the main node service _ chain _2 to execute the next main node; if not, the command is discarded and no other services on the service chain are called to process the command.
And step S4, intercepting the command by a third main node service _ chain _3 in the service chain, and performing asset operation according to the command.
The first main node and the second main node in the service chain realize the verification of the command, and the third main node is used for executing the command, namely, carrying out asset operation according to the asset operation command. In this embodiment, the asset operation includes an asset cyclic purchase operation and an unqualified asset pool operation, and corresponds to two child nodes sub _ chain _1 and sub _ chain _2 under the host node service _ chain _3, respectively. After the two atomic operations in the asset operation are respectively executed according to the sequence, returning to the main node service _ chain _3 to execute the next main node; if either of the two atomic operations described above in the asset operation cannot be implemented, the command is discarded and no other service on the service chain is called to process the command.
Step S5, the current master node in the service chain is an end node EndPoint, and ends the service filtering of the command.
The service filtering apparatus provided by the embodiments of the present disclosure is described below, and the service filtering apparatus described below and the service filtering method described above may be referred to in correspondence with each other.
Fig. 4 is a schematic diagram of a service filtering apparatus provided by the present disclosure, and as shown in fig. 4, the service filtering apparatus provided by the present disclosure includes:
a first service combination calling module 401, configured to call a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
a first verification module 402, configured to select services from the first service combination according to the execution sequence, determine whether the first command satisfies a preset condition corresponding to the selected service according to the selected services, and intercept the first command if the first command does not satisfy the preset condition.
The service filtering device provided by the disclosure calls the corresponding service combination according to the received command and the user information of the service system, the command is verified and executed by the service in the service combination, and only the command passing the verification can be executed, so that the accuracy and the safety of command execution are ensured.
Based on any one of the above embodiments, in this embodiment, the apparatus further includes:
and the second verification module is used for selecting the next service from the first service combination according to the execution sequence under the condition that the first command meets the preset condition, and re-executing the step of determining whether the first command meets the preset condition corresponding to the selected service according to the selected service until all services in the first service combination pass the first command.
The service filtering device provided by the disclosure calls the corresponding service combination according to the received command and the user information of the service system, the command is verified and executed by the service in the service combination, and only the command passing the verification can be executed, so that the accuracy and the safety of command execution are ensured.
Based on any of the above embodiments, in this embodiment, the first service combination is a first service chain; wherein the content of the first and second substances,
the first service chain comprises a plurality of master nodes, and the first master node corresponds to a first service; wherein the first host node is one of the host nodes, and the first service is one of the first service combination;
the first master node includes a child node corresponding to one atomic operation in the first service.
The service filtering device provided by the disclosure represents the service combination in a directed chain table mode, represents the service in the service combination by using the main node, represents the atomic operation in the service by using the sub node, and can realize the verification and execution of the command by using the directed chain table.
Based on any of the foregoing embodiments, in this embodiment, selecting services from the first service combination according to the execution order, and determining whether the first command satisfies a preset condition corresponding to the selected service according to the selected services includes:
and selecting a main node which does not verify the first command from the first service chain according to the trend of the first service chain, and determining whether the first command meets a preset condition or not by the selected main node or a sub-node contained in the selected main node.
The service filtering device provided by the disclosure realizes the verification and execution of the command through the directed chain table, and only the command passing the verification can be executed, thereby ensuring the accuracy and the safety of the command execution.
Based on any one of the above embodiments, in this embodiment, the first service combination includes a third service; wherein the third service is a service provided by a third service system.
The service filtering device provided by the disclosure allows the services in the service combination to be services provided by third parties, so that the verification of the commands is more flexible and diversified.
Based on any one of the foregoing embodiments, in this embodiment, the invoking the first service combination according to the received first command and the information of the first user includes:
acquiring configuration information according to the received first command and the information of the first user;
determining a plurality of services and an execution sequence among the plurality of services according to the configuration information;
determining a first service combination according to the plurality of services and an execution order among the plurality of services;
invoking the first service combination.
The service filtering device provided by the disclosure determines the configuration information through the received command and the information of the user, determines the service combination according to the configuration information, realizes flexible configuration of the service combination, and meets the requirements that different asset parties can need various services and can configure different services in an asset securitization application scene.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a service filtering method comprising:
calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in 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 various media capable of storing program codes.
In another aspect, the present disclosure also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a service filtering method provided by the above methods, the method comprising:
calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition.
In yet another aspect, the present disclosure also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the service filtering method provided above, the method comprising:
calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (11)

1. A service filtering method, comprising:
calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command under the condition that the first command does not meet the preset condition.
2. The service filtering method of claim 1, wherein the method further comprises:
and under the condition that the first command meets the preset condition, selecting the next service from the first service combination according to the execution sequence, and re-executing the step of determining whether the first command meets the preset condition corresponding to the selected service according to the selected service until all the services in the first service combination are determined to pass the first command.
3. The service filtering method according to claim 1, wherein the first service combination is a first service chain; wherein the content of the first and second substances,
the first service chain comprises a plurality of master nodes, and the first master node corresponds to a first service; wherein the first host node is one of the host nodes, and the first service is one of the first service combination;
the first master node includes a child node corresponding to one atomic operation in the first service.
4. The service filtering method according to claim 3, wherein selecting services from the first service combination according to the execution order, and determining whether the first command satisfies a preset condition corresponding to the selected services according to the selected services comprises:
and selecting a main node which does not perform preset condition detection on the first command from the first service chain according to the trend of the first service chain, and determining whether the first command meets a preset condition or not by the selected main node or a sub-node contained in the selected main node.
5. The service filtering method according to claim 3, wherein the first service chain is implemented using a Filter interceptor.
6. The service filtering method according to claim 1, wherein the first service combination comprises a third service; wherein the third service is a service provided by a third service system.
7. The service filtering method according to claim 1, wherein said invoking the first service combination according to the received first command and the information of the first user comprises:
acquiring configuration information according to the received first command and the information of the first user;
determining a plurality of services and an execution sequence among the plurality of services according to the configuration information;
determining a first service combination according to the plurality of services and an execution order among the plurality of services;
invoking the first service combination.
8. The service filtering method according to any one of claims 1 to 7, wherein the first service system is an asset securitization business system and the second service system is a fund management system.
9. A service filter arrangement, comprising:
the first service combination calling module is used for calling a first service combination according to the received first command and the information of the first user; wherein the first service combination comprises a plurality of services with a preset execution sequence; the first command is a command sent by a first service system to a second service system, and the first user is a user of the second service system;
the first verification module is used for selecting services from the first service combination according to the execution sequence, determining whether the first command meets a preset condition corresponding to the selected services according to the selected services, and intercepting the first command when the first command does not meet the preset condition.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the service filtering method according to any of claims 1 to 8 are implemented when the program is executed by the processor.
11. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the service filtering method according to any one of claims 1 to 8.
CN202110936637.1A 2021-08-16 2021-08-16 Service filtering method and device, electronic equipment and storage medium Pending CN113641475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110936637.1A CN113641475A (en) 2021-08-16 2021-08-16 Service filtering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110936637.1A CN113641475A (en) 2021-08-16 2021-08-16 Service filtering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113641475A true CN113641475A (en) 2021-11-12

Family

ID=78421933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110936637.1A Pending CN113641475A (en) 2021-08-16 2021-08-16 Service filtering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113641475A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521044A (en) * 2011-12-30 2012-06-27 北京拓明科技有限公司 Distributed task scheduling method and system based on messaging middleware
US20160164817A1 (en) * 2014-12-09 2016-06-09 American Megatrends, Inc. Email based persistent and secure communication system for interacting with devices
US9792163B1 (en) * 2016-06-28 2017-10-17 Vmware, Inc. Decentralized control plane for a computing system
WO2020233033A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Information interaction method, device and storage medium
CN113158196A (en) * 2021-04-20 2021-07-23 中国工商银行股份有限公司 Login verification method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521044A (en) * 2011-12-30 2012-06-27 北京拓明科技有限公司 Distributed task scheduling method and system based on messaging middleware
US20160164817A1 (en) * 2014-12-09 2016-06-09 American Megatrends, Inc. Email based persistent and secure communication system for interacting with devices
US9792163B1 (en) * 2016-06-28 2017-10-17 Vmware, Inc. Decentralized control plane for a computing system
WO2020233033A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Information interaction method, device and storage medium
CN113158196A (en) * 2021-04-20 2021-07-23 中国工商银行股份有限公司 Login verification method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN108681853B (en) Logistics information transmission method, system and device based on block chain
CN107748985B (en) Network-based payment method and network payment server
CN104169952B (en) A kind of method of network payment, apparatus and system
US8843418B2 (en) Authentication of an end user
KR102315794B1 (en) Methods and devices for connecting to accounts and providing service processes
CN112199382A (en) Node group creating method and node group-based transaction method in alliance chain network
CN113849808B (en) Container security management method, system, terminal and storage medium
CN102096872A (en) Method and device for safety detection of online banking payment information
CN108776896A (en) Digital cash wallet business management method based on multi-signature and system
CN110400217A (en) The regular changing process method and device of intelligent contract
CN112583593B (en) Private communication method and device between users
CN112600830B (en) Service data processing method and device, electronic equipment and storage medium
CN105704154B (en) A kind of service processing method based on RESTful, apparatus and system
CN110602218B (en) Method and related device for assembling cloud service in user-defined manner
CN113641475A (en) Service filtering method and device, electronic equipment and storage medium
CN115913734A (en) User authority management method, device and equipment applied to alliance chain
US20220156153A1 (en) Method for controlling other systems based on single-point execution contract
CN113326540B (en) Micro-service calling authority control method, device, server, system and medium
CN115511633A (en) Method, device, terminal and storage medium for recovering block chain assets
CN109474565B (en) Information verification method and apparatus, storage medium, and electronic apparatus
CN112350982B (en) Resource authentication method and device
CN114221976A (en) Distributed cloud data integrity auditing method and system
CN114915430A (en) Method, device, communication equipment and storage medium for realizing dynamic capability opening
CN104796771B (en) Control method for down loading and system and downloading guides module
CN109639435A (en) It is a kind of based on terminal card to the authentication method and system of APP

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