Resource distribution result generation method and device, equipment and storage medium
By using transaction rule collection and target rule engine on the resource distribution platform, intelligently processing resource application review, solving the problem of low manual review efficiency and improving resource distribution efficiency and user experience.
Patent Information
- Application Number
- CN202411578701.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-21
AI Technical Summary
In the existing technology, resource distribution platforms require manual review of resource applications, resulting in low review efficiency and poor resource distribution efficiency and user experience.
By obtaining the resource issuance request of the target object, obtaining its corresponding transaction rules set, using resource application information to match, executing the rule actions in the target rule engine, generating resource issuance results, and realizing intelligent resource application review.
It improves the review efficiency of resource applications, optimizes the user experience, and realizes the intelligent generation of resource distribution results.
Smart Images

Figure CN119671474A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a method, device, equipment and storage medium for generating resource distribution results. Background Art
[0002] With the development of network technology, users can perform more and more transactions through the network. For example, when a user has resource needs, he can apply for resources from the resource distribution platform through the network. If the resource application is approved, the user can obtain the resources from the resource distribution platform.
[0003] In the related art, the resource distribution platform needs to review the user before distributing resources, and the resources can only be distributed if the review is passed. Generally speaking, the review work is manually performed by the staff of the resource distribution platform.
[0004] However, manual review is inefficient, resulting in low efficiency in resource distribution and poor user experience. Summary of the invention
[0005] The embodiments of this specification provide a method, device, equipment and storage medium for generating resource distribution results, which can improve the review efficiency of resource applications and improve user experience. The technical solution is as follows:
[0006] In one aspect, a method for generating a resource distribution result is provided, the method comprising:
[0007] In response to a resource issuance request of a target object, obtaining a transaction rule set corresponding to the target object, wherein the resource issuance request carries resource application information of the target object;
[0008] The resource application information is used to match the transaction rule set to obtain at least one target transaction rule, where the target transaction rule is a transaction rule that successfully matches the resource application information;
[0009] Executing the rule action of the at least one target transaction rule through the target rule engine to obtain a rule execution result;
[0010] Based on the rule execution result, a resource provisioning result corresponding to the resource provisioning request is generated.
[0011] In a possible implementation, in response to the resource provisioning request of the target object, obtaining the transaction rule set corresponding to the target object includes:
[0012] In response to the resource issuance request of the target object, determine the resource issuance transaction corresponding to the resource issuance request; obtain the transaction rule set of the resource issuance transaction from the transaction rule library, and the transaction rule library updates the stored transaction rules in a hot update manner;
[0013] Alternatively, in response to a resource issuance request of the target object, the object type of the target object is determined based on the resource application information; and the transaction rule set corresponding to the object type is acquired from the transaction rule library.
[0014] In a possible implementation, the method further includes:
[0015] In response to a transaction rule adding instruction, obtaining a first target rule text from the transaction rule adding instruction; compiling the first target rule text to obtain a first target transaction rule; and storing the first target transaction rule in the transaction rule library;
[0016] In response to a business rule deletion instruction, determining a second target business rule indicated by the business rule deletion instruction in the business rule library; and deleting the second target business rule;
[0017] In response to a transaction rule modification instruction, determine a third target transaction rule indicated by the transaction rule modification instruction in the transaction rule library and obtain a second target rule text from the transaction rule modification instruction; compile the second target rule text to obtain a fourth target transaction rule; and replace the third target transaction rule with the fourth target transaction rule.
[0018] In a possible implementation, in response to the resource provisioning request of the target object, obtaining the transaction rule set corresponding to the target object includes:
[0019] In response to the resource issuance request of the target object, verify the resource application information to obtain the verification result of the resource application information, the verification including integrity verification, legality verification and consistency verification;
[0020] When the verification result indicates that the verification is passed, a transaction rule set corresponding to the target object is obtained.
[0021] In a possible implementation, the adopting of the resource application information to match the transaction rule set to obtain at least one target transaction rule includes:
[0022] Based on the resource application information, generate an object information set of the target object, the object information set including a plurality of object information;
[0023] The plurality of object information and the plurality of business rules in the business rule set are matched cyclically to obtain the at least one target business rule.
[0024] In a possible implementation manner, the performing cyclic matching on the plurality of object information and the plurality of business rules in the business rule set to obtain the at least one target business rule includes:
[0025] For any object information among the plurality of object information, a matching function is performed on the object information and the plurality of business rules to obtain a matching result between the object information and each of the business rules; and a business rule for which the matching result indicates a successful match is determined as the target business rule;
[0026] Alternatively, for any object information among the multiple object information, based on the object information, multiple candidate transaction rules are determined from the multiple transaction rules, and the candidate transaction rules are transaction rules associated with the object information; a matching function is executed on the object information and the multiple candidate transaction rules to obtain matching results between the object information and each of the candidate transaction rules; and the candidate transaction rule for which the matching result indicates a successful match is determined as the target transaction rule.
[0027] In a possible implementation manner, performing a matching function on the object information and the plurality of transaction rules to obtain a matching result between the object information and each of the transaction rules includes:
[0028] Based on the conditions in each of the business rules, the multiple business rules are divided into multiple business rule groups, and the business rules in a business rule group have at least one same condition;
[0029] A matching function is executed on the object information and each of the transaction rule groups to obtain a matching result between the object information and each of the transaction rules.
[0030] In a possible implementation, executing the rule action of the at least one target transaction rule by the target rule engine to obtain the rule execution result includes:
[0031] Executing the rule action of the at least one target transaction rule through the target rule engine to obtain an action execution result;
[0032] Based on the execution result of the action, new object information is added or new transaction rule matching is triggered;
[0033] When there is no unmatched object information or a predetermined condition is met, the last obtained action execution result is output as the rule execution result.
[0034] In a possible implementation, the generating, based on the rule execution result, a resource provisioning result corresponding to the resource provisioning request includes:
[0035] In the case where the rule execution result indicates that the resource issuance is rejected, generating the resource issuance result based on first prompt information, wherein the first prompt information is used to prompt that the resource issuance request is rejected;
[0036] If the rule execution result indicates that the resource is approved, generating the resource issuance result based on the second prompt information, the second prompt information is used to prompt that the resource issuance request is approved, and the second prompt information carries the resource issuance amount;
[0037] When the rule execution result indicates that it is pending, the resource application information is sent to the audit terminal so that the audit terminal returns a request audit result based on the resource application information; and the resource issuance result is generated based on the request audit result returned by the audit terminal.
[0038] In one aspect, a device for generating a resource distribution result is provided, the device comprising:
[0039] An acquisition module, configured to acquire a transaction rule set corresponding to a target object in response to a resource issuance request of the target object, wherein the resource issuance request carries resource application information of the target object;
[0040] A matching module, configured to match the resource application information in the transaction rule set to obtain at least one target transaction rule, wherein the target transaction rule is a transaction rule that successfully matches the resource application information;
[0041] An execution module, used to execute the rule action of the at least one target transaction rule through a target rule engine to obtain a rule execution result;
[0042] A generation module is used to generate a resource issuance result corresponding to the resource issuance request based on the rule execution result.
[0043] In a possible implementation, the acquisition module is used to determine the resource issuance transaction corresponding to the resource issuance request in response to the target object; obtain the transaction rule set of the resource issuance transaction from the transaction rule library, and the transaction rule library updates the stored transaction rules in a hot update manner; or, in response to the resource issuance request of the target object, determine the object type of the target object based on the resource application information; and obtain the transaction rule set corresponding to the object type from the transaction rule library.
[0044] In a possible implementation, the device further includes:
[0045] A rule adjustment module is used to respond to a transaction rule addition instruction, obtain a first target rule text from the transaction rule addition instruction; compile the first target rule text to obtain a first target transaction rule; store the first target transaction rule in the transaction rule library; respond to a transaction rule deletion instruction, determine a second target transaction rule indicated by the transaction rule deletion instruction in the transaction rule library; delete the second target transaction rule; respond to a transaction rule modification instruction, determine a third target transaction rule indicated by the transaction rule modification instruction in the transaction rule library and obtain a second target rule text from the transaction rule modification instruction; compile the second target rule text to obtain a fourth target transaction rule; and replace the third target transaction rule with the fourth target transaction rule.
[0046] In one possible implementation, the acquisition module is used to verify the resource application information in response to a resource issuance request of the target object, and obtain a verification result of the resource application information, wherein the verification includes an integrity check, a legality check, and a consistency check; when the verification result indicates that the verification is passed, the transaction rule set corresponding to the target object is obtained.
[0047] In a possible implementation, the matching module is used to generate an object information set of the target object based on the resource application information, wherein the object information set includes multiple object information; and to perform cyclic matching on the multiple object information and multiple transaction rules in the transaction rule set to obtain the at least one target transaction rule.
[0048] In one possible implementation, the matching module is used to, for any object information among the multiple object information, execute a matching function on the object information and the multiple transaction rules to obtain a matching result between the object information and each of the transaction rules; determine a transaction rule whose matching result indicates a successful match as the target transaction rule; or, for any object information among the multiple object information, determine a plurality of candidate transaction rules from the multiple transaction rules based on the object information, wherein the candidate transaction rules are transaction rules associated with the object information; execute a matching function on the object information and the multiple candidate transaction rules to obtain a matching result between the object information and each of the candidate transaction rules; determine a candidate transaction rule whose matching result indicates a successful match as the target transaction rule.
[0049] In a possible implementation, the matching module is used to divide the multiple transaction rules into multiple transaction rule groups based on the conditions in each of the transaction rules, and the transaction rules in a transaction rule group have at least one identical condition; and execute a matching function on the object information and each of the transaction rule groups to obtain a matching result between the object information and each of the transaction rules.
[0050] In a possible implementation, the execution module is used to execute the rule action of the at least one target transaction rule through the target rule engine to obtain an action execution result; based on the action execution result, add object information or trigger a new transaction rule match; when there is no unmatched object information or a predetermined condition is met, output the last obtained action execution result as the rule execution result.
[0051] In one possible implementation, the generation module is used to generate the resource issuance result based on first prompt information when the rule execution result indicates a refusal to issue resources, the first prompt information being used to prompt that the resource issuance request is rejected; to generate the resource issuance result based on second prompt information when the rule execution result indicates an approval to issue resources, the second prompt information being used to prompt that the resource issuance request is approved, the second prompt information carrying the resource issuance amount; to send the resource application information to the audit terminal when the rule execution result indicates pending, so that the audit terminal returns a request audit result based on the resource application information; and to generate the resource issuance result based on the request audit result returned by the audit terminal.
[0052] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the method for generating resource issuance results.
[0053] On the one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for generating the resource issuance result.
[0054] On the one hand, a computer program product or a computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned method for generating resource issuance results.
[0055] Through the technical solution provided in the embodiment of this specification, in response to the resource issuance request of the target object, the transaction rule set corresponding to the target object is obtained, and the resource issuance request carries the resource application information of the target object. The resource application information is used to match in the transaction rule set to obtain at least one target transaction rule. Through the target rule engine, the rule action of the at least one target transaction rule is executed to obtain the rule execution result. Based on the rule execution result, the resource issuance result is generated, and the resource application information is intelligently reviewed, and the generation efficiency of the resource issuance result is improved, thereby optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0057] Figure 1 It is a schematic diagram of an implementation environment of a method for generating a resource distribution result provided in an embodiment of this specification;
[0058] Figure 2 It is a flow chart of a method for generating resource distribution results provided in an embodiment of this specification;
[0059] Figure 3 It is a flow chart of another method for generating resource distribution results provided in an embodiment of this specification;
[0060] Figure 4 This is a flow chart of another method for generating resource distribution results provided by an embodiment of this specification;
[0061] Figure 5 It is a schematic diagram of the structure of a device for generating resource distribution results provided in an embodiment of this specification;
[0062] Figure 6 is a schematic diagram of the structure of a terminal provided in an embodiment of this specification;
[0063] Figure 7 It is a structural diagram of a server provided in an embodiment of this specification. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of this specification more clear, the implementation methods of this specification will be further described in detail below with reference to the accompanying drawings.
[0065] In this specification, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between the "first", "second", and "nth", and there is no limitation on the quantity and execution order.
[0066] In order to illustrate the technical solutions provided by the embodiments of this specification, the nouns involved in the embodiments of this specification are first introduced.
[0067] Rule engine: A rule engine is a software component used to manage and execute transaction rules. It separates transaction logic from application code and defines and stores it in the form of rules. When a transaction logic needs to be executed, the rule engine matches and infers the input data and predefined rules to generate corresponding operation instructions or decision results. In short, the rule engine can read, parse and execute preset transaction rules to realize the automation of transaction processes.
[0068] Rules: Rules consist of two parts: conditions and actions. Conditions are the judgment conditions of rules, which are used to determine whether the execution conditions of the rules are met; actions are the execution results of rules, which are used to implement specific operations of business logic.
[0069] Hot update: refers to the system's ability to dynamically load new rules or update existing rules without interrupting service, ensuring the real-time and flexibility of the rules.
[0070] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the resource application information and object information involved in this specification are all obtained with full authorization.
[0071] After introducing the terms involved in the embodiments of this specification, the implementation environment of the embodiments of this specification is introduced below.
[0072] Figure 1 This is a schematic diagram of an implementation environment of a method for generating resource distribution results provided in an embodiment of this specification, see Figure 1 The implementation environment may include a user terminal 110, a rule configuration terminal 120 and a resource distribution platform 140.
[0073] The user terminal 110 is connected to the resource distribution platform 140 via a wireless network or a wired network. Optionally, the user terminal 110 is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The user terminal 110 installs and runs an application that supports resource application, and the user can apply for resources using the user terminal 110.
[0074] The rule configuration terminal 120 is connected to the resource distribution platform 140 via a wireless network or a wired network. Optionally, the rule configuration terminal 120 is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The rule configuration terminal 120 is installed and runs an application that supports rule configuration, and the administrator can configure the transaction rules using the rule configuration terminal 120.
[0075] The resource distribution platform 140 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The resource distribution platform 140 can perform resource distribution and resource recycling.
[0076] Optionally, the user terminal 110 generally refers to one of a plurality of terminals, and the embodiments of this specification only take the user terminal 110 as an example.
[0077] After introducing the implementation environment of the embodiments of this specification, the application scenarios of the embodiments of this specification are introduced below. The technical solutions provided by the embodiments of this specification can be applied in the scenarios of issuing various resources, for example, in the scenarios of issuing game props in games, or in the scenarios of issuing loans by financial institutions, or in the scenarios of issuing red envelopes or vouchers, and the embodiments of this specification do not limit this.
[0078] The technical solution provided in the embodiments of this specification is applied in a scenario where a financial institution issues loans. A user sends a loan application to the financial institution, and the financial institution uses the technical solution provided in the embodiments of this specification to review the user's loan application, generate a review result and feed the review result back to the user. The user can quickly learn the application result and have a better experience.
[0079] After introducing the application scenarios of the embodiments of this specification, the technical solutions provided by the embodiments of this specification are introduced below. Figure 2 , taking the execution subject as a resource distribution platform as an example, the method includes the following steps.
[0080] 201. In response to a resource issuance request of a target object, a resource issuance platform obtains a transaction rule set corresponding to the target object. The resource issuance request carries resource application information of the target object.
[0081] The target object is a user with resource requirements. The resource issuance request is used to request resources from the resource issuance platform. The resource application information carried in the resource issuance request is information provided by the target object for review before resource issuance. The resource application information is used to describe the situation of the target object in different dimensions. In some embodiments, the resource application information is also referred to as a fact set. The fact set includes multiple facts, and one fact is used to describe the situation of the target object in a certain dimension. The transaction rule set includes multiple transaction rules. The correspondence between the transaction rule set and the target object means that the transaction rules in the transaction rule set are applicable to the target object.
[0082] 202. The resource distribution platform uses the resource application information to perform matching in the transaction rule set to obtain at least one target transaction rule, where the target transaction rule is a transaction rule that successfully matches the resource application information.
[0083] The transaction rules include conditions and actions. Matching of resource application information in the transaction rule set means that the resource application information matches the conditions of multiple transaction rules in the transaction rule set. Successful matching means that the resource application information meets the conditions of the transaction rules.
[0084] 203. The resource distribution platform executes the rule action of the at least one target transaction rule through the target rule engine to obtain a rule execution result.
[0085] The target rule engine is the rule engine corresponding to the resource issuance transaction, and the target rule engine can parse and execute transaction rules. In the embodiment of this specification, the execution of the rule action obtains the action execution result, which is obtained after the rule actions of at least one target transaction rule are executed.
[0086] 204. The resource issuance platform generates a resource issuance result corresponding to the resource issuance request based on the rule execution result.
[0087] Among them, the resource issuance results include refusal to issue resources, approval to issue resources, and pending. Pending means that a definite review result cannot be given and further review is required through other channels.
[0088] Through the technical solution provided in the embodiment of this specification, in response to the resource issuance request of the target object, the transaction rule set corresponding to the target object is obtained, and the resource issuance request carries the resource application information of the target object. The resource application information is used to match in the transaction rule set to obtain at least one target transaction rule. Through the target rule engine, the rule action of the at least one target transaction rule is executed to obtain the rule execution result. Based on the rule execution result, the resource issuance result is generated, and the resource application information is intelligently reviewed, and the generation efficiency of the resource issuance result is improved, thereby optimizing the user experience.
[0089] The above steps 201-204 are a brief introduction to the technical solution provided in the embodiment of this specification. The following will combine some examples to provide a more detailed introduction to the technical solution provided in the embodiment of this specification. Figure 3 , taking the execution subject as the resource method platform as an example, the method includes the following steps.
[0090] 301. The resource distribution platform obtains a resource distribution request of a target object, where the resource distribution request carries resource application information of the target object.
[0091] Among them, the target object is a user with resource needs, and resources have different meanings in different application scenarios. For example, in the scenario of issuing game props, resources refer to game props; in the scenario of issuing loans, resources refer to currency; in the scenario of issuing red envelopes or vouchers, resources refer to red envelopes or vouchers. The resource issuance request is used to request to obtain resources from the resource issuance platform. The resource application information carried by the resource issuance request is the information provided by the target object for review before resource issuance. The resource application information is used to describe the situation of the target object in different dimensions. In some embodiments, the resource application information is also called a fact set. The fact set includes multiple facts, and one fact is used to describe the situation of the target object in a certain dimension.
[0092] In a possible implementation, the resource distribution platform obtains a resource distribution request of a target object from a target user terminal, where the target user terminal is a user terminal used by the target object.
[0093] In order to explain the above implementation more clearly, the manner in which the target user terminal sends the resource issuance request is explained below.
[0094] In some embodiments, in response to a click operation on the target control, the target user terminal displays a resource distribution page of the resource distribution platform. In response to an operation on the resource distribution page, the target user terminal sends the resource distribution request to the resource distribution platform based on the resource application information of the target object.
[0095] The target control is a control associated with the resource issuance page. The target control can be a control in an application or a control on another page, which is not limited in the embodiments of this specification. The resource issuance page is used to display relevant information about resource issuance. For example, the resource issuance page displays the name of the resource issuance transaction, the resource issuance agreement, the resource issuance / recycling method, and the resource application information of the target object. The operation on the resource issuance page is used to indicate the sending of the resource issuance request.
[0096] 302. In response to a resource distribution request of a target object, the resource distribution platform obtains a transaction rule set corresponding to the target object.
[0097] The transaction rule set includes a plurality of transaction rules, and the correspondence between the transaction rule set and the target object means that the transaction rules in the transaction rule set are applicable to the target object.
[0098] In a possible implementation, in response to the resource issuance request of the target object, the resource issuance platform verifies the resource application information and obtains the verification result of the resource application information, wherein the verification includes integrity verification, legality verification and consistency verification. If the verification result indicates that the verification is passed, the resource issuance platform obtains the transaction rule set corresponding to the target object.
[0099] Among them, the integrity check is used to check the integrity of the resource application information, that is, to determine whether the resource application information is complete, without missing or damaged; the legality check is used to check the legality of the resource application information, that is, to determine whether the characters and formats in the resource application information meet the requirements; the consistency check is used to check the consistency of the resource application information, that is, to determine whether the resource application information is tampered with during the transmission process, so as to ensure the authenticity of the resource application information. It should be noted that the way in which the resource issuance platform obtains the transaction rule set will be described in the subsequent implementation method and will not be repeated here.
[0100] In the above implementation mode, the resource application information is verified before obtaining the transaction rule set to ensure the authenticity and availability of the resource application information and improve the security of resource issuance.
[0101] For example, in response to a resource issuance request from a target object, the resource issuance platform obtains the resource application information from the resource issuance request. The resource issuance platform performs integrity verification, legality verification, and consistency verification on the resource application information. If the verification result indicates that the verification is passed, the resource issuance platform obtains the transaction rule set corresponding to the target object.
[0102] Optionally, based on the above implementation, the following steps can also be performed.
[0103] In some embodiments, when the verification result indicates that the verification has not passed, the resource distribution platform sends a verification failure message to the target user terminal, where the verification failure message is used to prompt that the resource application information has not passed the verification.
[0104] Another implementation of the above step 302 is described below.
[0105] In a possible implementation, in response to the resource issuance request of the target object, the resource issuance platform determines the resource issuance transaction corresponding to the resource issuance request. The resource issuance platform obtains the transaction rule set of the resource issuance transaction from the transaction rule library, and the transaction rule library updates the stored transaction rules in a hot update manner.
[0106] Among them, the resource issuance platform may provide a variety of resource issuance transactions, and different resource issuance transactions correspond to different transaction rule sets. For example, the resource issuance platform provides loan transaction 1, loan transaction 2, and loan transaction 3, and loan transaction 1, loan transaction 2, and loan transaction 3 correspond to different transaction rule sets. The correspondence between resource issuance transactions and transaction rule sets is reflected by the correspondence between resource issuance transactions and transaction rules. The correspondence between resource issuance transactions and transaction rules is set by technical personnel according to actual conditions, and this specification embodiment does not limit this. Multiple transaction rules are stored in the transaction rule library. The transaction rule library supports hot updates, which means that the addition, deletion, and modification of transaction rules can take effect immediately without waiting for the system to restart.
[0107] In the above implementation, in response to a resource issuance request, a resource issuance transaction corresponding to the resource issuance request is determined, and a transaction rule set corresponding to the resource issuance transaction is obtained, and the transaction rule set has a high accuracy.
[0108] For example, in response to the resource issuance request of the target object, the resource issuance platform obtains a transaction identifier from the resource issuance request. Based on the transaction identifier, the resource issuance platform determines the resource issuance transaction corresponding to the resource issuance request. The resource issuance platform queries the transaction rule library to obtain multiple transaction rules corresponding to the resource issuance transaction, and the multiple transaction rules constitute the transaction rule set.
[0109] In order to explain the above implementation more clearly, the following describes the method of adding, deleting and modifying the transaction rules in the transaction rule library.
[0110] In a possible implementation, in response to a transaction rule addition instruction, the resource issuance platform obtains a first target rule text from the transaction rule addition instruction. The resource issuance platform compiles the first target rule text to obtain a first target transaction rule. The resource issuance platform stores the first target transaction rule in the transaction rule library. In response to a transaction rule deletion instruction, the resource issuance platform determines the second target transaction rule indicated by the transaction rule deletion instruction in the transaction rule library. The resource issuance platform deletes the second target transaction rule. In response to a transaction rule modification instruction, the resource issuance platform determines the third target transaction rule indicated by the transaction rule modification instruction in the transaction rule library and obtains the second target rule text from the transaction rule modification instruction. The resource issuance platform compiles the second target rule text to obtain a fourth target transaction rule. The resource issuance platform replaces the third target transaction rule with the fourth target transaction rule.
[0111] The rule text is written by a technician, and the rule text can be in the form of natural language. The purpose of compiling the rule text is to convert the rule text in natural language into business rules in computer language, so as to facilitate rule query and rule execution. The resource distribution platform has a compiler, and the compilation of the rule text can be realized through the compiler. In some embodiments, the resource distribution platform provides a template for writing the rule text, so that the technician can use the template to quickly write the rule text.
[0112] In some embodiments, when a transaction rule in a transaction rule library changes, the resource distribution platform stores the transaction rule before the change in a version database to facilitate version backtracking and other processing.
[0113] Among them, changes include the above-mentioned additions, deletions and modifications.
[0114] In some embodiments, the technicians can add, delete, and modify the business rules through a visual interface. The following describes how to add, delete, and modify the business rules through a visual interface.
[0115] In some embodiments, the rule configuration terminal displays a business rule configuration interface. In response to a rule adding operation on the business rule configuration interface, the rule configuration terminal generates a business rule adding instruction based on the first target rule text corresponding to the rule adding operation. The rule configuration terminal sends the business rule adding instruction to the resource distribution platform. In response to a rule deleting operation on the business rule configuration interface, the rule configuration terminal determines a second target business rule to be deleted, and the rule configuration terminal generates a business rule deleting instruction based on the second target business rule. The rule configuration terminal sends the business rule deleting instruction to the resource distribution platform. In response to a rule modifying operation on the business rule configuration interface, the rule configuration terminal determines a third target business rule to be modified and obtains the second target rule text corresponding to the rule modifying operation. The rule configuration terminal generates a business rule modifying instruction based on the third target business rule and the second target rule text. The rule configuration terminal sends the business rule modifying instruction to the resource distribution platform.
[0116] Another implementation of the above step 302 is described below.
[0117] In a possible implementation, in response to the resource provisioning request of the target object, the resource provisioning platform determines the object type of the target object based on the resource application information, and obtains the transaction rule set corresponding to the object type from the transaction rule library.
[0118] Among them, objects have multiple object types, and different object types correspond to different sets of transaction rules.
[0119] In the above implementation, in response to the resource release request, the object type of the target object is determined, and a transaction rule set corresponding to the object type is obtained, and the transaction rule set has a high accuracy.
[0120] For example, in response to the resource issuance request of the target object, the resource issuance platform obtains the object type of the target object from the resource issuance request. The resource issuance platform uses the object type to query the transaction rule library to obtain multiple transaction rules corresponding to the resource issuance transaction, and the multiple transaction rules constitute the transaction rule set.
[0121] 303. The resource distribution platform generates an object information set of the target object based on the resource application information, where the object information set includes multiple pieces of object information.
[0122] The plurality of object information includes the first sub-information in the resource application information and the second sub-information queried based on the first sub-information in the resource application information. In the embodiment of this specification, object information is also referred to as a fact, and an object information set is a fact set including a plurality of facts.
[0123] In a possible implementation, the resource distribution platform splits the resource application information to obtain multiple first sub-information. The resource distribution platform uses the target sub-information in the multiple first sub-information to query in the object information library to obtain multiple second sub-information of the target object, and the target sub-information is used to identify the target object. The resource distribution platform generates an object information set of the target object based on the multiple first sub-information and the multiple second sub-information.
[0124] The object information library stores second sub-information of multiple objects, and the second sub-information in the object information library is uploaded by different resource-related platforms.
[0125] In this implementation, the resource application information is split into multiple first sub-information. The target sub-information in the multiple first sub-information is used to query in the object information library to obtain multiple second sub-information. The object information set is generated based on the multiple first sub-information and the multiple second sub-information, and the accuracy of the object information is high.
[0126] For example, the resource distribution platform splits the resource application information according to the information type to obtain multiple first sub-information. The resource distribution platform determines the first sub-information of the target information type in the multiple first sub-information as the target sub-information, and the target information type is an object identifier. The resource distribution platform uses the target sub-information to query in the object information library to obtain multiple second sub-information. The resource distribution platform determines the multiple first sub-information and the multiple second sub-information as multiple object information to obtain the object information set of the target object.
[0127] Among them, one first sub-information is one object information, and one second sub-information is one object information.
[0128] Another implementation of the above step 303 is described below.
[0129] In a possible implementation, the resource distribution platform performs a preliminary review of the resource application information. If the resource application information passes the preliminary review, the resource distribution platform obtains the object identifier of the target object from the resource application information. The resource distribution platform uses the object representation to query the resource transfer database to obtain the resource transfer information of the target object. The resource distribution platform generates an object information set of the target object based on the resource application information and the resource transfer information.
[0130] The purpose of conducting a preliminary review of the resource application information is to conduct a preliminary review of the resource acquisition qualifications of the target object. If the preliminary review is passed, it means that the resource acquisition qualifications of the target object have passed the preliminary review. The resource transfer information is used to indicate the resource transfer status of the target object, which includes the resource acquisition status and resource expenditure status. It should be noted that the acquisition of the resource transfer information is permitted by the target object.
[0131] In this implementation mode, the resource application information is preliminarily reviewed. If the preliminarily reviewed information is passed, the object identifier of the target object is obtained from the resource application information, and the resource transfer information of the target object is obtained from the resource transfer database using the object identifier. Based on the resource application information and the resource transfer information, an object information set of the target object is generated, and the accuracy of the object information set is relatively high.
[0132] For example, the resource distribution platform inputs the resource application information into the information audit model, and extracts features of the resource application information through the information audit model to obtain the information features of the resource application information. The resource distribution platform maps the information features through the information audit model to obtain the classification value corresponding to the resource application information. When the classification value is greater than or equal to the classification value threshold, the resource distribution platform determines that the resource application information has passed the preliminary review. When the classification value threshold is less than the classification value threshold, the resource distribution platform determines that the resource application information has not passed the preliminary review. The resource distribution platform uses the object representation to query in the resource transfer database to obtain the resource transfer information of the target object. The resource distribution platform splits the resource application information and the resource transfer information to obtain multiple object information of the target object, and the multiple object information constitutes the object information set of the target object.
[0133] 304. The resource distribution platform performs cyclic matching on the multiple object information and the multiple business rules in the business rule set to obtain the at least one target business rule, where the target business rule is a business rule that successfully matches the resource application information.
[0134] The transaction rules include conditions and actions. Matching of resource application information in the transaction rule set means that the resource application information matches the conditions of multiple transaction rules in the transaction rule set. Successful matching means that the resource application information meets the conditions of the transaction rules.
[0135] In a possible implementation, for any object information among the plurality of object information, the resource issuance platform performs a matching function on the object information and the plurality of business rules to obtain a matching result between the object information and each business rule. The resource issuance platform determines the business rule that is successfully matched as the target business rule.
[0136] The matching function is used to match object information and transaction rules. For any object information among the multiple object information, the matching function is used to match the object information with the multiple transaction rules.
[0137] For example, for any object information in the plurality of object information, the resource issuance platform divides the plurality of business rules into a plurality of business rule groups based on the conditions in each business rule, and the business rules in a business rule group have at least one common condition. The resource issuance platform performs a matching function on the object information and each business rule group to obtain a matching result between the object information and the business rules in each business rule. The resource issuance platform determines the business rule that is successfully matched as the target business rule according to the matching result.
[0138] For example, for any object information among the multiple object information, the resource issuance platform clusters the transaction rules with at least one same condition among the multiple transaction rules to obtain multiple transaction rule groups. The resource issuance platform performs a matching function on the object information and the conditions corresponding to each transaction rule group to determine whether the object information meets the conditions. The resource issuance platform determines the transaction rules whose conditions match the object information among the multiple transaction rule groups as target transaction rules.
[0139] The transaction rule is in the form of a combination of conditions and actions. For example, a transaction rule is that if condition A is met, then the object is determined to be an object of the target type / then it is determined that resources can be issued to the object.
[0140] Another implementation of the above step 304 is described below.
[0141] In a possible implementation, for any object information among the multiple object information, the resource issuance platform determines multiple candidate transaction rules from the multiple transaction rules based on the object information, and the candidate transaction rules are transaction rules associated with the object information. The resource issuance platform performs a matching function on the object information and the multiple candidate transaction rules to obtain a matching result between the object information and each candidate transaction rule. The resource issuance platform determines the candidate transaction rule that is successfully matched as indicated by the matching result as the target transaction rule.
[0142] In this implementation, for any object information among the multiple object information, multiple candidate transaction rules are screened out from the multiple transaction rules based on the object information. A matching function is performed on the object information and the multiple candidate transaction rules, thereby reducing the number of transaction rules that need to be matched and improving the efficiency of determining the target transaction rule.
[0143] For example, for any object information among the multiple object information, the resource issuance platform performs feature extraction on the object information to obtain the object information feature of the object information. The resource issuance platform performs feature extraction on the conditions of the multiple transaction rules to obtain the conditional features of the conditions of each transaction rule. Based on the object information feature of the object information and the conditional features of the conditions of each transaction rule, the resource issuance platform determines multiple candidate transaction rules from the multiple transaction rules, where the candidate transaction rules are transaction rules whose similarity between the corresponding conditional features and the object information features is greater than or equal to a similarity threshold. The resource issuance platform executes a matching function on the object information and each candidate transaction rule to obtain a matching result between the object information and each candidate transaction rule. The resource issuance platform determines the candidate transaction rule whose matching result indicates a successful match as the target transaction rule.
[0144] It should be noted that, in addition to the above implementations, the Rete algorithm or other matching algorithms can also be used to perform cyclic matching, thereby increasing the processing speed. In addition, the processing speed can also be accelerated by asynchronous processing or multi-threaded processing.
[0145] 305. The resource distribution platform executes the rule action of the at least one target transaction rule through the target rule engine to obtain a rule execution result.
[0146] Among them, the target rule engine is the rule engine corresponding to the resource issuance transaction, and the target rule engine can parse and execute transaction rules. In the embodiments of this specification, the execution of the rule action obtains the action execution result, and the rule execution result is obtained after the rule actions of at least one target transaction rule are executed. In some embodiments, the target rule engine is driven by a scripting language that is easy to hot update (such as Drools, Groovy, etc.), so that the rules are independent of the system code and easy to understand and maintain. In addition, the target rule engine supports dynamic loading and unloading of transaction rules, so that changes to transaction rules can take effect immediately.
[0147] In a possible implementation, the resource distribution platform executes the rule action of the at least one target transaction rule through the target rule engine to obtain an action execution result. Based on the action execution result, the resource distribution platform adds object information or triggers a new transaction rule match. If there is no unmatched object information or a predetermined condition is met, the resource distribution platform outputs the last obtained action execution result as the rule execution result.
[0148] Among them, the action execution result includes generating new object information, selecting the next round of transaction rules and outputting results. In the case where the action execution result is generating new object information, the newly generated object information will be added later, and the object information will execute the process of matching with the transaction rules in the above step 304. In the case where the action execution result is selecting the next round of transaction rules, the rule action of the next target transaction rule will continue to be executed. In the case where the action execution result is an output result, the output result indicated by the action execution result will be recorded, and the output result may be used as the final output result. The predetermined condition is set by the technician according to the actual situation, such as setting it to a number of matches greater than or equal to a number threshold, etc., and the embodiments of this specification do not limit this.
[0149] The above steps 304 and 305 are described below in conjunction with functions.
[0150] The resource distribution platform selects an object information from multiple object information F through the target rule engine. The object information is also called fact f. For each transaction rule r in multiple transaction rules R, the resource distribution platform executes the matching function Match(f, r) on the fact f and the transaction rule r. If the condition of the fact f and the transaction rule r matches successfully, the rule action of the transaction rule r is executed, and the multiple object information F is updated or other rule actions are executed according to the action execution result. The above steps are repeated until no new facts are generated or the predetermined stop condition is reached. The above description can be represented by the following function (1).
[0151]
[0152] Among them, r i is rule i, Ci is r i The condition, A i For r i The rule action is , and F is the object information.
[0153] 306. The resource issuance platform generates a resource issuance result corresponding to the resource issuance request based on the rule execution result.
[0154] Among them, the resource issuance results include refusal to issue resources, agreement to issue resources, and pending. Pending means that a definite review result cannot be given and further review is required through other channels.
[0155] In a possible implementation, when the rule execution result indicates that the resource issuance is rejected, the resource issuance platform generates the resource issuance result based on the first prompt information, and the first prompt information is used to prompt that the resource issuance request is rejected.
[0156] In a possible implementation, when the rule execution result indicates that the resource issuance is approved, the resource issuance platform generates the resource issuance result based on the second prompt information, where the second prompt information is used to prompt that the resource issuance request is approved, and the second prompt information carries the resource issuance amount.
[0157] In a possible implementation, when the rule execution result indicates that it is pending, the resource issuance platform sends the resource application information to the audit terminal, so that the audit terminal returns the request audit result based on the resource application information. The resource issuance platform generates the resource issuance result based on the request audit result returned by the audit terminal.
[0158] Among them, the audit terminal is the terminal used by the auditor. When the resource issuance platform cannot determine whether to issue resources to the target object, the relevant information will be handed over to the audit terminal, and the auditor will determine whether to issue resources to the target object. The security of resource issuance is relatively high. The request audit results include approved and unapproved. If the audit result is approved, the resource issuance result indicates that the resource issuance request is approved; if the audit result is unapproved, the resource issuance result indicates that the resource issuance request is rejected.
[0159] In order to more clearly explain the technical solution provided by the embodiments of this specification, Figure 4 For an explanation of the above steps 301-305, see Figure 4 , obtain the resource issuance request submitted by the target object, and obtain the resource application information from the resource issuance request. Verify the resource application information, and if the verification fails, feedback the error information. If the verification succeeds, initialize the target rule engine. The rule management platform obtains multiple transaction rules. Generate an object information set based on the resource application information. The deductive reasoning module matches the object information set of the target object with multiple transaction rules to obtain the target transaction rule. The target rule engine executes the rule action corresponding to the target transaction rule to obtain the rule execution result. If the rule execution result indicates that the resource is refused to be issued, the result of refusing to issue the resource is output. If the rule execution result indicates that the resource is agreed to be issued, the result of agreeing to issue the resource is output. If the rule execution result indicates that it is pending, it is transferred to manual review, and the final result is output according to the manual review result.
[0160] 306. The resource distribution platform feeds back the resource distribution result to the target object.
[0161] In a possible implementation, the resource distribution platform sends the resource distribution result to the target user terminal.
[0162] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of this specification, and will not be described in detail here.
[0163] Through the technical solution provided in the embodiment of this specification, in response to the resource issuance request of the target object, the transaction rule set corresponding to the target object is obtained, and the resource issuance request carries the resource application information of the target object. The resource application information is used to match in the transaction rule set to obtain at least one target transaction rule. Through the target rule engine, the rule action of the at least one target transaction rule is executed to obtain the rule execution result. Based on the rule execution result, the resource issuance result is generated, and the resource application information is intelligently reviewed, and the generation efficiency of the resource issuance result is improved, thereby optimizing the user experience.
[0164] Figure 5 This is a schematic diagram of a device structure for generating resource distribution results provided in an embodiment of this specification, see Figure 5 , the device comprises:
[0165] The acquisition module 501 is used to acquire the transaction rule set corresponding to the target object in response to the resource issuance request of the target object, and the resource issuance request carries the resource application information of the target object.
[0166] The matching module 502 is used to match the resource application information in the transaction rule set to obtain at least one target transaction rule, where the target transaction rule is a transaction rule that successfully matches the resource application information.
[0167] The execution module 503 is used to execute the rule action of the at least one target transaction rule through the target rule engine to obtain a rule execution result.
[0168] The generating module 504 is used to generate a resource provisioning result corresponding to the resource provisioning request based on the rule execution result.
[0169] In a possible implementation, the acquisition module 501 is used to respond to the resource issuance request of the target object and determine the resource issuance transaction corresponding to the resource issuance request. The transaction rule set of the resource issuance transaction is obtained from the transaction rule library, and the transaction rule library updates the stored transaction rules in a hot update manner. Alternatively, in response to the resource issuance request of the target object, the object type of the target object is determined based on the resource application information. The transaction rule set corresponding to the object type is obtained from the transaction rule library.
[0170] In a possible implementation, the device further includes:
[0171] A rule adjustment module is used to respond to a transaction rule addition instruction, obtain a first target rule text from the transaction rule addition instruction. Compile the first target rule text to obtain a first target transaction rule. Store the first target transaction rule in the transaction rule library. In response to a transaction rule deletion instruction, determine the second target transaction rule indicated by the transaction rule deletion instruction in the transaction rule library. Delete the second target transaction rule. In response to a transaction rule modification instruction, determine the third target transaction rule indicated by the transaction rule modification instruction in the transaction rule library and obtain the second target rule text from the transaction rule modification instruction. Compile the second target rule text to obtain a fourth target transaction rule. Use the fourth target transaction rule to replace the third target transaction rule.
[0172] In a possible implementation, the acquisition module 501 is used to verify the resource application information in response to the resource issuance request of the target object, and obtain the verification result of the resource application information, wherein the verification includes integrity verification, legality verification and consistency verification. If the verification result indicates that the verification is passed, the transaction rule set corresponding to the target object is obtained.
[0173] In a possible implementation, the matching module 502 is used to generate an object information set of the target object based on the resource application information, the object information set including multiple object information, and perform cyclic matching on the multiple object information and multiple business rules in the business rule set to obtain the at least one target business rule.
[0174] In a possible implementation, the matching module 502 is used to perform a matching function on any object information among the multiple object information and the multiple transaction rules to obtain a matching result between the object information and each of the transaction rules. The transaction rule indicated by the matching result as a successful match is determined as the target transaction rule. Alternatively, for any object information among the multiple object information, based on the object information, multiple candidate transaction rules are determined from the multiple transaction rules, and the candidate transaction rules are transaction rules associated with the object information. A matching function is performed on the object information and the multiple candidate transaction rules to obtain a matching result between the object information and each of the candidate transaction rules. The candidate transaction rule indicated by the matching result as a successful match is determined as the target transaction rule.
[0175] In a possible implementation, the matching module 502 is used to divide the multiple business rules into multiple business rule groups based on the conditions in each of the business rules, and the business rules in a business rule group have at least one common condition. A matching function is performed on the object information and each of the business rule groups to obtain a matching result between the object information and each of the business rules.
[0176] In a possible implementation, the execution module 503 is used to execute the rule action of the at least one target transaction rule through the target rule engine to obtain an action execution result. Based on the action execution result, new object information is added or a new transaction rule match is triggered. If there is no unmatched object information or a predetermined condition is met, the last obtained action execution result is output as the rule execution result.
[0177] In a possible implementation, the generation module 504 is used to generate the resource issuance result based on the first prompt information when the rule execution result indicates that the resource issuance is rejected, and the first prompt information is used to prompt that the resource issuance request is rejected. When the rule execution result indicates that the resource issuance is approved, the resource issuance result is generated based on the second prompt information, and the second prompt information is used to prompt that the resource issuance request is approved, and the second prompt information carries the resource issuance amount. When the rule execution result indicates that it is pending, the resource application information is sent to the audit terminal, so that the audit terminal returns the request audit result based on the resource application information. The resource issuance result is generated based on the request audit result returned by the audit terminal.
[0178] It should be noted that: the resource distribution result generation device provided in the above embodiment only uses the division of the above functional modules as an example when generating the resource distribution result. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the resource distribution result generation device provided in the above embodiment and the resource distribution result generation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0179] Through the technical solution provided in the embodiment of this specification, in response to the resource issuance request of the target object, the transaction rule set corresponding to the target object is obtained, and the resource issuance request carries the resource application information of the target object. The resource application information is used to match in the transaction rule set to obtain at least one target transaction rule. Through the target rule engine, the rule action of the at least one target transaction rule is executed to obtain the rule execution result. Based on the rule execution result, the resource issuance result is generated, and the resource application information is intelligently reviewed, and the generation efficiency of the resource issuance result is improved, thereby optimizing the user experience.
[0180] The embodiments of this specification provide a computer device for executing the above method. The computer device can be implemented as a terminal or a server. The structure of the terminal is first introduced below:
[0181] Figure 6600 is a schematic diagram of a terminal structure provided in an embodiment of the present specification. The terminal 600 may be a smart phone, a tablet computer, a laptop computer or a desktop computer. The terminal 600 may also be called a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0182] Typically, the terminal 600 includes: one or more processors 601 and one or more memories 602 .
[0183] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0184] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one computer program, which is used to be executed by the processor 601 to implement the method for generating resource distribution results provided in the method embodiment of this specification.
[0185] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera assembly 606, an audio circuit 607 and a power supply 608.
[0186] The peripheral device interface 603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0187] The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
[0188] The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to collect touch signals on the surface or above the surface of the display screen 605. The touch signal may be input as a control signal to the processor 601 for processing. At this time, the display screen 605 may also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0189] The camera assembly 606 is used to collect images or videos. Optionally, the camera assembly 606 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
[0190] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them to the processor 601 for processing, or input them to the radio frequency circuit 604 to achieve voice communication.
[0191] The power supply 608 is used to supply power to various components in the terminal 600. The power supply 608 may be alternating current, direct current, a disposable battery, or a rechargeable battery.
[0192] In some embodiments, the terminal 600 further includes one or more sensors 609 , including but not limited to: an acceleration sensor 610 , a gyroscope sensor 611 , a pressure sensor 612 , an optical sensor 613 , and a proximity sensor 614 .
[0193] The acceleration sensor 610 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established by the terminal 600 .
[0194] The gyro sensor 611 can detect the body direction and rotation angle of the terminal 600 . The gyro sensor 611 can cooperate with the acceleration sensor 610 to collect the user's 3D actions on the terminal 600 .
[0195] The pressure sensor 612 can be set on the side frame of the terminal 600 and / or the lower layer of the display screen 605. When the pressure sensor 612 is set on the side frame of the terminal 600, it can detect the user's holding signal of the terminal 600, and the processor 601 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 612. When the pressure sensor 612 is set on the lower layer of the display screen 605, the processor 601 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 605.
[0196] The optical sensor 613 is used to collect the ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 according to the ambient light intensity collected by the optical sensor 613.
[0197] The proximity sensor 614 is used to collect the distance between the user and the front of the terminal 600 .
[0198] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the terminal 600, and the terminal 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0199] The above-mentioned computer device can also be implemented as a server. The structure of the server is introduced below:
[0200] Figure 7This is a schematic diagram of the structure of a server provided in an embodiment of this specification. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein at least one computer program is stored in the one or more memories 702, and the at least one computer program is loaded and executed by the one or more processors 701 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server 700 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 700 may also include other components for implementing device functions, which will not be described in detail here.
[0201] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the method for generating resource distribution results in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0202] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned method for generating resource issuance results.
[0203] In some embodiments, the computer program involved in the embodiments of this specification may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0204] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0205] The above are only optional embodiments of this specification and are not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the protection scope of this specification.
Claims
1. A method for generating a resource distribution result, the method comprising: In response to a resource issuance request of a target object, obtaining a transaction rule set corresponding to the target object, wherein the resource issuance request carries resource application information of the target object; The resource application information is used to match the transaction rule set to obtain at least one target transaction rule, where the target transaction rule is a transaction rule that successfully matches the resource application information; Executing the rule action of the at least one target transaction rule through the target rule engine to obtain a rule execution result; Based on the rule execution result, a resource provisioning result corresponding to the resource provisioning request is generated.
2. The method according to claim 1, wherein in response to the resource release request of the target object, obtaining the transaction rule set corresponding to the target object comprises: In response to a resource issuance request of the target object, determining a resource issuance transaction corresponding to the resource issuance request; Acquire the transaction rule set of the resource issuance transaction from a transaction rule library, and the transaction rule library updates the stored transaction rules in a hot update manner; Alternatively, in response to a resource issuance request of the target object, the object type of the target object is determined based on the resource application information; and the transaction rule set corresponding to the object type is acquired from the transaction rule library.
3. The method according to claim 1, further comprising: In response to a transaction rule adding instruction, obtaining a first target rule text from the transaction rule adding instruction; Compiling the first target rule text to obtain a first target transaction rule; storing the first target transaction rule in the transaction rule library; In response to a business rule deletion instruction, determining a second target business rule indicated by the business rule deletion instruction in the business rule library; Deleting the second target transaction rule; In response to a business rule modification instruction, determining a third target business rule indicated by the business rule modification instruction in the business rule library and acquiring a second target rule text from the business rule modification instruction; The second target rule text is compiled to obtain a fourth target transaction rule; and the third target transaction rule is replaced by the fourth target transaction rule.
4. The method according to claim 1, wherein in response to a resource release request of a target object, obtaining a transaction rule set corresponding to the target object comprises: In response to the resource issuance request of the target object, verify the resource application information to obtain the verification result of the resource application information, the verification including integrity verification, legality verification and consistency verification; When the verification result indicates that the verification is passed, a transaction rule set corresponding to the target object is obtained.
5. The method according to claim 1, wherein the step of matching the resource application information in the transaction rule set to obtain at least one target transaction rule comprises: Based on the resource application information, generate an object information set of the target object, the object information set including a plurality of object information; The plurality of object information and the plurality of business rules in the business rule set are matched cyclically to obtain the at least one target business rule.
6. The method according to claim 5, wherein the step of performing cyclic matching on the plurality of object information and the plurality of business rules in the business rule set to obtain the at least one target business rule comprises: For any object information among the plurality of object information, a matching function is executed on the object information and the plurality of business rules to obtain a matching result between the object information and each of the business rules; Determine the transaction rule where the matching result indicates successful matching as the target transaction rule; Alternatively, for any object information among the plurality of object information, based on the object information, a plurality of candidate transaction rules are determined from the plurality of transaction rules, the candidate transaction rules being transaction rules associated with the object information; Executing a matching function on the object information and the plurality of candidate transaction rules to obtain a matching result between the object information and each of the candidate transaction rules; The candidate transaction rule whose matching result indicates successful matching is determined as the target transaction rule.
7. The method according to claim 6, wherein the performing a matching function on the object information and the plurality of business rules to obtain a matching result between the object information and each of the business rules comprises: Based on the conditions in each of the business rules, the multiple business rules are divided into multiple business rule groups, and the business rules in a business rule group have at least one same condition; A matching function is executed on the object information and each of the transaction rule groups to obtain a matching result between the object information and each of the transaction rules.
8. The method according to claim 1, wherein executing the rule action of the at least one target transaction rule through the target rule engine to obtain the rule execution result comprises: Executing the rule action of the at least one target transaction rule through the target rule engine to obtain an action execution result; Based on the execution result of the action, new object information is added or new transaction rule matching is triggered; When there is no unmatched object information or a predetermined condition is met, the last obtained action execution result is output as the rule execution result.
9. The method according to claim 1, wherein generating a resource provisioning result corresponding to the resource provisioning request based on the rule execution result comprises: In the case where the rule execution result indicates that the resource issuance is rejected, generating the resource issuance result based on first prompt information, wherein the first prompt information is used to prompt that the resource issuance request is rejected; If the rule execution result indicates that the resource is approved, generating the resource issuance result based on the second prompt information, the second prompt information is used to prompt that the resource issuance request is approved, and the second prompt information carries the resource issuance amount; When the rule execution result indicates that it is pending, the resource application information is sent to the audit terminal so that the audit terminal returns a request audit result based on the resource application information; and the resource issuance result is generated based on the request audit result returned by the audit terminal.
10. A device for generating resource distribution results, the device comprising: An acquisition module, configured to acquire a transaction rule set corresponding to a target object in response to a resource issuance request of the target object, wherein the resource issuance request carries resource application information of the target object; A matching module, configured to match the resource application information in the transaction rule set to obtain at least one target transaction rule, wherein the target transaction rule is a transaction rule that successfully matches the resource application information; An execution module, used to execute the rule action of the at least one target transaction rule through a target rule engine to obtain a rule execution result; A generation module is used to generate a resource issuance result corresponding to the resource issuance request based on the rule execution result.
11. A computer device, comprising one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the method for generating resource issuance results as described in any one of claims 1 to 9.
12. A computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for generating a resource issuance result according to any one of claims 1 to 9.
Citation Information
Cited By
Resource provisioning result generation
WO2026098215A1