CN115481831A - Virtual resource allocation method, device, equipment and computer readable storage medium - Google Patents

Virtual resource allocation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115481831A
CN115481831A CN202110598642.6A CN202110598642A CN115481831A CN 115481831 A CN115481831 A CN 115481831A CN 202110598642 A CN202110598642 A CN 202110598642A CN 115481831 A CN115481831 A CN 115481831A
Authority
CN
China
Prior art keywords
allocation
preset
resource
distribution
receiving object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110598642.6A
Other languages
Chinese (zh)
Inventor
罗明强
陈锋
李立波
池永川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110598642.6A priority Critical patent/CN115481831A/en
Publication of CN115481831A publication Critical patent/CN115481831A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The embodiment of the application discloses a virtual resource allocation method, a device, equipment and a computer readable storage medium; the embodiment of the application can acquire the service type information of the resource allocation object and the identification of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object. Therefore, the virtual resource allocation efficiency is improved.

Description

Virtual resource allocation method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a virtual resource allocation method, apparatus, device, and computer readable storage medium.
Background
With the development of online payment technology, the services of the network shopping mall are developed more and more. However, after each transaction order is fulfilled, the store merchants of the network mall need to be billed to the relevant parties, which are the billing recipients, such as agents, distribution, logistics, individual users, and the like. In the related art, the fund is transferred to the branch account receiver through the distribution relation or the branch account relation between the bound shop merchant and the branch account receiver.
In the research and practice process of the prior art, the inventor of the application finds that in the prior art, when the account-dividing relationship between each store merchant and the account-dividing receivers is bound, a one-to-many mode is adopted for binding, namely, the account-dividing relationship between each store merchant and all the account-dividing receivers is established, and a large amount of account-dividing relationship information can be generated in the mode, so that the management difficulty of distributing relationship information or account-dividing relationship information is increased, the management efficiency is reduced, and the merchant experience is influenced.
Disclosure of Invention
The embodiment of the application provides a virtual resource allocation method, a virtual resource allocation device, virtual resource allocation equipment and a computer readable storage medium. The method can effectively reduce the distribution relation required to be established, improve the management efficiency of the distribution relation information and improve the efficiency of virtual resource distribution.
The embodiment of the application provides a virtual resource allocation method, which comprises the following steps:
acquiring service type information of a resource allocation object and an identifier of a resource receiving object;
classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels;
according to the identification of the resource receiving object, establishing the distribution relation between the preset distribution object set and the resource receiving object;
receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object;
and matching a corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
Correspondingly, an embodiment of the present application provides a virtual resource allocation apparatus, including:
the acquisition unit is used for acquiring the service type information of the resource allocation object and the identifier of the resource receiving object;
the classification unit is used for classifying the resource allocation objects into corresponding preset allocation object sets according to the service type information, and the preset allocation object sets carry service type information labels;
the establishing unit is used for establishing the distribution relation between the preset distribution object set and the resource receiving object according to the identifier of the resource receiving object;
a receiving unit, configured to receive a resource allocation request of a target resource allocation object, where the resource allocation request carries target service type information and an identifier of a target resource receiving object;
and the allocation unit is used for matching the corresponding target preset allocation object set according to the target service type information and allocating the virtual resources to the target resource receiving object based on the allocation relation between the target preset allocation object set and the target resource receiving object.
In some embodiments, the establishing unit is further configured to:
searching an allocation relation list according to the identifier of the resource receiving object, wherein the allocation relation list comprises the allocation relation between a preset allocation object set and the resource receiving object;
when the allocation relation between a preset allocation object set and a resource receiving object is found, determining the established allocation relation as the allocation relation between the preset allocation object set and the resource receiving object;
when the allocation relation between the preset allocation object set and the resource receiving object cannot be found, establishing the allocation relation between the preset allocation object set and the resource receiving object, and updating the resource receiving object with the established allocation relation to the allocation relation list.
In some embodiments, the establishing unit is further configured to:
acquiring an identifier of the preset distribution object set;
binding the identifier of the preset allocation object set with the identifier of the resource receiving object to obtain a target identifier pair with an allocation relation;
and determining the distribution relation between the preset distribution object set and the resource receiving object according to the target identification pair.
In some embodiments, the establishing unit is further configured to:
matching object identifications in a preset receiving object set according to the identification of the resource receiving object to obtain a matching result, wherein the preset receiving object set and the distribution object set have a distribution relation;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
In some embodiments, the establishing unit is further configured to:
when the matching result contains an object identifier corresponding to the identifier of the resource receiving object, acquiring the distribution relation between the preset receiving object set and the preset distribution object set;
when the matching result does not contain the object identifier corresponding to the identifier of the resource receiving object, adding the identifier of the resource receiving object to the preset receiving object set to obtain an updated preset receiving object set;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object based on the updated distribution relation between the preset receiving object set and the preset distribution object set.
In some embodiments, the classification unit is further configured to:
searching a service type information label list based on the service type information to obtain a preset distribution object set corresponding to the service type information label;
and classifying the resource allocation objects into a preset allocation object set.
In some embodiments, the virtual resource allocation apparatus further comprises:
the receiving object checking unit is used for acquiring attribute information corresponding to the identifier of the resource receiving object; verifying the attribute information of the resource receiving object according to a preset receiving object verification rule to obtain a verification result;
the establishing unit is further configured to establish an allocation relationship between the preset allocation object set and the resource receiving object according to the identifier of the resource receiving object if the verification result indicates that the attribute information matches a preset receiving object verification rule.
In some embodiments, the virtual resource allocation apparatus further comprises:
the distribution object checking unit is used for matching the target object identification in the preset distribution object set corresponding to each service information type according to the identification of the resource distribution object;
the classifying unit is further configured to classify the resource allocation object into a corresponding preset allocation object set according to the service type information when the target object identifier corresponding to the identifier of the resource allocation object is not matched.
In some embodiments, the virtual resource allocation apparatus further comprises: a set-up unit for:
receiving a set establishment request sent by a target object, wherein the set establishment request carries service type information and registration information of a distribution object set to be established;
verifying the registration information;
and when the registration information accords with a preset registration information rule, establishing a corresponding preset distribution object set according to the service type information of the distribution object set to be established.
In addition, the embodiment of the present application further provides a computer device, which includes a processor and a memory, where the memory stores an application program, and the processor is configured to run the application program in the memory to implement the steps in the virtual resource allocation method provided in the embodiment of the present application.
In addition, a computer-readable storage medium is provided, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the virtual resource allocation methods provided in the embodiments of the present application.
In addition, the embodiment of the present application also provides a computer program, which includes computer instructions, and the computer instructions are stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the virtual resource allocation methods provided by the embodiments of the present application.
The embodiment of the application can acquire the service type information of the resource allocation object and the identification of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object. Therefore, the resource allocation objects are allocated to the preset set, and the allocation relation between the resource allocation objects and the resource receiving objects is determined according to the allocation relation between the preset allocation object set and the resource receiving objects, so that the phenomenon that the allocation relation between each resource allocation object and each resource receiving object needs to be established can be avoided, the allocation relation needing to be maintained is effectively reduced, the management difficulty of relation information is reduced, the management efficiency of the allocation relation information is improved, and the virtual resource allocation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a virtual resource allocation method provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating steps of a virtual resource allocation method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another step of a virtual resource allocation method according to an embodiment of the present application;
fig. 4 is an application scenario diagram of a split-account relationship between a preset allocation object set and a resource receiving object according to an embodiment of the present application;
fig. 5 is an application scenario diagram of a split-account relationship between a preset allocation object set and a preset reception object set according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a virtual resource allocation apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a virtual resource allocation method, a virtual resource allocation device, virtual resource allocation equipment and a computer readable storage medium. The embodiments of the present application will be described from the perspective of a virtual resource allocation apparatus, where the virtual resource allocation apparatus may be specifically integrated in a computer device, and the computer device may be a server or a terminal. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and an artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
For example, refer to fig. 1, which is a schematic view of a scenario of a virtual resource allocation method provided in an embodiment of the present application. The scene comprises a server 10, a first terminal 20 and a second terminal 30, and the server 10 is connected with the first terminal 20 and the second terminal 30 through wireless communication to realize data interaction.
The client on the first terminal 20 sends a resource allocation relationship establishment request to the server 10, where the resource allocation relationship establishment request carries the service type information of the resource allocation object and the identifier of the resource receiving object, so that the server 10 establishes an allocation relationship between the resource allocation object and the resource receiving object. Furthermore, the first terminal 20 may also transmit a resource allocation request through the client, so that the server 10 allocates the virtual resource to the second terminal 30 based on the resource allocation request transmitted by the first terminal 20.
The server 10 may collect service type information of the resource allocation object and an identifier of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of the target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
The virtual resource allocation may include establishing an allocation relationship, and performing virtual resource allocation based on the allocation relationship.
The following are detailed descriptions. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In the embodiments of the present application, a description will be made from the perspective of a virtual resource allocation apparatus, which may be specifically integrated in a computer device such as a server. Referring to fig. 2, fig. 2 is a schematic flowchart of a step flow of a virtual resource allocation method provided in an embodiment of the present application, where when a processor on a terminal or a server executes a program corresponding to the virtual resource allocation method, a specific flow of the virtual resource allocation method is as follows:
101. and collecting the service type information of the resource allocation object and the identification of the resource receiving object.
The resource allocation object may be a provider, an issuer, or the like of a virtual resource, and the resource allocation object may be an individual, a private individual, an enterprise, a platform, or the like. The resource receiving object is a receiver of the virtual resource, wherein the resource receiving object can be an individual, a private individual household, an enterprise, a platform and the like. In the embodiment of the application, the virtual resource is allocated to the resource receiver by the resource allocation object.
The service type information may be information such as service attribute and service category, and is used to reflect the service type engaged in by the resource allocation object. For example, taking brand a service as the service type information, the service operated and held by the resource allocation object is brand a related service, such as goods and services.
The identifier of the resource receiving object may be identity information, tag information, coding information, financial account information, or resource storage address information, and the like, and is used for distinguishing the current resource receiving object from other resource receiving objects.
In order to implement resource allocation between the resource allocation object and the resource receiving object, a resource allocation relationship or a resource allocation channel between the resource allocation object and the resource receiving object needs to be established, so that the resource allocation object and the resource receiving object have an association. Further, in order to establish an allocation relationship subsequently, the implementation needs to collect the service type information of the resource allocation object and the identifier of the resource receiving object in advance, so as to establish the allocation relationship between the service type information of the resource allocation object and the identifier of the resource receiving object according to the service type information of the resource allocation object and the identifier of the resource receiving object.
In this embodiment, the service type information of the resource allocation object and the identifier of the resource receiving object may be stored in a database of the server. For example, the database of the server stores in advance the relevant information of the resource allocation object and the resource receiving object for which the allocation relationship has been established, such as the service type information of the resource allocation object, the identifier of the resource receiving object, and the like. In order to reduce the maintenance difficulty and the management difficulty of the subsequent distribution relation data, the relation information of the resource distribution object and the resource receiving object which have established the one-to-one distribution relation can be rearranged. In some embodiments, the service type information of the resource allocation object and the identification of the resource receiving object having the allocation relationship may be collected from the database for subsequent information rearrangement.
In some embodiments, the service type information of the resource allocation object and the identifier of the resource receiving object may also be information received by the server for establishing an allocation relationship. For example, a relationship establishment request of the resource allocation object is received, where the relationship establishment request carries service type information of the resource allocation object and an identifier of the resource receiving object.
102. And classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information.
The preset allocation object set may be an information set corresponding to specific service type information, and may add identification information, identity information, financial account information, resource address information, or the like of the resource allocation object. For example, taking a business platform as an example, the resource allocation object may be each merchant in the business platform, generate a platform information set corresponding to the business platform, take the platform information set as a preset allocation object set, and add identification information, identity information, or financial account information of each merchant into the platform information set. On the other hand, when the platform information set includes a plurality of preset allocation object sets corresponding to different service type information tags, the identification information, the identity information or the financial account information of each merchant may be added to the corresponding preset allocation object set in the platform information set.
The preset allocation object set carries a service type information tag, and the service type information tag may be a service type, a service range, and the like of the preset allocation object set. For example, the preset distribution object set is a business platform of brand a goods, and the corresponding service type information tag may be a brand a tag or a brand a goods identifier.
In order to implement resource allocation between the resource allocation object and the resource receiving object, a resource allocation relationship or a resource allocation channel between the resource allocation object and the resource receiving object needs to be established, so that the resource allocation object and the resource receiving object have an association. Further, in order to reduce the maintenance difficulty of the allocation relationship, in the embodiment of the present application, a preset allocation object set is created in advance, a resource allocation object is added to the preset allocation object set, and an allocation relationship between the preset allocation object set and a resource receiving object is established, so that the allocation relationship required to be established between each resource allocation object and different resource receiving objects is reduced, and the maintenance difficulty is reduced.
In some embodiments, a preset allocation object set may be created in advance, and before the step "classifying the resource allocation objects into the corresponding preset allocation object set according to the service type information", the step may include:
(1) Receiving a set establishment request sent by a target object, wherein the set establishment request carries service type information and registration information of a distribution object set to be established;
(2) Verifying the registration information;
(3) And when the registration information accords with a preset registration information rule, establishing a corresponding preset distribution object set according to the service type information of the distribution object set to be established.
Wherein the target object request is an object that creates a collection. The service type information may be information such as service attribute and service category, and is used to reflect the service type corresponding to the allocation object set. The registration information may be authentication information, credentials, etc. needed to create the set of assignment objects.
In order to ensure that the established preset allocation object set has validity, in this embodiment, after receiving a set establishment request sent by the target object, the service type information and the registration information carried in the set establishment request are acquired, the registration information submitted by the target object is verified, and only when the registration information conforms to a preset registration information rule, the corresponding preset allocation object set is established according to the service type information of the allocation object to be established.
For example, taking a business platform as a platform information set as an example, the target object may be an originator, a merchant, a manager, and the like, and if the target object wants to create a set of brand a commodities in the platform information set, the target object is a set owner, the service type information may be set as brand a commodity information, a brand label, and the like, and register information such as a license of the target object when operating the brand a commodities, credit rating information of a financial account, and the like is submitted; when a set establishment request sent by a target object is received, checking the registration information of the target object, wherein the preset registration information rule involved in the checking comprises whether a license (such as an ICP license or an EDI license) exists, whether the license exists in the validity period of the license, whether the financial credit rating of a financial account is good and the like, and when the checking result is that the preset registration information rule is met, successfully establishing a preset distribution object set corresponding to the brand A and sending feedback information of 'successful establishment'; and when the verification result is that the preset registration information rule is not met, refusing to create a preset distribution object set corresponding to the brand A, and sending feedback information of 'establishment failure', wherein the specific table is as follows:
Figure BDA0003092129160000091
in some embodiments, the step of "classifying resource allocation objects into corresponding preset allocation object sets according to service type information" includes the following steps:
(3) Searching a service type information label list based on the service type information to obtain a preset distribution object set corresponding to the service type information label;
(4) And classifying the resource allocation objects into a preset allocation object set.
It should be noted that the server database may include a plurality of preset allocation object sets, each preset allocation object set has a corresponding service type information tag, and the service type information tag may be a service type, a service range, or the like of the preset allocation object set; however, in order to facilitate information management of the preset allocation object sets, in this embodiment, the service type information tag corresponding to each preset allocation object set is generated into an information list, that is, the service type information tag list, so as to facilitate subsequent searching of the corresponding preset allocation object set.
Further, in order to reduce the maintenance difficulty of the allocation relationship, in the embodiment of the present application, after the preset allocation object set and the service type information tag list are created, the service type information tag list may be searched according to the service type information carried in the relationship establishment request, so as to determine the corresponding preset allocation object set; and acquiring the identifier of the resource allocation object sending the relationship establishment request, and adding the identifier of the resource allocation object into the preset allocation object set so as to realize the classification of the resource allocation object to the corresponding preset allocation object set. Through the above manner, after the allocation relationship between the preset allocation object set and the resource receiving object is established, the allocation relationship between the preset allocation object set and the resource receiving object is determined as the allocation relationship between the resource allocation object and the resource receiving object, so that the allocation relationship required to be established between each resource allocation object and different resource receiving objects is reduced, and the maintenance difficulty is reduced.
In addition, before the step of "classifying the resource allocation objects into the corresponding preset allocation object sets according to the service type information", the method may include:
A. matching target object identifications in a preset distribution object set corresponding to each service information type according to the identification of the resource distribution object;
the step of classifying the resource allocation objects into the corresponding preset allocation object sets according to the service type information includes:
B. when the target object identification corresponding to the identification of the resource allocation object is not matched, classifying the resource allocation object to a corresponding preset allocation object set according to the service type information;
in order to ensure the security in the resource allocation process, each resource allocation object added into the preset allocation object set meets the set standard. For example, taking the database of the B-e-commerce platform as an example, the database of the B-e-commerce platform includes preset allocation object sets corresponding to a plurality of service type information tags under the platform, such as preset allocation object sets corresponding to service type information tags including B1 brand, B2 brand, B3 brand, and the like, and each resource receiving object can only add one of the preset allocation object sets including B1 brand, B2 brand, B3 brand, and the like. Therefore, the target object identifier in the preset allocation object set corresponding to each service information type tag needs to be matched according to the identifier of the resource allocation object to determine that the identifier of the resource allocation object has been added to the preset allocation object set in the database, and when the target object identifier corresponding to the identifier of the resource allocation object is not matched, the step of "classifying the resource allocation object to the corresponding preset allocation object set according to the service type information" is executed.
It should be noted that, when the identifier of the resource allocation object can be matched with the target object identifier included in the preset allocation object set corresponding to a certain service type information, it indicates that the current resource allocation object has been added to the relevant preset allocation object set. At this time, it is necessary to determine whether the service type information of the current resource allocation object is consistent with the service information type tag of the added preset allocation object set, and if not, it indicates that the current resource allocation object has added the preset allocation object set corresponding to the other service type information tags, and then the current resource allocation object is not classified; if the current resource allocation object is consistent with the preset allocation object set corresponding to the service type information of the current resource allocation object, the current resource allocation object is indicated to be added into the preset allocation object set corresponding to the service type information of the current resource allocation object, and at this time, the current resource allocation object is not required to be indicated to be added into the corresponding preset allocation object set, so that the repeated addition of the same identifier of the resource allocation object to the preset receiving object set is avoided, the subsequent confusion or errors in resource allocation are effectively avoided, and the repeated allocation of resources and the like are avoided. By the method, the operation process of establishing the distribution relation can be simplified, the distribution relation needing to be maintained is further reduced, and the accuracy and the reliability of subsequent resource distribution can be improved.
Specifically, when a target object identifier corresponding to the identifier of the resource allocation object is matched, acquiring the service type information of a preset allocation object set where the target object identifier is located, and comparing the service type information of the preset allocation object set where the target object identifier is located with the service type information of the resource allocation object; when the service type information of the preset distribution object set where the target object identification is located is different from the service type information of the resource distribution object, the step of classifying the resource distribution object to the corresponding preset distribution object set according to the service type information is not executed; when the service type information of the preset distribution object set where the target object identification is located is the same as the service type information of the resource distribution object, the step 103 of establishing the distribution relation between the preset distribution object set and the resource receiving object according to the identification of the resource receiving object is executed.
103. And establishing the distribution relation between a preset distribution object set and the resource receiving object according to the identifier of the resource receiving object.
The identifier of the resource receiving object may be identity information, tag information, coding information, financial account information, resource storage address information, or the like of the resource receiving object, and the identifier of the resource receiving object is used to distinguish the current resource receiving object from other resource receiving objects, so as to establish an allocation relationship with the preset allocation object set according to the identifier of the resource receiving object. Furthermore, the identity of the resource receiving object may also be used to indicate the resource storage location after resource allocation, for example, taking the fund as a virtual resource as an example, the identity of the resource receiving object may be financial account information which may indicate that the received fund is stored into the financial account.
The allocation relationship may be a branch account relationship, an association relationship, a resource allocation channel, a resource transmission channel, and the like, and may be specifically determined according to an actual scenario. For example, taking the fund as a virtual resource as an example, the allocation relationship may be a split-account relationship, taking a split-account sponsor as a resource allocation object, taking a split-account recipient as a resource receiving object, and when an order is generated, the split-account sponsor transfers the resource to the split-account recipient with the split-account relationship according to the month, so as to realize fund splitting based on the split-account relationship.
In order to establish an allocation relationship or an allocation channel between a resource allocation object and a resource receiving object, in this embodiment, after adding the resource allocation object to the preset allocation object set, an allocation relationship or an allocation channel between the preset allocation object set and the resource receiving object needs to be established.
In some embodiments, the step of "establishing an allocation relationship between a preset allocation object set and a resource receiving object according to an identifier of the resource receiving object" may include:
(1) Searching an allocation relation list according to the identifier of the resource receiving object, wherein the allocation relation list comprises the allocation relation between a preset allocation object set and the resource receiving object;
it should be noted that each resource allocation object may need to establish an allocation relationship with a plurality of different resource receiving objects, which may cause a phenomenon that different resource allocation objects may need to establish an allocation relationship with the same resource receiving object, thereby causing the preset allocation object set to perform operations of establishing an allocation relationship multiple times with respect to the same resource receiving object. In this embodiment, to avoid repeatedly performing the operation process of establishing the allocation relationship with respect to the same resource receiving object subsequently, for a preset allocation object set, after the allocation relationship with a new resource receiving object is established, the newly established allocation relationship may be added to the allocation relationship list to obtain an allocation relationship list corresponding to the preset allocation object set. Therefore, when the distribution relation between the preset distribution object set and the same resource receiving object needs to be established subsequently, the corresponding distribution relation is directly searched and obtained according to the distribution relation list.
When the allocation relationship between the preset allocation object set and the resource receiving object is established, the allocation relationship list is searched according to the identifier of the resource receiving object corresponding to the allocation relationship to be established, so as to obtain whether the established allocation relationship of the allocation relationship list contains the allocation relationship with the resource receiving object to be established, thereby avoiding the operation of repeatedly establishing the same allocation relationship, improving the efficiency and reducing the maintenance difficulty of the subsequent allocation relationship.
(2) And when the distribution relation between the preset distribution object set and the resource receiving object is found, determining the established distribution relation as the distribution relation between the preset distribution object set and the resource receiving object.
When the distribution relation list contains the distribution relation between the preset distribution object set and the current resource receiving object, the distribution relation between the preset distribution object set and the current resource receiving object is established, so that the found established distribution relation can be determined as the distribution relation between the preset distribution object set and the current resource receiving object, the repeated operation of establishing the same distribution relation is avoided, and the efficiency is improved.
(3) When the allocation relation between the preset allocation object set and the resource receiving object cannot be found, the allocation relation between the preset allocation object set and the resource receiving object is established, and the resource receiving object with the allocation relation established is updated to the allocation relation list.
When the allocation relationship corresponding to the identifier of the current resource receiving object cannot be found from the allocation relationship list, it indicates that no allocation relationship is established between the preset allocation object set and the current resource receiving object, at this time, the allocation relationship between the preset allocation object set and the current resource receiving object needs to be established, and the newly established allocation relationship is added/updated to the allocation relationship list, so that when the allocation relationship between the preset allocation object set and the same resource receiving object needs to be established subsequently, the corresponding allocation relationship is directly found according to the allocation relationship list.
It should be noted that, after the resource allocation object is added to the preset allocation object set, it may be regarded as an element in the preset allocation object set, and therefore, when the allocation relationship is established between the preset allocation object set and the resource receiving object, the resource allocation object and the resource receiving object also have an allocation relationship, that is, the allocation relationship is established between the preset allocation object set and the resource receiving object, and it is determined that the resource allocation object and the resource receiving object also have an allocation relationship.
The step of "establishing an allocation relationship between the preset allocation object set and the resource receiving object" in step (3) may include:
(3.1) acquiring an identifier of a preset distribution object set;
(3.2) binding the identifier of the preset allocation object set with the identifier of the resource receiving object to obtain a target identifier pair with an allocation relation;
and (3.3) determining the distribution relation between the preset distribution object set and the resource receiving object according to the target identification pair.
The identifier of the preset allocation object set may be Identity Information (ID), a tag, a business number, financial account information, and the like of the preset allocation object set, and is used to distinguish the current preset allocation object set from other preset allocation object sets.
In order to establish an allocation relationship between the preset allocation object set and the resource receiving object, in this embodiment, an identifier of the preset allocation object set is obtained, and the identifier of the preset allocation object set and the identifier of the resource receiving object are bound to obtain a target identifier pair having an allocation relationship, and the target identifier pair having the allocation relationship is stored to establish an allocation relationship between the preset allocation object set and the resource receiving object. Through the method, the distribution relation between the preset distribution object set and the resource receiving object can be established, so that the subsequent execution of the resource distribution strategy is facilitated.
In some embodiments, the step of "establishing an allocation relationship between a preset allocation object set and a resource receiving object according to an identifier of the resource receiving object" may include:
A. and matching the object identifications in the preset receiving object set according to the identification of the resource receiving object to obtain a matching result, wherein the preset receiving object set and the distribution object set have a distribution relation.
Wherein the preset receiving object set may be a set having a plurality of resource receiving objects.
In this embodiment, when the allocation relationship between the preset allocation object set and the resource receiving object is established, for different resource receiving objects, the allocation relationship between the preset allocation object set and the resource receiving object needs to be established respectively. In order to simplify the process of establishing the operation relationship, the present embodiment may establish a preset receiving object set, and directly establish an allocation relationship between the preset allocation object set and the preset receiving object set; furthermore, the identifier of the resource receiving object is added into the preset receiving object set so as to realize that the preset distribution object set and the resource receiving object have a distribution relation; and then, determining the distribution relation between the preset distribution object set and the preset receiving object set as the distribution relation between the preset distribution object set and the resource receiving object. Therefore, the operation process of establishing the distribution relation is simplified, and the management efficiency of the distribution relation information is improved.
It can be understood that only one allocation relationship needs to be established between the preset allocation object set and the preset receiving object set, so that the allocation relationship between the resource allocation object in the preset allocation object set and the resource receiving object in the preset receiving object set can be realized. Therefore, the process of establishing the operation relation can be simplified, the distribution relation needing to be maintained is further reduced, and the management efficiency of the distribution relation information is improved.
In this embodiment, when the allocation relationship between the preset allocation object set and the resource receiving object is established, the object identifiers in the preset receiving object set may be matched according to the identifier of the resource receiving object corresponding to the allocation relationship to be established, so as to determine whether the preset receiving object set includes the identifier of the resource receiving object to be established, so as to learn whether the allocation relationship between the preset allocation object set and the resource receiving object has been established. Therefore, the operation of repeatedly establishing the same distribution relation is avoided, and the efficiency is improved.
B. And acquiring the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
The matching result is a matching result of the identifier of the resource receiving object and a preset receiving object set, and the matching result may include an object identifier corresponding to the identifier of the resource receiving object or may not include an object identifier corresponding to the identifier of the resource receiving object.
In order to reduce the operation of establishing the allocation relationship between the preset allocation object set and the resource receiving object, when the allocation relationship between the preset allocation object set and the resource receiving object is established, in this embodiment, it may be learned whether the preset receiving object set includes the identifier of the resource receiving object to be established currently based on the matching result, and further perform a related operation of "establishing the allocation relationship between the preset allocation object set and the resource receiving object". Therefore, the repeated addition of the same identifier of the resource receiving object to the preset receiving object set is avoided, and the subsequent confusion or errors in resource allocation are effectively avoided, for example, the repeated allocation of resources is avoided. By the method, the operation process of establishing the distribution relation can be simplified, the distribution relation needing to be maintained is further reduced, and the accuracy and the reliability of subsequent resource distribution can be improved.
In the step B, obtaining the allocation relationship between the preset allocation object set and the resource receiving object according to the matching result may include:
b1, when the matching result contains an object identifier corresponding to the identifier of the resource receiving object, acquiring the distribution relation between a preset receiving object set and a preset distribution object set.
When the matching result is that the preset receiving object set contains the object identifier corresponding to the identifier of the current resource receiving object, the preset distributing object set and the current resource receiving object are indicated to have established a distributing relation. At this time, the allocation relationship between the preset allocation object set and the current resource receiving object can be obtained without adding/updating the identifier of the current resource receiving object to the preset receiving object set, thereby avoiding the repeated operation of establishing the same allocation relationship and having reliability.
And B2, when the matching result does not contain the object identification corresponding to the identification of the resource receiving object, adding the resource receiving object to the preset receiving object set to obtain an updated preset receiving object set.
And when the matching result is that the preset receiving object set does not contain the object identifier corresponding to the identifier of the current resource receiving object, the preset distributing object set and the current resource receiving object are not established with a distributing relation. At this time, the identifier of the current resource receiving object needs to be added/updated to the preset receiving object set, so as to obtain the distribution relationship between the preset distribution object set and the current resource receiving object. Therefore, the operation process of establishing the distribution relation is simplified, the distribution relation needing to be maintained is further reduced, and the accuracy and the reliability of follow-up resource distribution can be improved.
And B3, acquiring the distribution relation between the preset distribution object set and the resource receiving object based on the updated distribution relation between the preset receiving object set and the preset distribution object set.
It should be noted that, since the updated preset receiving object set includes the identifier of the current resource receiving object, the allocation relationship between the preset allocating object set and the resource receiving object may be determined according to the allocation relationship between the updated preset receiving object set and the preset allocating object set.
In some embodiments, before the step of establishing an allocation relationship between a preset allocation object set and a resource receiving object according to an identifier of the resource receiving object, the step may include:
acquiring attribute information corresponding to the identifier of the resource receiving object;
secondly, checking the attribute information of the resource receiving object according to a preset receiving object checking rule to obtain a checking result;
and (III) establishing an allocation relation between a preset allocation object set and the resource receiving object according to the identifier of the resource receiving object, wherein the allocation relation comprises the following steps: if the verification result is that the attribute information is matched with the preset receiving object verification rule, the distribution relation between the preset distribution object set and the resource receiving object is established according to the identification of the resource receiving object.
The attribute information may be authentication information, credentials, and the like required by the resource receiving object.
In order to ensure that the resource receiving object is a legal object, in this embodiment, after receiving the set establishment request sent by the target object, or when the resource receiving object requests to establish an allocation relationship with a preset allocation object set, the attribute information corresponding to the identifier of the resource receiving object is obtained, and the attribute information is verified to obtain a verification result. And only when the verification result is that the attribute information is matched with the preset receiving object verification rule, executing the step of establishing the distribution relation between the preset distribution object set and the resource receiving object according to the identification of the resource receiving object.
For example, taking the business platform as the preset distribution object set as an example, the attribute information of the resource receiving object may be nationality information, financial account attributes, credit rating information of a financial account, permission credentials, and the like, and the preset receiving object check rule of the attribute information may include: whether the resource receiving object and the preset allocation object set have the same nationality information, whether the resource receiving object and the preset allocation object set use financial accounts with the same attribute, whether the credit rating of the financial accounts of the resource receiving object is good, whether the resource receiving object is permitted (such as permission of a group to which the resource receiving object belongs or permission of a business platform). Further, when the attribute information of the resource receiving object is matched with the preset receiving object check rule, executing a step of establishing an allocation relation between a preset allocation object set and the resource receiving object according to the identifier of the resource receiving object, and sending feedback information of successful establishment; when the attribute information of the resource receiving object is not matched with the preset receiving object check rule, sending feedback information of 'establishment failure', wherein the feedback information is specifically shown in the following table:
Figure BDA0003092129160000171
104. a resource allocation request for a target resource allocation object is received.
The target resource allocation object is an object which is classified to a corresponding preset allocation object set, and the target resource receiving object is an object which establishes an allocation relation with the preset allocation object set, that is, an allocation relation exists between the target resource allocation object and the target resource receiving object.
When the target resource allocation object has a resource allocation requirement, a resource allocation request can be generated and sent to the server, so that the server responds to the resource allocation request, wherein the resource allocation request carries the target service type information and the identifier of the target resource receiving object. For example, taking brand a store in an e-commerce platform as an example of a resource allocation object, when an order is generated, a partner participating in the order is an advertiser or a logistics provider, so that the store has a capital expenditure requirement, and part of profit of the order needs to be allocated to the advertiser or the logistics provider, so that when the store generates a resource allocation request, brand a can be used as business type information, and the identifier of the advertiser and the identifier of the logistics provider are used as identifiers of resource receiving objects to generate a corresponding resource allocation request.
In order to implement resource allocation, the present embodiment receives a resource allocation request of a target resource allocation object, and obtains target service type information and an identifier of the target resource allocation object in the resource allocation request, so as to subsequently allocate virtual resources of the target resource allocation object to a corresponding target resource allocation object, thereby improving accuracy in resource allocation.
105. And matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
In order to obtain the distribution relationship between the target resource distribution object and the target resource receiving object, the embodiment matches the corresponding service type information tag according to the target service type information of the target resource distribution object, so as to search a target preset distribution object set corresponding to the matched service type information tag; acquiring the distribution relation between a target preset distribution object set and a target resource receiving object according to the identification of the target resource receiving object; and allocating the virtual resource of the target resource allocation object to the target resource receiving object based on the acquired allocation relation.
In some embodiments, the "obtaining an allocation relationship between a target preset resource allocation object set and a target resource receiving object according to an identifier of the target resource receiving object" may include: searching a target distribution relation list corresponding to the target preset distribution object set according to the identification of the target resource receiving object so as to obtain the distribution relation between the target preset distribution object set and the target resource receiving object in the target distribution relation list; and determining the distribution relation between the target preset distribution object set and the target resource receiving object as the distribution relation between the target preset resource distribution object and the target resource receiving object.
In some embodiments, obtaining an allocation relationship between a preset resource allocation object set and a target resource receiving object according to an identifier of the target resource receiving object may include: matching the target preset receiving object set according to the identification of the target resource receiving object to obtain the distribution relation between the target preset receiving object set and the target preset distribution object set; and determining the distribution relation between the target preset receiving object set and the target preset distribution object set as the distribution relation between the target preset resource distribution object and the target resource receiving object.
It should be noted that, in the related art, when the allocation relationship between the resource allocation object and the resource receiving object is managed, each resource allocation object needs to establish an allocation relationship with a different resource receiving object, a large amount of allocation relationship information occupies a large amount of system resources, and a one-to-one manner is not favorable for subsequent maintenance of the allocation relationship, thereby resulting in low management efficiency. Compared with the related art, the embodiment of the application can match the corresponding preset allocation object set according to the service type information of the resource allocation object of which the allocation relation is to be established, so as to classify the resource allocation object, for example, the identifier of the resource allocation object is added to the matched preset allocation object set; further, by establishing an allocation relationship between the preset allocation object set and the corresponding resource receiving object, the allocation relationship is used as an allocation relationship between the resource allocation object and the resource receiving object, and virtual resource allocation is performed based on the allocation relationship. Therefore, by establishing the distribution relation between the preset distribution object set and the plurality of resource receiving objects and adding the resource distribution objects needing to establish the distribution relation to the corresponding preset distribution object set, the situation that each resource distribution object establishes the distribution relation with different resource receiving objects respectively can be avoided, the distribution relation needing to be established and the distribution relation information amount are effectively reduced, the maintenance difficulty of the subsequent distribution relation is reduced, and the management efficiency of the distribution relation information is improved.
Therefore, the embodiment of the application can acquire the service type information of the resource allocation object and the identification of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of the target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object. Therefore, the resource allocation objects are allocated to the preset set, and the allocation relation between the resource allocation objects and the resource receiving objects is determined according to the allocation relation between the preset allocation object set and the resource receiving objects, so that the phenomenon that the allocation relation between each resource allocation object and each resource receiving object needs to be established can be avoided, the allocation relation needing to be maintained is effectively reduced, the management difficulty of relation information is reduced, the management efficiency of the allocation relation information is improved, and the virtual resource allocation efficiency is improved.
The method described in the above examples is further illustrated in detail below by way of example.
The embodiment of the present application takes the allocation of funds as an example, and further describes the virtual resource allocation method provided in the embodiment of the present application.
Referring to fig. 3, fig. 3 is a schematic flow chart of another step of the virtual resource allocation method provided in the embodiment of the present application, fig. 4 is a schematic application scenario diagram of a branch accounting relationship between a preset allocation object set and a resource receiving object provided in the embodiment of the present application, and fig. 5 is a schematic application scenario diagram of a branch accounting relationship between a preset allocation object set and a preset receiving object set provided in the embodiment of the present application; for ease of understanding, please refer to fig. 3, fig. 4, and fig. 5 together to describe the embodiments of the present application.
In the embodiment of the present application, a description will be given from the perspective of a virtual resource allocation apparatus, which may be specifically integrated in a computer device, such as a terminal, a server, or the like. When the processors on the terminal and the server execute the programs corresponding to the virtual resource allocation method together, the specific time sequence flow corresponding to the virtual resource allocation method is as follows:
201. the terminal sends a relation establishment request of the resource allocation object to the server.
The relation establishment request carries the service type information of the resource allocation object and the identification of the resource receiving object.
For example, taking an e-commerce platform as an example, the resource allocation object may be a private individual in the e-commerce platform, a store, etc., the business type information of the store (resource allocation object) is a brand a product, and the resource reception object may be an advertiser, a logistics merchant, etc. cooperating with the store, and the allocation relationship established between the store and the advertiser may be an accounting relationship.
For example, in order to meet the subsequent fund split between the store and the advertiser, a relationship establishment request carrying the business type information of the store as brand a goods and the identifier of the resource receiving object as the identifier of the advertiser (identity information, label information, coding information, financial account information) may be sent by the store or the e-commerce platform through the terminal. Therefore, when the shop generates an order, the shop can carry out fund accounting on the order through the accounting relation according to the actual situation.
202. The server receives a relation establishment request of the resource allocation object, and acquires service type information of the resource allocation object and an identifier of the resource receiving object.
For example, taking a store in an e-commerce platform as an example of a resource allocation object, establishing a billing relationship between the store and an advertiser as an example, when a relationship establishment request about the store is received, business type information about the store and an identifier of the advertiser, which are carried in the relationship request, can be obtained, so as to collect the business type information about the resource allocation object and the identifier of the resource receiving object.
Further, the business type information of the store and the identification of the advertiser may be stored in a database of the server. For example, the database of the server stores relevant information of stores and advertisers with established distribution relations, such as business type information of the stores, identification of the advertisers and the like. In order to reduce the maintenance difficulty and the management difficulty of the distribution relation data in the follow-up process, the relation information of the stores and the advertisers which have established the one-to-one distribution relation can be rearranged. In some embodiments, the business type information and advertiser identification of stores having an assignment relationship may be collected from a database for later information reorganization.
203. And the server classifies the resource allocation objects into corresponding preset allocation object sets according to the service type information.
For example, taking a business platform as an example, the resource allocation object may be each store in the business platform, and a platform information set corresponding to the business platform is generated, where the platform information set includes a preset allocation object set corresponding to a plurality of different business type information tags, such as a brand a store set (preset allocation object set), a brand B store set, and a brand C store set. When the collected business type information of the shop is a brand-A commodity, the identification information, the identity information or the financial account information of the thermocouple can be added into a brand-A shop set (a preset distribution object set) so as to classify the shop according to the business type information.
It should be noted that the preset allocation object set may be created in advance by related personnel, an originator, a business, and a merchant. For example, taking a business platform as a platform information set as an example, the target object may be an originator, a merchant, a manager, and the like, and if the target object wants to create a set of brand a commodities in the platform information set, the target object is a set owner, and may set the business type information as brand a commodity information, a brand label, and the like, and submit registration information such as a license of the target object when operating the brand a commodities, credit rating information of a financial account, and the like; when a set establishment request sent by a target object is received, checking the registration information of the target object, wherein the preset registration information rule involved in the checking comprises whether a license (such as an ICP license or an EDI license) exists, whether the license exists in the validity period of the license, whether the financial credit rating of a financial account is good and the like, and when the checking result is that the preset registration information rule is met, successfully establishing a preset distribution object set corresponding to the brand A and sending feedback information of 'successful establishment'; and when the verification result is that the preset registration information rule is not met, refusing to create a preset distribution object set corresponding to the brand A, and sending feedback information of 'establishment failure', wherein the specific table is as follows:
Figure BDA0003092129160000221
204. and the server matches the object identifiers in the preset receiving object set according to the identifier of the resource receiving object to obtain a matching result, wherein the preset receiving object set and the distribution object set have a distribution relation.
In order to simplify the process of establishing the operation relationship, the present embodiment may establish a preset receiving object set, and directly establish an allocation relationship between a preset allocation object set and a preset receiving object set; furthermore, the identifier of the resource receiving object is added into the preset receiving object set so as to realize that the preset distribution object set and the resource receiving object have a distribution relation; and then, determining the distribution relation between the preset distribution object set and the preset receiving object set as the distribution relation between the preset distribution object set and the resource receiving object. Therefore, the operation process of establishing the distribution relation is simplified, and the management efficiency of the distribution relation information is improved.
It can be understood that only one allocation relationship needs to be established between the preset allocation object set and the preset receiving object set, so that the allocation relationship between the resource allocation object in the preset allocation object set and the resource receiving object in the preset receiving object set can be realized. Therefore, the process of establishing the operation relationship can be simplified, the distribution relationship needing to be maintained is further reduced, and the management efficiency of the distribution relationship information is improved.
For example, taking an e-commerce platform as an example, the resource allocation object may be a store with various service type information in the e-commerce platform, the identifier of the resource receiving object is an identifier of an advertiser, after the store with the brand a goods is added to the preset store set with the brand a goods tag, and the preset store set with the brand a goods tag and the preset receiving object set have a billing relationship (i.e., an allocation relationship), at this time, it is necessary whether the preset receiving object set includes the identifier of the advertiser, specifically, the object identifier in the preset receiving object set may be matched according to the identifier of the advertiser to obtain a matching result, and the matching result may include the object identifier corresponding to the identifier of the advertiser or may not include the object identifier corresponding to the identifier of the advertiser.
For example, as shown in fig. 5, the preset receiving object set includes a B advertiser, a C logistics provider, a D agent, an E employee, an F service provider, an H E-commerce platform, and the like, if a billing relationship between the store of the brand a commodity and the B advertiser needs to be established, after the identifier of the store of the brand a commodity is added to the preset store set of the brand a commodity tag, the object identifier in the preset receiving object set is matched according to the identifier of the B advertiser. Further, since the preset receiving object set already includes the identifier of the advertiser B, the corresponding matching result is that the object identifier corresponding to the identifier of the advertiser B is included, and since the distribution relationship has been established between the preset store set of the brand a merchandise tag and the preset receiving object set, it is indicated that the distribution relationship exists between the store of the brand a merchandise and the advertiser B.
Therefore, when the distribution relationship between the shop and the advertiser is established, the object identifiers in the preset receiving object set can be matched according to the identifier of the advertiser corresponding to the distribution relationship to be established, so as to determine whether the preset receiving object set comprises the identifier of the advertiser to be established, and to learn whether the account separation relationship between the preset distribution object set and the advertiser is established. Therefore, repeated operation of establishing the same branch account relation is avoided, and efficiency is improved.
205. And the server acquires the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
For example, taking an e-commerce platform as an example, the resource allocation object may be a store with various service type information in the e-commerce platform, such as a store with a brand a goods, and the identifier of the resource receiving object is an identifier of an advertiser, and when the preset receiving object set is matched according to the identifier of the advertiser, a matching result is obtained; and when the matching result contains the object identification corresponding to the identification of the advertiser, acquiring the account-separating relation between the preset shop set and the preset receiving object set of the brand A commodity label as the account-separating relation between the shop of the brand A commodity and the advertiser. When the matching result does not contain the object identification corresponding to the identification of the advertiser, adding the identification of the advertiser to the preset receiving object set to obtain an updated preset receiving object set; and determining the account-sharing relation between the stores of the brand A commodities and the advertisers based on the account-sharing relation between the updated preset receiving object set and the preset store set of the brand A commodity labels.
For example, taking an e-commerce platform as an example, 1000 stores of brand a commodities exist currently, and the stores of the brand a commodities serve as a separate payment sponsor for each order; and there are 30 ten thousand ledger recipients (i.e., resource receipt objects). When 100 sub-accounting payers and 1000 sub-accounting receivers are newly added every day, if a sub-accounting relationship is established between each sub-accounting payer and all sub-accounting receivers, a large number of sub-accounting relationships are established according to newly added data (sub-accounting payers and sub-accounting receivers) and original old data (sub-accounting payers and sub-accounting receivers) every day, and 3100 ten thousand sub-accounting relationships are newly established if needed. In the embodiment of the application, the newly added branch account paying-out party is added into the corresponding preset shop set of the brand A commodity label, and the branch account relation can be established between the preset shop set of the brand A commodity label and the newly added 1000 branch account receiving parties respectively.
Furthermore, the branch account receivers can be classified into corresponding receiving object sets according to service business types, if a preset receiving object set corresponding to 1000 service business types exists, 30 ten thousand branch account receivers can be classified into the preset receiving object set corresponding to 1000 service business types, and at this time, only the branch account relation between the preset shop set of brand a commodity labels and the preset receiving object set corresponding to the 1000 service business types needs to be established, namely, the 1000 branch account relations are established. When 1000 account-divided receivers are added every day, classifying the added 1000 account-divided receivers into a preset receiving object set of a corresponding service type respectively; if the 1000 newly added branch account receivers can be classified into the preset receiving object set of the corresponding service business type, because the preset shop set of the brand a commodity label and the preset receiving object set corresponding to the 1000 service business types have the branch account relationship, at this time, the branch account relationship does not need to be established; if the preset receiving object set of the service business type corresponding to the newly added branch account receiving party does not exist, the preset receiving object set of the corresponding service business type is newly established for the newly added branch account receiving party which cannot be classified, and the branch account relation between the newly established preset receiving object set and the preset shop set of the brand A commodity label is formed.
The account-separating relation is managed through the above example mode, and the account-separating relation can be effectively reduced. For example, if only a set of ledger payers (a set of pre-set allocation objects) is used as a supply chain ledger relationship, then the relationships that need to be maintained would be reduced by a factor of 1000; if a combined mode of a set of branch presenters (a preset allocation object set) and a set of branch recipients (a preset receiving object set) is used as a supply chain branch accounting relationship, the amount of relationship will be reduced by 3 ten thousand times. Specifically, the number of the billing relations of the e-commerce platform is specifically referred to the following table:
Figure BDA0003092129160000241
Figure BDA0003092129160000251
in order to reduce the operation of establishing the allocation relationship between the preset allocation object set and the resource receiving object, in this embodiment, when the allocation relationship between the preset allocation object set and the resource receiving object is established, it may be learned whether the preset receiving object set includes the identifier of the resource receiving object to be established currently based on the matching result, and further perform the operation of "establishing the allocation relationship between the preset allocation object set and the resource receiving object". Therefore, the repeated addition of the same identifier of the resource receiving object to the preset receiving object set is avoided, and the subsequent confusion or errors in resource allocation are effectively avoided, such as the repeated allocation of the resource and the like. By the method, the operation process of establishing the distribution relation can be simplified, the distribution relation needing to be maintained is further reduced, and the accuracy and the reliability of subsequent resource distribution can be improved.
206. The terminal sends a resource allocation request of the target resource allocation object to the server.
The target resource allocation object is an object which is classified to a corresponding preset allocation object set, and the target resource receiving object is an object which has established an allocation relation with the preset allocation object set, that is, an allocation relation exists between the target resource allocation object and the target resource receiving object.
For example, taking e-commerce platform as an example, the target resource allocation object is a store of brand a commodities, which has joined a preset store set of brand a commodity tags; the target resource receiving object is an advertiser B, and the identifier of the advertiser B is added into a preset receiving object set; and the preset shop set of the brand A commodity label and the preset receiving object set have a billing relationship. When the store of the brand A generates an order of the brand A commodity, the store of the brand A commodity needs to be billed to a B advertiser participating in the order of the brand A commodity, and at the moment, the merchant of the store of the brand A commodity can generate a resource allocation request through a terminal and send the resource allocation request to a server, wherein the resource allocation request carries brand A commodity information (service type information) and a B advertiser mark (mark of a target resource receiving object). Therefore, the virtual resources of the target resource allocation object can be subsequently allocated to the corresponding target resource receiving object, and the accuracy in resource allocation is improved.
207. The server receives a resource allocation request of a target resource allocation object, and acquires service type information of the target resource allocation object and an identifier of the target resource receiving object in the resource allocation request.
After a merchant of a shop with brand A goods can send a resource allocation request through a terminal, a server receives the resource allocation request sent by the terminal so as to obtain the service type information of a target resource allocation object and the identification of the target resource receiving object in the resource allocation request.
208. And the server matches the corresponding service type information label according to the target service type information of the target resource allocation object so as to search a target preset allocation object set corresponding to the matched service type information label.
For example, in order to obtain the account-sharing relationship between the store of brand a goods and the advertiser, the embodiment matches the corresponding business type information tag according to the brand a goods information of the store as the target preset store set of brand a goods tags.
209. And the server acquires the distribution relation between the target preset distribution object set and the target resource receiving object according to the identification of the target resource receiving object.
For example, taking e-commerce platform as an example, the target resource allocation object is a shop of brand a goods, and the target resource receiving object is identified as the B advertiser identification. And searching a target distribution relation list corresponding to the target preset shop set of the brand A commodity label according to the 'B advertiser mark' so as to obtain the branch account relation between the target preset shop set of the brand A commodity label and the B advertiser in the target distribution relation list, and determining the obtained branch account relation as the branch account relation between the shop of the brand A commodity and the advertiser.
For another example, taking e-commerce platform as an example, the target resource allocation object is a shop of brand a goods, and the target resource receiving object is identified as the advertiser B. Matching the target preset receiving object set according to the advertiser identification B to obtain the ledger relation between the target preset receiving object set and the preset shop set of brand A commodity labels; and determining the account-based relationship between the target preset receiving object set and the preset shop set of the brand A commodity label as the account-based relationship between the shop of the brand A commodity and the advertiser B.
210. And the server allocates the virtual resource of the target resource allocation object to the target resource receiving object based on the acquired allocation relation.
For example, taking e-commerce platform as an example, the target resource allocation object is a store of brand a goods, the target resource receiving object is a B advertiser, and the fund of the order of brand a goods is taken as a virtual resource, the server may credit the fund of the order of brand a goods of the store of brand a goods to the B advertiser based on the determined credit relationship between the store of brand a goods and the B advertiser.
In the process of allocating the virtual resources, the allocation can be performed according to the allocation proportion set by the target resource allocation object. For example, when the capital of the brand a commodity order of the brand a commodity store is distributed to the B advertiser, the capital distribution may be performed according to a set capital distribution rule of one order. For example, the fund accounting rule of an order can be that "the accounting proportion of the order is 30%", "the maximum accounting amount does not exceed the order amount when the order amount is less than the low price threshold value", and the like; if the order transaction amount of one brand A commodity is 100 yuan and the low price threshold value of the brand A commodity is 20 yuan, 30% of the order transaction amount is billed to the B advertiser; if the transaction amount of an order of brand-A goods is 19 yuan and the low price threshold of brand-A goods is 20 yuan, the maximum credit amount of the order does not exceed 19 yuan. The above is merely an example, and the present embodiment does not specifically limit the split ratio in the supply chain.
As can be seen from the above, the embodiment of the present application can acquire the service type information of the resource allocation object and the identifier of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object. Therefore, the resource allocation objects are allocated to the preset set, and the allocation relation between the resource allocation objects and the resource receiving objects is determined according to the allocation relation between the preset allocation object set and the resource receiving objects, so that the phenomenon that the allocation relation between each resource allocation object and each resource receiving object needs to be established can be avoided, the allocation relation needing to be maintained is effectively reduced, the management difficulty of relation information is reduced, the management efficiency of the allocation relation information is improved, and the virtual resource allocation efficiency is improved.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In order to better implement the above method, the present application further provides a virtual resource allocation apparatus, which may be integrated in a computer device, such as a server or a terminal.
For example, as shown in fig. 6, the virtual resource allocation apparatus may include an acquisition unit 301, a classification unit 302, an establishment unit 303, a receiving unit 304, and an allocation unit 305.
An acquisition unit 301, configured to acquire service type information of a resource allocation object and an identifier of a resource receiving object;
a classifying unit 302, configured to classify the resource allocation object into a corresponding preset allocation object set according to the service type information, where the preset allocation object set carries a service type information tag;
an establishing unit 303, configured to establish an allocation relationship between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object;
a receiving unit 304, configured to receive a resource allocation request of a target resource allocation object, where the resource allocation request carries target service type information and an identifier of the target resource receiving object;
an allocating unit 305, configured to match the corresponding target preset allocation object set according to the target service type information, and allocate the virtual resource to the target resource receiving object based on an allocation relationship between the target preset allocation object set and the target resource receiving object.
In some embodiments, the establishing unit 303 is further configured to:
searching an allocation relation list according to the identifier of the resource receiving object, wherein the allocation relation list comprises the allocation relation between a preset allocation object set and the resource receiving object;
when the distribution relation between the preset distribution object set and the resource receiving object is found, determining the established distribution relation as the distribution relation between the preset distribution object set and the resource receiving object;
when the distribution relation between the preset distribution object set and the resource receiving object cannot be found, the distribution relation between the preset distribution object set and the resource receiving object is established, and the resource receiving object with the established distribution relation is updated to a distribution relation list.
In some embodiments, the establishing unit 303 is further configured to:
acquiring an identifier of a preset distribution object set;
binding the identifier of a preset allocation object set with the identifier of a resource receiving object to obtain a target identifier pair with an allocation relation;
and determining the distribution relation between the preset distribution object set and the resource receiving object according to the target identification pair.
In some embodiments, the establishing unit 303 is further configured to:
matching object identifications in a preset receiving object set according to the identification of the resource receiving object to obtain a matching result, wherein the preset receiving object set and an allocation object set have an allocation relation;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
In some embodiments, the establishing unit 303 is further configured to:
when the matching result contains an object identifier corresponding to the identifier of the resource receiving object, acquiring the distribution relation between a preset receiving object set and a preset distribution object set;
when the matching result does not contain the object identifier corresponding to the identifier of the resource receiving object, adding the identifier of the resource receiving object to the preset receiving object set to obtain an updated preset receiving object set;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object based on the updated distribution relation between the preset receiving object set and the preset distribution object set.
In some embodiments, the classification unit 302 is further configured to:
searching a service type information label list for the service type information to obtain a preset distribution object set corresponding to the service type information label;
and classifying the resource allocation objects into a preset allocation object set.
In some embodiments, the virtual resource allocation apparatus further comprises:
the receiving object checking unit is used for acquiring attribute information corresponding to the identifier of the resource receiving object; verifying the attribute information of the resource receiving object according to a preset receiving object verification rule to obtain a verification result;
the establishing unit 303 is further configured to establish an allocation relationship between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object if the verification result is that the attribute information matches the preset receiving object verification rule.
In some embodiments, the virtual resource allocation apparatus further comprises:
the distribution object checking unit is used for matching a target object identifier in a preset distribution object set corresponding to each service information type according to the identifier of the resource distribution object;
the classifying unit 302 is further configured to, when the target object identifier corresponding to the identifier of the resource allocation object is not matched, classify the resource allocation object to the corresponding preset allocation object set according to the service type information.
In some embodiments, the virtual resource allocation apparatus further comprises: the set establishing unit is specifically configured to:
receiving a set establishment request sent by a target object, wherein the set establishment request carries service type information and registration information of a distribution object set to be established;
verifying the registration information;
and when the registration information accords with a preset registration information rule, establishing a corresponding preset distribution object set according to the service type information of the distribution object set to be established.
As can be seen from the above, in the embodiment of the present application, the acquisition unit 301 may acquire the service type information of the resource allocation object and the identifier of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information through a classification unit 302, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object through an establishing unit 303; receiving a resource allocation request of a target resource allocation object through a receiving unit 304, wherein the resource allocation request carries target service type information and an identifier of the target resource receiving object; the allocation unit 305 matches the corresponding target preset allocation object set according to the target service type information, and allocates the virtual resource to the target resource receiving object based on the allocation relationship between the target preset allocation object set and the target resource receiving object. Therefore, the resource allocation objects are allocated to the preset set, and the allocation relation between the resource allocation objects and the resource receiving objects is determined according to the allocation relation between the preset allocation object set and the resource receiving objects, so that the phenomenon that the allocation relation between each resource allocation object and each resource receiving object needs to be established can be avoided, the allocation relation needing to be maintained is effectively reduced, the management difficulty of relation information is reduced, the management efficiency of the allocation relation information is improved, and the virtual resource allocation efficiency is improved.
The embodiment of the present application further provides a computer device, as shown in fig. 7, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 7 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the computer device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and virtual resource allocation by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that the functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
acquiring service type information of a resource allocation object and an identifier of a resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of the target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the embodiment of the present application can acquire the service type information of the resource allocation object and the identifier of the resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of the target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object. Therefore, the resource allocation objects are allocated to the preset set, and the allocation relation between the resource allocation objects and the resource receiving objects is determined according to the allocation relation between the preset allocation object set and the resource receiving objects, so that the phenomenon that the allocation relation between each resource allocation object and each resource receiving object needs to be established can be avoided, the allocation relation needing to be maintained is effectively reduced, the management difficulty of relation information is reduced, the management efficiency of the allocation relation information is improved, and the virtual resource allocation efficiency is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the virtual resource allocation methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring service type information of a resource allocation object and an identifier of a resource receiving object; classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels; establishing an allocation relation between a preset allocation object set and a resource receiving object according to the identifier of the resource receiving object; receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object; and matching the corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual resource allocation method provided in the various optional implementation manners in the above embodiments.
Since the instructions stored in the computer-readable storage medium may execute the steps in any virtual resource allocation method provided in the embodiments of the present application, beneficial effects that can be achieved by any virtual resource allocation method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description is directed to a virtual resource allocation method, apparatus, device, and computer-readable storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A method for allocating virtual resources, comprising:
acquiring service type information of a resource allocation object and an identifier of a resource receiving object;
classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, wherein the preset allocation object sets carry service type information labels;
according to the identification of the resource receiving object, establishing the distribution relation between the preset distribution object set and the resource receiving object;
receiving a resource allocation request of a target resource allocation object, wherein the resource allocation request carries target service type information and an identifier of a target resource receiving object;
and matching a corresponding target preset distribution object set according to the target service type information, and distributing the virtual resources to the target resource receiving object based on the distribution relation between the target preset distribution object set and the target resource receiving object.
2. The method according to claim 1, wherein the establishing an allocation relationship between the preset allocation object set and the resource receiving object according to the identifier of the resource receiving object comprises:
searching an allocation relation list according to the identifier of the resource receiving object, wherein the allocation relation list comprises the allocation relation between a preset allocation object set and the resource receiving object;
when the allocation relation between a preset allocation object set and a resource receiving object is found, determining the established allocation relation as the allocation relation between the preset allocation object set and the resource receiving object;
when the allocation relation between the preset allocation object set and the resource receiving object cannot be found, establishing the allocation relation between the preset allocation object set and the resource receiving object, and updating the resource receiving object with the established allocation relation to the allocation relation list.
3. The method according to claim 2, wherein the establishing an allocation relationship between the preset allocation object set and a resource receiving object comprises:
acquiring an identifier of the preset distribution object set;
binding the identifier of the preset allocation object set with the identifier of the resource receiving object to obtain a target identifier pair with an allocation relation;
and determining the distribution relation between the preset distribution object set and the resource receiving object according to the target identification pair.
4. The method according to claim 1, wherein the establishing an allocation relationship between the preset allocation object set and the resource receiving object according to the identifier of the resource receiving object comprises:
matching object identifications in a preset receiving object set according to the identification of the resource receiving object to obtain a matching result, wherein the preset receiving object set and the distribution object set have a distribution relation;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
5. The method according to claim 4, wherein the obtaining the allocation relationship between the preset allocation object set and the resource receiving object according to the matching result comprises:
when the matching result contains an object identifier corresponding to the identifier of the resource receiving object, acquiring the distribution relation between the preset receiving object set and the preset distribution object set;
when the matching result does not contain the object identifier corresponding to the identifier of the resource receiving object, adding the identifier of the resource receiving object to the preset receiving object set to obtain an updated preset receiving object set;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object based on the distribution relation between the updated preset receiving object set and the preset distribution object set.
6. The method of claim 1, wherein the classifying the resource allocation objects into corresponding preset allocation object sets according to the service type information comprises:
searching a service type information label list based on the service type information to obtain a preset distribution object set corresponding to the service type information label;
and classifying the resource allocation objects into a preset allocation object set.
7. The method according to any one of claims 1 to 6, wherein the establishing an allocation relationship between the preset allocation object set and the resource receiving object according to the identifier of the resource receiving object previously comprises:
acquiring attribute information corresponding to the identifier of the resource receiving object;
verifying the attribute information of the resource receiving object according to a preset receiving object verification rule to obtain a verification result;
the establishing of the allocation relationship between the preset allocation object set and the resource receiving object according to the identifier of the resource receiving object includes:
and if the verification result is that the attribute information is matched with a preset receiving object verification rule, establishing the distribution relation between the preset distribution object set and the resource receiving object according to the identification of the resource receiving object.
8. The method according to claim 1, wherein the allocating the resource allocation object to a corresponding preset allocation object set according to the service type information further comprises:
matching the target object identification in a preset distribution object set corresponding to each service information type according to the identification of the resource distribution object;
the step of classifying the resource allocation objects into the corresponding preset allocation object sets according to the service type information includes:
and when the target object identification corresponding to the identification of the resource allocation object is not matched, classifying the resource allocation object to a corresponding preset allocation object set according to the service type information.
9. The method according to claim 1, wherein the allocating the resource allocation object to a corresponding preset allocation object set according to the service type information further comprises:
receiving a set establishment request sent by a target object, wherein the set establishment request carries service type information and registration information of a distribution object set to be established;
verifying the registration information;
and when the registration information accords with a preset registration information rule, establishing a corresponding preset distribution object set according to the service type information of the distribution object set to be established.
10. A virtual resource allocation apparatus, comprising:
the acquisition unit is used for acquiring the service type information of the resource allocation object and the identifier of the resource receiving object;
the classification unit is used for classifying the resource allocation objects to corresponding preset allocation object sets according to the service type information, and the preset allocation object sets carry service type information labels;
the establishing unit is used for establishing the distribution relation between the preset distribution object set and the resource receiving object according to the identifier of the resource receiving object;
a receiving unit, configured to receive a resource allocation request of a target resource allocation object, where the resource allocation request carries target service type information and an identifier of the target resource receiving object;
and the allocation unit is used for matching the corresponding target preset allocation object set according to the target service type information and allocating the virtual resources to the target resource receiving object based on the allocation relation between the target preset allocation object set and the target resource receiving object.
11. The apparatus of claim 10, wherein the establishing unit is further configured to:
searching an allocation relation list according to the identifier of the resource receiving object, wherein the allocation relation list comprises the allocation relation between a preset allocation object set and the resource receiving object;
when the distribution relation between a preset distribution object set and a resource receiving object is found, determining the established distribution relation as the distribution relation between the preset distribution object set and the resource receiving object;
when the allocation relation between the preset allocation object set and the resource receiving object cannot be found, establishing the allocation relation between the preset allocation object set and the resource receiving object, and updating the resource receiving object with the established allocation relation to the allocation relation list.
12. The apparatus of claim 10, wherein the establishing unit is further configured to:
matching object identifications in a preset receiving object set according to the identification of the resource receiving object to obtain a matching result, wherein the preset receiving object set and the distribution object set have a distribution relation;
and acquiring the distribution relation between the preset distribution object set and the resource receiving object according to the matching result.
13. The apparatus of claim 10, further comprising:
the device comprises a set establishing unit, a set establishing unit and a set establishing unit, wherein the set establishing unit is used for receiving a set establishing request sent by a target object, and the set establishing request carries service type information and registration information of a distribution object set to be established; verifying the registration information; and when the registration information accords with a preset registration information rule, establishing a corresponding preset distribution object set according to the service type information of the distribution object set to be established.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method according to any of claims 1-9 are implemented when the program is executed by the processor.
15. A computer-readable storage medium, wherein the computer-readable storage medium is computer-readable and stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the virtual resource allocation method according to any one of claims 1 to 9.
CN202110598642.6A 2021-05-31 2021-05-31 Virtual resource allocation method, device, equipment and computer readable storage medium Pending CN115481831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110598642.6A CN115481831A (en) 2021-05-31 2021-05-31 Virtual resource allocation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110598642.6A CN115481831A (en) 2021-05-31 2021-05-31 Virtual resource allocation method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115481831A true CN115481831A (en) 2022-12-16

Family

ID=84419916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110598642.6A Pending CN115481831A (en) 2021-05-31 2021-05-31 Virtual resource allocation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115481831A (en)

Similar Documents

Publication Publication Date Title
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
US10043165B2 (en) Cloud service integration pay trading system
CN109831501B (en) Information distribution method and system based on block chain
CN104378341A (en) Template obtaining method, template providing method, device and system
WO2018006716A1 (en) Order information processing method, apparatus and system
US10387968B2 (en) Method to determine account similarity in an online accounting system
CN104579909B (en) Method and equipment for classifying user information and acquiring user grouping information
CN111612502A (en) Resource allocation method and device based on activity task and electronic equipment
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN104376452A (en) System and method for managing payment success rate on basis of international card payment channel
CN112381453A (en) Information processing method, information processing apparatus, electronic device, and medium
US20220198579A1 (en) System and method for dimensionality reduction of vendor co-occurrence observations for improved transaction categorization
CN110602215B (en) Resource processing method based on alliance block chain and alliance block chain system
CN111709769B (en) Data processing method and device
CN112633954A (en) Rights and interests processing method and device based on block chain
CN105512208B (en) Information publishing method, device and system
CN113362061A (en) Method, system, device, storage medium and electronic equipment for responding to user request
CN111210248B (en) Resource configuration data acquisition method and device, electronic equipment and storage medium
CN115481831A (en) Virtual resource allocation method, device, equipment and computer readable storage medium
CN110751455B (en) Method and device for processing joint service
WO2017012427A1 (en) Method for managing merchant by means of merchant shopping list printer and shopping list printer
CN112346628A (en) Special shared resource certificate management method, system and electronic equipment
US20200242690A1 (en) Digital commodity exchange system and method
US20200265962A1 (en) Objects of things system
CN113643014B (en) Block chain-based transaction management method, apparatus, device, medium, and program

Legal Events

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