CN110910162A - Virtual resource data processing method and device, computer equipment and storage medium - Google Patents

Virtual resource data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110910162A
CN110910162A CN201910978903.XA CN201910978903A CN110910162A CN 110910162 A CN110910162 A CN 110910162A CN 201910978903 A CN201910978903 A CN 201910978903A CN 110910162 A CN110910162 A CN 110910162A
Authority
CN
China
Prior art keywords
virtual resource
activity
virtual
current
transaction
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
CN201910978903.XA
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.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing 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 Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN201910978903.XA priority Critical patent/CN110910162A/en
Publication of CN110910162A publication Critical patent/CN110910162A/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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • 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]

Abstract

The application relates to a virtual resource data processing method, a virtual resource data processing device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information, determining current virtual resource activities according to activity recommendation priorities of the virtual resource activities, obtaining target virtual resources corresponding to the current virtual resource activities, calculating virtual resource preference data corresponding to the target virtual resources under the current virtual resource activities, calculating virtual resource allocation data corresponding to the target virtual resources, re-determining the current virtual resource activities, returning to the steps until the virtual resource allocation data corresponding to the virtual resource activities are obtained, and determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities. By adopting the method, the flexibility of virtual resource data processing can be improved.

Description

Virtual resource data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing virtual resource data, a computer device, and a storage medium.
Background
With the development of computer technology, mobile electronic commerce is a new direction for the development of electronic commerce, and mobile electronic commerce usually organizes virtual resource activities to attract consumers, wherein the processing logic corresponding to different virtual resource activities is different, and the corresponding execution sequence exists between each virtual resource activity. However, before the product is on line, the execution sequence between each virtual resource activity needs to be written to death, and when one of the virtual resource activities needs to adjust the processing logic or one virtual resource activity is newly added to adjust the execution sequence between each virtual resource activity, the current method needs to be redeveloped, the workload is increased, and the flexibility is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a virtual resource data processing method, device, computer device, and storage medium capable of improving flexibility of virtual resource data processing.
A method of virtual resource data processing, the method comprising:
acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
acquiring an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority;
determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource;
calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data;
determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained;
and determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
A virtual resource data processing apparatus, the apparatus comprising:
the virtual resource acquisition module is used for acquiring virtual resources, and the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
the activity recommendation priority acquisition module is used for acquiring activity recommendation priorities corresponding to the virtual resource activities and determining the current virtual resource activities from the virtual resource activities according to the activity recommendation priorities;
the target virtual resource determining module is used for determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources and calculating virtual resource discount data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource;
the virtual resource allocation data calculation module is used for calculating virtual resource allocation data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource discount data;
the virtual resource allocation data calculation module is also used for determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource allocation data corresponding to the virtual resource activity is obtained;
and the virtual resource transaction preference data determining module is used for determining virtual resource transaction preference data corresponding to the virtual resources according to the corresponding virtual resource distribution data under the virtual resource activity.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
acquiring an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority;
determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource;
calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data;
determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained;
and determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
acquiring an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority;
determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource;
calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data;
determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained;
and determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
The virtual resource data processing method, the virtual resource data processing device, the computer equipment and the storage medium acquire virtual resources, virtual resource activities and virtual resource transactions corresponding to the virtual resources exist, current virtual resource activities are determined from the virtual resource activities according to activity recommendation priorities corresponding to the virtual resource activities, target virtual resources corresponding to the current virtual resource activities are acquired, virtual resource preference data corresponding to the target virtual resources under the current virtual resource activities are obtained through calculation according to virtual resource transaction information corresponding to the target virtual resources, virtual resource distribution data corresponding to the target virtual resources are obtained through calculation according to the virtual resource preference data corresponding to the target virtual resources and the virtual resource transaction information, the current virtual resource activities are determined again until virtual resource distribution data corresponding to the virtual resource activities are obtained, and then virtual resource distribution data corresponding to the virtual resources are determined under the virtual resource activities are obtained Resource transaction preference data.
By the method, when one virtual resource activity needs to adjust the processing logic or one virtual resource activity is newly added so as to adjust the execution sequence among the virtual resource activities, the current virtual resource activity is determined directly according to the activity recommendation priority of the virtual resource activity without redevelopment, and then the resource allocation data corresponding to the current virtual resource activity is calculated, so that the flexibility of virtual resource data processing and the efficiency of virtual resource data processing are improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for processing virtual resource data in one embodiment;
FIG. 2 is a flowchart illustrating a method for processing virtual resource data according to an embodiment;
FIG. 3 is a flowchart illustrating a method for processing virtual resource data according to another embodiment;
FIG. 4 is a flowchart illustrating the current virtual resource activity determination step in one embodiment;
FIG. 5 is a flowchart illustrating the virtual resource offer data calculation step in one embodiment;
FIG. 6 is a flowchart illustrating the virtual resource allocation data calculation step in one embodiment;
FIG. 7 is a flowchart illustrating the virtual resource transaction offer data determination step in one embodiment;
FIG. 8 is a block diagram showing the structure of a virtual resource data processing apparatus according to one embodiment;
FIG. 9 is a block diagram showing an example of a virtual resource data processing apparatus;
FIG. 10 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The virtual resource data processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
Specifically, the terminal 102 sends a virtual resource acquisition request to the server 104, and the server 104 returns a virtual resource to the terminal 102 according to the virtual resource acquisition request, where the number of the virtual resource may be at least one, and the virtual resource has corresponding virtual resource activity and virtual resource transaction information. After receiving the virtual resource, the terminal 102 obtains an activity recommendation priority corresponding to the virtual resource activity, determines a current virtual resource activity from the virtual resource activity according to the activity recommendation priority, determines a target virtual resource corresponding to the current virtual resource activity from the virtual resource, calculates virtual resource preference data corresponding to the target virtual resource in the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource, calculates virtual resource allocation data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preference data, determines a next virtual resource activity according to the activity recommendation priority, takes the next virtual resource activity as the current virtual resource activity, and returns to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resource, and determining virtual resource transaction preferential data corresponding to the virtual resources according to the virtual resource distribution data corresponding to the virtual resource activities until the virtual resource distribution data corresponding to the virtual resource activities are obtained.
In an embodiment, as shown in fig. 2, a virtual resource data processing method is provided, which is described by taking the method as an example applied to the terminal or the server in fig. 1, and includes the following steps:
step 202, obtaining virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information.
The virtual resource is a virtual resource involved in a service, and the service may be, for example, a sales promotion item of a commodity purchase platform. The virtual resource may be a virtual value corresponding to a full or a full sale, a virtual coupon corresponding to a coupon return, a virtual value corresponding to a direct sale, etc. in the promotional item, where the number of virtual resources may be at least one. The virtual resource exists corresponding virtual resource activity, the virtual resource activity can be any activity related to the virtual resource, for example, the virtual resource activity can be a sales promotion activity of a commodity purchasing platform, and the sales promotion activity is that a marketer transmits various information about the product to a consumer to persuade or attract the consumer to purchase the product so as to achieve the purpose of expanding the sales volume. Wherein a virtual resource may be the presence of at least one virtual resource activity.
The virtual resource may also have corresponding virtual resource transaction information, where the virtual resource transaction information may be transaction information related to the virtual resource, that is, the virtual resource transaction information may be related information generated when a transaction occurs on the virtual resource. The virtual resource transaction information includes, but is not limited to, a virtual resource transaction amount, a virtual resource transaction value, and the like, and the virtual transaction value may be a transaction value corresponding to a single virtual resource.
Specifically, the terminal is used as an execution main body, an application related to virtual resource transaction is installed on the terminal, and the virtual resource acquisition request can be generated through triggering of the application, specifically, through triggering of a click operation or a voice operation of a display interface acting on the application, the virtual resource acquisition request can be generated. In one embodiment, when the server is used as the execution subject, after the terminal triggers generation of the virtual resource acquisition request, the virtual resource acquisition request is sent to the server through network connection. Or the server may directly obtain the virtual resource obtaining request without obtaining the virtual resource obtaining request through the terminal, for example, triggering the virtual resource obtaining request through a timing event.
And 204, acquiring an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority.
The virtual resources have corresponding virtual resource activities, the virtual resources can have at least one virtual resource activity, the virtual resource activities have corresponding activity recommendation priorities, the activity recommendation priority is an agreement among the virtual resource activities, the higher the activity recommendation priority is, the earlier the execution sequence is, and conversely, the lower the activity recommendation priority is, the later the execution sequence is. That is, the virtual resource activities with high activity recommendation priorities are processed with priority, and the corresponding virtual resource activities are processed in the order of the activity recommendation priorities. The activity recommendation priority corresponding to the virtual resource activity may be preset, and specifically may be determined according to a virtual resource activity feature set corresponding to the virtual resource activity, and the virtual resource activity feature set may be determined according to a virtual resource attribute corresponding to the virtual resource activity. For example, an activity with a high virtual resource activity recommendation priority is high, whereas an activity with a low virtual resource activity recommendation priority is low.
The current virtual resource activity is determined from the virtual resource activity corresponding to the virtual resource. Specifically, the current virtual resource activity may be determined according to an activity recommendation priority corresponding to the virtual resource activity. The determination mode may be self-defined, where the self-definition may be to perform ascending arrangement on the activity recommendation priorities corresponding to the virtual resource activities, and the virtual resource activity with the highest activity recommendation priority may be used as the current virtual resource activity. The self-defining can also be that virtual resource activities meeting preset conditions are screened out from all the virtual resource activities according to the preset conditions, and the screened virtual resource activities meeting the preset conditions are taken as the current virtual resource activities. The preset conditions can be customized, and the customization can be determined according to the actual service application scene or the actual service product requirement. For example, the preset condition may be determined according to a virtual resource attribute corresponding to each virtual resource activity.
Step 206, determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource discount data corresponding to the target virtual resource in the current virtual resource activity according to the virtual resource transaction information corresponding to the target virtual resource.
The virtual resource has corresponding virtual resource activity and virtual resource transaction information, and the same virtual resource activity can correspond to different virtual resources, so that after the current virtual resource activity is determined from the virtual resource activity, a target virtual resource corresponding to the current virtual resource activity is obtained, wherein the target virtual resource refers to the corresponding virtual resource activity including the virtual resource of the current virtual resource activity. Specifically, all virtual resource activities corresponding to each virtual resource are obtained, and the virtual resource including the current virtual resource activity in the virtual resource activities can be used as a target virtual resource, that is, the virtual resource activity corresponding to the target virtual resource includes the current virtual resource activity.
The virtual resource activities are all activities related to the virtual resources, and may be virtual resource preferential activities, or virtual resource transfer activities, and the like, while different virtual resource activities may calculate corresponding virtual resource preferential data, and the virtual resource preferential data is a value that the target virtual resource can give a preferential benefit under the current virtual resource activity, for example, how much money the target virtual resource can give a preferential benefit under the current virtual resource activity. Specifically, virtual resource preference data corresponding to the target virtual resource under the current virtual resource activity is obtained by calculation according to the virtual resource transaction information corresponding to the target virtual resource.
In one embodiment, the customization may be to acquire current priority privilege data corresponding to a current virtual resource activity, calculate a total virtual resource transaction value according to virtual resource transaction information and the current priority privilege data, and acquire a preset virtual resource transaction condition corresponding to the current virtual resource activity, where the preset virtual resource transaction condition may be a threshold of the current virtual resource activity, and acquire the virtual resource privilege data corresponding to the virtual resource transaction condition when the total virtual resource transaction value of the current virtual resource activity satisfies the virtual resource transaction condition. For example, the total virtual resource transaction value is calculated to be 100, and the preset virtual resource transaction conditions are: when the transaction total number of the virtual resources meets the preset virtual resource transaction condition, acquiring virtual resource preferential data corresponding to the virtual resource transaction condition as 10 yuan if the transaction total number of the virtual resources is 100 minus 10 yuan.
For another example, the total virtual resource transaction value is calculated to be 88 yuan, and the preset virtual resource transaction conditions are: and if the total value of the virtual resource transaction meets the preset virtual resource transaction condition, acquiring the virtual resource preferential data corresponding to the virtual resource transaction condition as 88 x 0.5-44 yuan.
In another embodiment, the calculation mode of the virtual resource benefit data may be defined by obtaining virtual resource transaction information corresponding to the target virtual resource, and calculating to obtain the virtual resource benefit data according to the virtual resource transaction amount and the virtual resource transaction value in the virtual resource transaction information, for example, obtaining a virtual resource initial transaction value corresponding to the target virtual resource, for example, obtaining a cost price corresponding to the target virtual resource as the virtual resource initial transaction data, and calculating to obtain the virtual resource benefit data according to the virtual resource initial transaction value, the virtual resource transaction amount, and the virtual resource transaction value.
And 208, calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data.
The virtual resource allocation data is sub-virtual resource preferential data corresponding to the virtual resource preferential data allocated to the target virtual resource, that is, the virtual resource preferential data needs to be allocated to the target virtual resource, and different sub-virtual preferential data, that is, virtual resource allocation data, are obtained by allocating different target virtual resources. Specifically, virtual resource allocation data corresponding to the target virtual resource may be obtained through calculation according to virtual resource transaction information and virtual resource preference data corresponding to the target virtual resource, and the calculation mode may be customized.
For example, the target virtual resources are A, B and C, the virtual resource transaction information is the virtual resource transaction amount and the virtual resource transaction numerical value, and the current priority privilege data is 0, the calculation process of the virtual resource allocation data is as follows:
the virtual resource allocation data corresponding to a is virtual resource preferential data 10 yuan (virtual resource transaction value 1 yuan virtual resource transaction quantity 2-current priority preferential data 0 yuan)/(virtual resource transaction total value 100) is 0.2 yuan.
The virtual resource allocation data corresponding to B is virtual resource offer data 10 yuan (virtual resource transaction number 2 yuan x virtual resource transaction number 1-current priority offer data 0 yuan)/(virtual resource transaction total number 100 yuan) is 0.2 yuan.
The virtual resource allocation data corresponding to C is the total virtual resource allocation data corresponding to virtual resource offer data 10-ary- (a and B) 0.4-ary or 9.6-ary.
In another embodiment, the calculation mode of the virtual resource allocation data may also be customized by calculating a ratio of the virtual resource transaction information corresponding to each target virtual resource to the total value of the virtual resource transaction, and calculating the virtual resource allocation data corresponding to each target virtual resource according to the ratio and the virtual resource preference data.
And step 210, determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource allocation data corresponding to the virtual resource activity is obtained.
Specifically, after obtaining the virtual resource allocation data corresponding to the current virtual resource activity, when the virtual resource activity corresponding to the virtual resource is multiple, the next virtual resource activity needs to be determined from the virtual resource activities, which may specifically be determining the next virtual resource activity according to the activity recommendation priority corresponding to the virtual resource activity, for example, taking the virtual resource activity whose activity recommendation priority is next to the activity recommendation priority corresponding to the current virtual resource activity as the next virtual resource activity, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until obtaining the virtual resource allocation data corresponding to the virtual resource under each virtual resource activity.
Step 212, determining virtual resource transaction preference data corresponding to the virtual resource according to the virtual resource allocation data corresponding to the virtual resource activity.
The virtual resource transaction preference data is virtual resource transaction total preference data corresponding to the virtual resource, for example, how much money the virtual resource is in total preference under the activity of the virtual resource. The virtual resource transaction preference data corresponding to the virtual resource may be determined according to the virtual resource allocation data corresponding to the virtual resource activity. In an embodiment, the virtual resource transaction offer data may be virtual resource allocation data corresponding to the obtained virtual resource under each virtual resource activity, and the virtual resource allocation data is counted to obtain virtual resource transaction offer data corresponding to the obtained virtual resource.
For example, the virtual resources are: A. b, C, the virtual resource trade preferential data corresponding to the virtual resource are respectively as follows:
the virtual resource allocation data corresponding to the virtual resource A participating in the virtual resource activity a is 0.2 yuan, the virtual resource allocation data corresponding to the virtual resource activity b participating in the virtual resource activity b is 1.1 yuan, and the virtual resource transaction preference data corresponding to the virtual resource A is 1.3 yuan.
The virtual resource allocation data corresponding to the virtual resource activity a participated in by the virtual resource B is 0.2 yuan, the virtual resource allocation data corresponding to the virtual resource activity c participated in is 0.9 yuan, the virtual resource allocation data corresponding to the virtual resource activity B participated in is 0.9 yuan, and the virtual resource transaction preference data corresponding to the virtual resource B is 2 yuan.
The virtual resource allocation data corresponding to the virtual resource C participating in the virtual resource activity a is 9.6 yuan, the virtual resource allocation data corresponding to the virtual resource activity C participating in the virtual resource activity C is 43.2 yuan, and the virtual resource transaction preference data corresponding to the virtual resource C is 52.8 yuan.
In the virtual resource data processing method, the virtual resources are obtained, the virtual resources have corresponding virtual resource activities and virtual resource transactions, determining the current virtual resource activity from the virtual resource activities according to the activity recommendation priority corresponding to the virtual resource activity, acquiring the target virtual resource corresponding to the current virtual resource activity, calculating to obtain virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to the virtual resource transaction information corresponding to the target virtual resource, further calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource preferential data corresponding to the target virtual resource and the virtual resource transaction information, re-determining the current virtual resource activity until obtaining the virtual resource distribution data corresponding to the virtual resource activity, and further obtaining virtual resource distribution data corresponding to the virtual resource activity to determine virtual resource transaction preferential data corresponding to the virtual resource.
By the method, when one virtual resource activity needs to adjust the processing logic or one virtual resource activity is newly added so as to adjust the execution sequence among the virtual resource activities, the current virtual resource activity is determined directly according to the activity recommendation priority of the virtual resource activity without redevelopment, and then the resource allocation data corresponding to the current virtual resource activity is calculated, so that the flexibility of virtual resource data processing and the efficiency of virtual resource data processing are improved.
In one embodiment, as shown in fig. 3, the virtual resource data processing method further includes:
step 302, a plurality of virtual resource activities are obtained, and each virtual resource activity has a corresponding virtual resource attribute.
The virtual resource attribute is information related to a virtual resource activity, and may be, but is not limited to, activity organizer information corresponding to the virtual resource activity, virtual resource transfer type information corresponding to the virtual resource activity, virtual resource activity type information corresponding to the virtual resource activity, and delivery manner information of an entity resource corresponding to the virtual resource activity.
The activity organizer information corresponding to the virtual resource activity may be a name of an activity organizer corresponding to the virtual resource activity, such as a suning self-service activity, a store-C business activity, and a suning self-service + store-C business activity. The virtual resource transfer type information corresponding to the virtual resource activity may be a virtual resource transfer type corresponding to the virtual resource activity, where the virtual resource transfer type is an incentive form of the virtual resource activity, such as a virtual resource value directly dropping, a coupon, a gift, and the like. The virtual resource activity type information corresponding to the virtual resource activity may be a virtual resource activity type, such as a subscription level, a single-level, a package-level activity, and the like. The distribution manner of the entity resource corresponding to the virtual resource activity may be a distribution manner of the virtual resource corresponding to the virtual resource activity, such as distribution, self-service, and is not limited.
Specifically, a plurality of virtual resource activities are acquired, and each virtual resource activity has a corresponding virtual resource attribute. The virtual resource activities can be obtained by crawling relevant data from each large commodity purchasing platform or determined by combining actual business needs of the platform.
And 304, performing feature extraction on the corresponding virtual resource activities according to the virtual resource attributes to obtain a virtual resource activity feature set corresponding to each virtual resource activity.
The virtual resource activity feature set is a set consisting of virtual resource activity features corresponding to virtual resource activities, the virtual resource activity features are obtained by extracting features of the corresponding virtual resource activities according to virtual resource attributes, and the corresponding virtual resource activity features can be extracted through different sub-attribute information in the virtual resource attributes. The virtual resource attribute comprises a plurality of sub-attribute information.
For example, the virtual resource attribute of the virtual resource activity a includes a plurality of pieces of sub-attribute information, which are respectively activity organizer information, virtual resource transfer type information, virtual resource activity type information, and a distribution manner of an entity resource corresponding to a virtual resource, and the virtual resource activity organizer characteristic corresponding to the activity organizer information, the virtual resource transfer type characteristic corresponding to the virtual resource transfer type information, the virtual resource activity type characteristic corresponding to the virtual resource activity type information, and the distribution manner characteristic corresponding to the distribution manner of the entity resource corresponding to the virtual resource can be obtained by extracting the virtual resource attribute of the virtual resource activity a, respectively.
In one embodiment, the virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature, and a distribution manner feature of an entity resource corresponding to a virtual resource activity.
The virtual resource activity organizer characteristics are obtained by performing characteristic extraction on activity organizer information corresponding to virtual resource activities, the virtual resource transfer type characteristics are obtained by performing characteristic extraction on virtual resource transfer type information corresponding to the virtual resource activities, the virtual resource activity type characteristics are obtained by performing characteristic extraction on virtual resource activity type information corresponding to the virtual resource activities, and the distribution mode characteristics of entity resources corresponding to the virtual resource activities are obtained by performing characteristic extraction on distribution modes of the entity resources corresponding to the virtual resource activities. The virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature and a distribution mode feature of an entity resource corresponding to the virtual resource activity.
And step 306, determining activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity feature set.
The activity recommendation priority corresponding to each virtual resource activity needs to be preset, and specifically, the activity recommendation priority may be determined according to a virtual resource activity feature set corresponding to each virtual resource activity. The activity recommendation priority determined according to the virtual resource activity feature set can be customized, wherein the customization can be to obtain a target virtual resource activity feature in the virtual resource activity feature set and determine a corresponding activity recommendation priority according to the target virtual resource activity feature, and the target virtual resource activity feature can be determined according to an actual service requirement or an actual service scene. For example, the virtual resource activity characteristic capable of representing the activity level of the virtual resource is used as the target virtual resource activity characteristic, the activity recommendation priority level of the virtual resource with high activity level is high, and conversely, the activity recommendation priority level of the virtual resource with low activity level is low.
In an embodiment, determining the activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity feature set may be calculating to obtain a comprehensive value according to each virtual resource activity feature in the virtual resource activity feature set, and determining the corresponding activity recommendation priority according to the comprehensive value. Wherein, the calculation of the integrated value can be mean value calculation, weighted summation, etc. And determining the corresponding activity recommendation priority according to the integrated value may be that the higher the integrated value is, the higher the activity recommendation priority is, and otherwise, the lower the activity recommendation priority is.
In one embodiment, as shown in fig. 4, the number of virtual resource activities is multiple, and determining the current virtual resource activity from the virtual resource activities according to the activity recommendation priority includes:
step 402, arranging the activity recommendation priorities corresponding to the virtual resource activities in an ascending order to obtain the arranged virtual resource activities.
And step 404, taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity according to the sequence corresponding to each arranged virtual resource activity.
When the number of the virtual resource activities is multiple, because the virtual resource activities with higher activity recommendation priorities have a greater attraction to the user, determining the current virtual resource activity from each virtual resource activity according to the activity recommendation priorities may specifically be that the activity recommendation priorities corresponding to each virtual resource activity are sequentially arranged in an ascending order, where the ascending order is that the activity recommendation priorities are sequentially arranged from high to low, so as to obtain each arranged virtual resource activity. Then, according to the sequence corresponding to each arranged virtual resource activity, the virtual resource activity with the highest activity recommendation priority is taken as the current virtual resource activity, namely the virtual resource activity with the highest activity recommendation priority is processed firstly.
For example, the activity recommendation priorities corresponding to the virtual resource activities A, B, C and D are 4, 2, 1, and 3, respectively, and the smaller the numerical value corresponding to the activity recommendation priority is, the higher the activity recommendation priority is, the activity recommendation priorities corresponding to the virtual resource activities are sorted in an ascending order to obtain the sorted virtual resource activities: c → B → D → A. And then according to the sequence corresponding to each arranged virtual resource activity, taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity, namely taking the virtual resource activity C as the current virtual resource activity.
In one embodiment, as shown in fig. 5, the determining, from the virtual resources, a target virtual resource corresponding to a current virtual resource activity, and calculating, according to virtual resource transaction information corresponding to the target virtual resource, virtual resource offer data corresponding to the target virtual resource in the current virtual resource activity includes:
step 502, obtaining a first virtual resource activity corresponding to each virtual resource.
Step 504, determining the virtual resource including the current virtual resource activity from the first virtual resource activities corresponding to the virtual resources as a target virtual resource.
When the number of the virtual resources is multiple, each virtual resource has at least one corresponding first virtual resource activity, specifically, the first virtual resource activity corresponding to each virtual resource is obtained, and the virtual resource in the first virtual resource activity, which includes the current virtual resource activity, is determined as the target virtual resource. That is, the virtual resource activity corresponding to the target virtual resource includes the current virtual resource activity. For example, the virtual resources are A, B and C, the first virtual resource activity corresponding to the virtual resource a is virtual resource activity a and virtual resource activity C, the first virtual resource activity corresponding to the virtual resource B is virtual resource activity C and virtual resource activity B, the first virtual resource activity corresponding to the virtual resource C is virtual resource activity a and virtual resource activity B, and the current virtual resource activity is C, the virtual resource in the first virtual resource activity including the current virtual resource activity C is determined as the target virtual resource, that is, the target virtual resource is virtual resource a and virtual resource B.
Step 506, obtaining the current priority privilege data corresponding to the current virtual resource activity, where the current priority privilege data is the virtual resource allocation data corresponding to the virtual resource activity whose activity recommendation priority is greater than the current activity recommendation priority.
The current priority privilege data is priority privilege data corresponding to a current virtual resource activity, and the current priority privilege data may be virtual resource allocation data corresponding to a virtual resource activity with an activity recommendation priority greater than the current activity recommendation priority, that is, virtual resource privilege data with a low activity recommendation priority is controlled by virtual resource allocation data with a high activity recommendation priority. The current priority privilege data is virtual resource allocation data corresponding to a virtual resource activity with an activity recommendation priority higher than the current activity recommendation priority, that is, for example, the current virtual resource activity b, and the activity recommendation priorities of the virtual resource activities are ranked as follows: and a > b > c, using the virtual resource allocation data corresponding to the virtual resource activity a as the current priority preferential data. In one embodiment, when there are multiple virtual resources, the current priority privilege data corresponding to the current virtual resource activity in each virtual resource is virtual resource allocation data corresponding to a virtual resource activity whose activity recommendation priority is greater than the current activity recommendation priority.
For example, the virtual resources are a and B, the virtual resource activity a and the virtual resource activity c corresponding to the virtual resource a, the virtual resource activity B and the virtual resource activity c corresponding to the virtual resource B, the activity recommendation priority ordering among the virtual resource activities is a > B > c, and the current virtual resource activity is the virtual resource activity c, then the current priority preference data corresponding to the current virtual resource activity c in the virtual resource a is the virtual resource allocation data corresponding to the virtual resource activity a, and the current priority preference data corresponding to the current virtual resource activity c in the virtual resource B is the virtual resource allocation data corresponding to the virtual resource activity a.
And step 508, calculating to obtain a total virtual resource transaction value according to the virtual resource transaction information corresponding to the target virtual resource and the current priority privilege data.
Specifically, after obtaining the current priority privilege data corresponding to the current virtual resource activity, the virtual resource transaction information corresponding to the target virtual resource is obtained, and the total virtual resource transaction value can be obtained through calculation according to the virtual resource transaction information corresponding to the target virtual resource and the current priority privilege data. The calculation mode of the total virtual resource transaction value may specifically be to calculate the total virtual resource transaction value according to the virtual resource transaction amount, the virtual resource transaction value and the current priority privilege data in the virtual resource transaction information.
For example, the target virtual resources are A, B and C, the virtual resource transaction information is the virtual resource transaction amount and the virtual resource transaction value, and the current priority privilege data is 0, then the calculation process of the total virtual resource transaction value is as follows:
the total virtual resource transaction value corresponding to the target virtual resource A, B, C under the current virtual resource activity is (virtual resource transaction value 1 element corresponding to the target virtual resource a × virtual resource transaction number 2-current priority offer data 0 element corresponding to the target virtual resource a) + (virtual resource transaction value 2 element corresponding to the target virtual resource B × virtual resource transaction number 1-current priority offer data 0 element corresponding to the target virtual resource B) + (virtual resource transaction value 96 element corresponding to the target virtual resource C × virtual resource transaction number 1-current priority offer data 0 element corresponding to the target virtual resource C) ═ 100 elements.
Step 510, obtaining a preset virtual resource transaction condition corresponding to the current virtual resource activity, and determining virtual resource preference data according to the total virtual resource transaction value and the preset virtual resource transaction condition.
Specifically, after the total virtual resource transaction value is obtained through calculation, a preset virtual resource transaction condition corresponding to the current virtual resource activity is obtained, where the preset virtual resource transaction condition may be a threshold of the current virtual resource activity, and when the total virtual resource transaction value of the current virtual resource activity meets the virtual resource transaction condition, virtual resource discount data corresponding to the virtual resource transaction condition is obtained. For example, the total virtual resource transaction value is calculated to be 100, and the preset virtual resource transaction conditions are: when the transaction total number of the virtual resources meets the preset virtual resource transaction condition, acquiring virtual resource preferential data corresponding to the virtual resource transaction condition as 10 yuan if the transaction total number of the virtual resources is 100 minus 10 yuan.
For another example, the total virtual resource transaction value is calculated to be 88 yuan, and the preset virtual resource transaction conditions are: and if the total value of the virtual resource transaction meets the preset virtual resource transaction condition, acquiring the virtual resource preferential data corresponding to the virtual resource transaction condition as 88 x 0.5-44 yuan.
Or for another example, if the total virtual resource transaction value is calculated to be 3.6 yuan, and the preset virtual resource transaction condition is full 3 yuan minus 2 yuan, then obtaining the virtual resource discount data corresponding to the virtual resource transaction condition: (3.6/3 integer) × 2 ═ 2-membered.
In an embodiment, as shown in fig. 6, the obtaining of virtual resource allocation data corresponding to a target virtual resource by calculating according to virtual resource transaction information and virtual resource offer data corresponding to the target virtual resource includes:
step 602, calculating to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data and the virtual resource transaction total value.
And step 604, calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource preferential data.
Specifically, virtual resource transaction information, current priority privilege data and a total virtual resource transaction value corresponding to the target virtual resource are obtained, virtual resource intermediate transaction data can be obtained through calculation according to the virtual resource transaction information, the current priority privilege data and the total virtual resource transaction value corresponding to the target virtual resource, and then virtual resource distribution data corresponding to the target virtual resource are obtained through calculation according to the virtual resource intermediate transaction data and the virtual resource privilege data.
For example, the target virtual resources are A, B and C, the virtual resource transaction information is the virtual resource transaction amount and the virtual resource transaction numerical value, and the current priority privilege data is 0, the calculation process of the virtual resource allocation data is as follows:
the virtual resource allocation data corresponding to the target virtual resource a is virtual resource privilege data 10 yuan (virtual resource transaction value 1 yuan virtual resource transaction number 2-current priority privilege data 0 yuan)/(virtual resource transaction total value 100) is 0.2 yuan. And (virtual resource transaction number 1 element x virtual resource transaction quantity 2-current priority preferential data 0 element)/(virtual resource transaction total number 100) is virtual resource intermediate transaction data corresponding to the target virtual resource A.
The virtual resource allocation data corresponding to the target virtual resource B is 10 yuan of virtual resource discount data (virtual resource transaction number 2 yuan of virtual resource transaction number 1-current priority discount data 0 yuan)/(total virtual resource transaction number 100 yuan) is 0.2 yuan. And (virtual resource transaction number 2 Yuan. virtual resource transaction quantity 1-current priority preferential data 0 Yuan)/(virtual resource transaction total number 100 Yuan) is virtual resource intermediate transaction data corresponding to the target virtual resource B.
The virtual resource allocation data corresponding to the target virtual resource C is the total virtual resource allocation data corresponding to the virtual resource preference data 10 yuan- (a and B) is 0.4 yuan or 9.6 yuan. Or the virtual resource allocation data corresponding to C may be 10 bits of virtual resource offer data (a virtual resource transaction number of 96 bits of virtual resource transaction number 1-current priority offer data 0 bits)/(a total virtual resource transaction number of 100 bits) ═ 9.6 bits, where (the virtual resource transaction number of 96 bits of virtual resource transaction number 1-current priority offer data 0 bits)/(the total virtual resource transaction number of 100 bits) is the virtual resource intermediate transaction data corresponding to the target virtual resource C.
In one embodiment, as shown in fig. 7, the number of the virtual resource activities is multiple, and determining the virtual resource transaction preference data corresponding to the virtual resource according to the corresponding virtual resource allocation data in the virtual resource activities includes:
step 702, obtaining virtual resource allocation data corresponding to the virtual resources under each virtual resource activity.
Step 704, counting the corresponding virtual resource allocation data under each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resource.
When the number of the virtual resource activities corresponding to the virtual resources is multiple, virtual resource allocation data corresponding to the virtual resources under each virtual resource activity is obtained, and the virtual resource allocation data corresponding to the virtual resources under each virtual resource activity is counted to obtain virtual resource transaction preference data corresponding to the virtual resources. The statistics may be summing virtual resource allocation data under each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resource.
For example, the virtual resources are: A. b, C, the statistical process of virtual resource transaction preference data corresponding to virtual resource A and virtual resource A, virtual resource B and virtual resource C corresponding to virtual resource B, virtual resource A and virtual resource C corresponding to virtual resource C, and virtual resource transaction preference data corresponding to virtual resource is as follows:
the virtual resource allocation data corresponding to the virtual resource A participating in the virtual resource activity a is 0.2 yuan, the virtual resource allocation data corresponding to the virtual resource activity b participating in the virtual resource activity b is 1.1 yuan, and the virtual resource transaction preference data corresponding to the virtual resource A is 1.3 yuan.
The virtual resource allocation data corresponding to the virtual resource activity a participated in by the virtual resource B is 0.2 yuan, the virtual resource allocation data corresponding to the virtual resource activity c participated in is 0.9 yuan, the virtual resource allocation data corresponding to the virtual resource activity B participated in is 0.9 yuan, and the virtual resource transaction preference data corresponding to the virtual resource B is 2 yuan.
The virtual resource allocation data corresponding to the virtual resource C participating in the virtual resource activity a is 9.6 yuan, the virtual resource allocation data corresponding to the virtual resource activity C participating in the virtual resource activity C is 43.2 yuan, and the virtual resource transaction preference data corresponding to the virtual resource C is 52.8 yuan.
In a specific embodiment, a virtual resource data processing method is provided, which specifically includes the following steps:
1. the method comprises the steps of obtaining a plurality of virtual resource activities, wherein each virtual resource activity has a corresponding virtual resource attribute.
2. And performing feature extraction on the corresponding virtual resource activities according to the virtual resource attributes to obtain virtual resource activity feature sets corresponding to the virtual resource activities, wherein the virtual resource activity feature sets are at least one of virtual resource activity organizer features, virtual resource transfer type features, virtual resource activity type features and distribution mode features of entity resources corresponding to the virtual resource activities.
3. And determining the activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity feature set.
4. And acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information.
5. And obtaining an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority.
And 5-1, when the number of the virtual resource activities is multiple, arranging the activity recommendation priorities corresponding to the virtual resource activities in an ascending order to obtain the arranged virtual resource activities.
And 5-2, according to the sequence corresponding to each arranged virtual resource activity, taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity.
6. And determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to the virtual resource transaction information corresponding to the target virtual resource.
6-1, when the number of the virtual resources is multiple, acquiring first virtual resource activities corresponding to the virtual resources.
6-2, determining the virtual resources including the current virtual resource activity from the first virtual resource activities corresponding to the virtual resources as target virtual resources.
And 6-3, acquiring current priority preferential data corresponding to the current virtual resource activity, wherein the current priority preferential data are virtual resource distribution data corresponding to the virtual resource activity with the activity recommendation priority being greater than the current activity recommendation priority.
And 6-4, calculating to obtain a total virtual resource transaction value according to the virtual resource transaction information corresponding to the target virtual resource and the current priority privilege data.
And 6-5, acquiring preset virtual resource transaction conditions corresponding to the current virtual resource activities, and determining virtual resource preferential data according to the total virtual resource transaction value and the preset virtual resource transaction conditions.
7. And calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data.
7-1, calculating to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data and the virtual resource transaction total value.
7-2, calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource preferential data.
8. And determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained.
9. And determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
And 9-1, acquiring virtual resource allocation data corresponding to the virtual resources under each virtual resource activity.
And 9-2, counting the corresponding virtual resource distribution data under each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resources.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a virtual resource data processing apparatus 800 comprising: a virtual resource obtaining module 802, an activity recommendation priority obtaining module 804, a target virtual resource determining module 806, a virtual resource allocation data calculating module 808, and a virtual resource transaction preference data determining module 810, wherein:
the virtual resource obtaining module 802 is configured to obtain a virtual resource, where the virtual resource has corresponding virtual resource activity and virtual resource transaction information.
An activity recommendation priority obtaining module 804, configured to obtain an activity recommendation priority corresponding to the virtual resource activity, and determine the current virtual resource activity from the virtual resource activity according to the activity recommendation priority.
A target virtual resource determining module 806, configured to determine a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculate, according to the virtual resource transaction information corresponding to the target virtual resource, to obtain virtual resource discount data corresponding to the target virtual resource in the current virtual resource activity.
And the virtual resource allocation data calculation module 808 is configured to calculate, according to the virtual resource transaction information and the virtual resource discount data corresponding to the target virtual resource, virtual resource allocation data corresponding to the target virtual resource.
The virtual resource allocation data calculation module 808 is further configured to determine a next virtual resource activity according to the activity recommendation priority, take the next virtual resource activity as the current virtual resource activity, and return to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource allocation data corresponding to the virtual resource activity is obtained.
The virtual resource transaction offer data determining module 810 is configured to determine virtual resource transaction offer data corresponding to a virtual resource according to corresponding virtual resource allocation data in a virtual resource activity.
In one embodiment, as shown in fig. 9, the virtual resource data processing apparatus 800 further includes:
a virtual resource activity obtaining module 902, configured to obtain multiple virtual resource activities, where each virtual resource activity has a corresponding virtual resource attribute.
The virtual resource activity feature extraction module 904 is configured to perform feature extraction on the corresponding virtual resource activity according to the virtual resource attribute, so as to obtain a virtual resource activity feature set corresponding to each virtual resource activity.
An activity recommendation priority determining module 906, configured to determine, according to the virtual resource activity feature set, an activity recommendation priority corresponding to the corresponding virtual resource activity.
In one embodiment, the virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature, and a distribution manner feature of an entity resource corresponding to a virtual resource activity.
In an embodiment, when the number of the virtual resource activities is multiple, the activity recommendation priority obtaining module 804 is further configured to sort the activity recommendation priorities corresponding to the virtual resource activities in an ascending order to obtain the sorted virtual resource activities, and use the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity according to the order corresponding to the sorted virtual resource activities.
In one embodiment, when the number of virtual resources is multiple, the target virtual resource determining module 806 is further configured to obtain first virtual resource activities corresponding to the respective virtual resources, determine, from the first virtual resource activities corresponding to the respective virtual resources, a virtual resource including a current virtual resource activity as a target virtual resource, obtain current priority offer data corresponding to the current virtual resource activity, the current priority preferential data is virtual resource distribution data corresponding to virtual resource activities with activity recommendation priority greater than the current activity recommendation priority, calculating to obtain a total value of virtual resource transaction according to the virtual resource transaction information corresponding to the target virtual resource and the current priority privilege data, acquiring a preset virtual resource transaction condition corresponding to the current virtual resource activity, and determining virtual resource preferential data according to the total virtual resource transaction value and the preset virtual resource transaction condition.
In an embodiment, the virtual resource allocation data calculation module 808 is further configured to calculate to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data, and the virtual resource transaction total value, and calculate to obtain virtual resource allocation data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource privilege data.
In an embodiment, the virtual resource transaction benefit data determining module 810 is further configured to obtain virtual resource allocation data corresponding to the virtual resource in each virtual resource activity, and count the virtual resource allocation data corresponding to each virtual resource activity to obtain virtual resource transaction benefit data corresponding to the virtual resource.
For specific limitations of the virtual resource data processing apparatus, reference may be made to the above limitations of the virtual resource data processing method, which is not described herein again. The modules in the virtual resource data processing apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
FIG. 10 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may be specifically the terminal 102 or the server 104 in fig. 1. As shown in fig. 10, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the virtual resource data processing method. The internal memory may also store a computer program, which, when executed by the processor, causes the processor to perform the virtual resource data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
and acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information.
And obtaining an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority.
And determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to the virtual resource transaction information corresponding to the target virtual resource.
And calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data.
And determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained.
And determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps of obtaining a plurality of virtual resource activities, wherein each virtual resource activity has a corresponding virtual resource attribute, extracting the characteristics of the corresponding virtual resource activity according to the virtual resource attributes to obtain a virtual resource activity characteristic set corresponding to each virtual resource activity, and determining the activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity characteristic set.
In one embodiment, the virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature, and a distribution manner feature of an entity resource corresponding to a virtual resource activity.
In one embodiment, the number of virtual resource activities is plural, and the processor executes the computer program to further perform the following steps: and (4) performing ascending arrangement on the activity recommendation priorities corresponding to the virtual resource activities to obtain the arranged virtual resource activities, and taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity according to the sequence corresponding to the arranged virtual resource activities.
In one embodiment, the number of virtual resources is plural, and the processor executes the computer program to further perform the following steps: the method comprises the steps of obtaining first virtual resource activities corresponding to all virtual resources, determining the virtual resources including current virtual resource activities as target virtual resources from the first virtual resource activities corresponding to all virtual resources, obtaining current priority preferential data corresponding to the current virtual resource activities, wherein the current priority preferential data are virtual resource distribution data corresponding to virtual resource activities with activity recommendation priorities larger than the current activity recommendation priorities, calculating to obtain virtual resource transaction total values according to virtual resource transaction information corresponding to the target virtual resources and the current priority preferential data, obtaining preset virtual resource transaction conditions corresponding to the current virtual resource activities, and determining the virtual resource preferential data according to the virtual resource transaction total values and the preset virtual resource transaction conditions.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calculating to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data and the virtual resource transaction total value, and calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource privilege data.
In one embodiment, the number of virtual resource activities is plural, and the processor executes the computer program to further perform the following steps: and acquiring virtual resource distribution data corresponding to the virtual resources under each virtual resource activity, and counting the virtual resource distribution data corresponding to each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resources.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
and acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information.
And obtaining an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority.
And determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource preferential data corresponding to the target virtual resource under the current virtual resource activity according to the virtual resource transaction information corresponding to the target virtual resource.
And calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource preferential data.
And determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained.
And determining virtual resource transaction preference data corresponding to the virtual resources according to the virtual resource allocation data corresponding to the virtual resource activities.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps of obtaining a plurality of virtual resource activities, wherein each virtual resource activity has a corresponding virtual resource attribute, extracting the characteristics of the corresponding virtual resource activity according to the virtual resource attributes to obtain a virtual resource activity characteristic set corresponding to each virtual resource activity, and determining the activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity characteristic set.
In one embodiment, the virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature, and a distribution manner feature of an entity resource corresponding to a virtual resource activity.
In one embodiment, the number of virtual resource activities is plural, and the processor executes the computer program to further perform the following steps: and (4) performing ascending arrangement on the activity recommendation priorities corresponding to the virtual resource activities to obtain the arranged virtual resource activities, and taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity according to the sequence corresponding to the arranged virtual resource activities.
In one embodiment, the number of virtual resources is plural, and the processor executes the computer program to further perform the following steps: the method comprises the steps of obtaining first virtual resource activities corresponding to all virtual resources, determining the virtual resources including current virtual resource activities as target virtual resources from the first virtual resource activities corresponding to all virtual resources, obtaining current priority preferential data corresponding to the current virtual resource activities, wherein the current priority preferential data are virtual resource distribution data corresponding to virtual resource activities with activity recommendation priorities larger than the current activity recommendation priorities, calculating to obtain virtual resource transaction total values according to virtual resource transaction information corresponding to the target virtual resources and the current priority preferential data, obtaining preset virtual resource transaction conditions corresponding to the current virtual resource activities, and determining the virtual resource preferential data according to the virtual resource transaction total values and the preset virtual resource transaction conditions.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calculating to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data and the virtual resource transaction total value, and calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource privilege data.
In one embodiment, the number of virtual resource activities is plural, and the processor executes the computer program to further perform the following steps: and acquiring virtual resource distribution data corresponding to the virtual resources under each virtual resource activity, and counting the virtual resource distribution data corresponding to each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resources.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of virtual resource data processing, the method comprising:
acquiring virtual resources, wherein the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
acquiring an activity recommendation priority corresponding to the virtual resource activity, and determining the current virtual resource activity from the virtual resource activity according to the activity recommendation priority;
determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculating virtual resource discount data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource;
calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource discount data;
determining the next virtual resource activity according to the activity recommendation priority, taking the next virtual resource activity as the current virtual resource activity, and returning to the step of determining the target virtual resource corresponding to the current virtual resource activity from the virtual resources until the virtual resource distribution data corresponding to the virtual resource activity is obtained;
and determining virtual resource transaction preferential data corresponding to the virtual resources according to the corresponding virtual resource distribution data under the virtual resource activity.
2. The method of claim 1, further comprising:
acquiring a plurality of virtual resource activities, wherein each virtual resource activity has a corresponding virtual resource attribute;
performing feature extraction on the corresponding virtual resource activities according to the virtual resource attributes to obtain virtual resource activity feature sets corresponding to the virtual resource activities;
and determining the activity recommendation priority corresponding to the corresponding virtual resource activity according to the virtual resource activity feature set.
3. The method according to claim 2, wherein the virtual resource activity feature set is at least one of a virtual resource activity organizer feature, a virtual resource transfer type feature, a virtual resource activity type feature, and a distribution manner feature of an entity resource corresponding to a virtual resource activity.
4. The method of claim 1, wherein the number of virtual resource activities is plural, and wherein determining the current virtual resource activity from the virtual resource activities according to the activity recommendation priority comprises:
the activity recommendation priorities corresponding to the virtual resource activities are arranged in an ascending order to obtain the arranged virtual resource activities;
and according to the sequence corresponding to each arranged virtual resource activity, taking the virtual resource activity with the highest activity recommendation priority as the current virtual resource activity.
5. The method according to claim 1, wherein the number of the virtual resources is plural, and the determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources and calculating virtual resource offer data corresponding to the target virtual resource under the current virtual resource activity according to virtual resource transaction information corresponding to the target virtual resource comprises:
acquiring first virtual resource activities corresponding to the virtual resources;
determining the virtual resource comprising the current virtual resource activity as a target virtual resource from the first virtual resource activity corresponding to each virtual resource;
acquiring current priority preferential data corresponding to the current virtual resource activity, wherein the current priority preferential data is virtual resource distribution data corresponding to the virtual resource activity with activity recommendation priority higher than the current activity recommendation priority;
calculating to obtain a total virtual resource transaction value according to the virtual resource transaction information corresponding to the target virtual resource and the current priority privilege data;
and acquiring a preset virtual resource transaction condition corresponding to the current virtual resource activity, and determining virtual resource preferential data according to the total virtual resource transaction value and the preset virtual resource transaction condition.
6. The method according to claim 5, wherein the calculating the virtual resource allocation data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource offer data includes:
calculating to obtain virtual resource intermediate transaction data according to the virtual resource transaction information corresponding to the target virtual resource, the current priority privilege data and the virtual resource transaction total value;
and calculating to obtain virtual resource distribution data corresponding to the target virtual resource according to the virtual resource intermediate transaction data and the virtual resource discount data.
7. The method according to claim 1, wherein the number of the virtual resource activities is plural, and the determining the virtual resource transaction offer data corresponding to the virtual resource according to the corresponding virtual resource allocation data in the virtual resource activities comprises:
acquiring virtual resource allocation data corresponding to the virtual resources under each virtual resource activity;
and counting the corresponding virtual resource distribution data under each virtual resource activity to obtain virtual resource transaction preference data corresponding to the virtual resources.
8. An apparatus for virtual resource data processing, the apparatus comprising:
the virtual resource acquisition module is used for acquiring virtual resources, and the virtual resources have corresponding virtual resource activities and virtual resource transaction information;
an activity recommendation priority obtaining module, configured to obtain an activity recommendation priority corresponding to the virtual resource activity, and determine a current virtual resource activity from the virtual resource activity according to the activity recommendation priority;
a target virtual resource determining module, configured to determine a target virtual resource corresponding to the current virtual resource activity from the virtual resources, and calculate, according to virtual resource transaction information corresponding to the target virtual resource, to obtain virtual resource discount data corresponding to the target virtual resource in the current virtual resource activity;
the virtual resource allocation data calculation module is used for calculating virtual resource allocation data corresponding to the target virtual resource according to the virtual resource transaction information corresponding to the target virtual resource and the virtual resource discount data;
the virtual resource allocation data calculation module is further configured to determine a next virtual resource activity according to the activity recommendation priority, use the next virtual resource activity as the current virtual resource activity, and return to the step of determining a target virtual resource corresponding to the current virtual resource activity from the virtual resources until virtual resource allocation data corresponding to the virtual resource activity is obtained;
and the virtual resource transaction preference data determining module is used for determining the virtual resource transaction preference data corresponding to the virtual resource according to the corresponding virtual resource distribution data under the virtual resource activity.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910978903.XA 2019-10-15 2019-10-15 Virtual resource data processing method and device, computer equipment and storage medium Pending CN110910162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910978903.XA CN110910162A (en) 2019-10-15 2019-10-15 Virtual resource data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910978903.XA CN110910162A (en) 2019-10-15 2019-10-15 Virtual resource data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110910162A true CN110910162A (en) 2020-03-24

Family

ID=69815650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910978903.XA Pending CN110910162A (en) 2019-10-15 2019-10-15 Virtual resource data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110910162A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337109A (en) * 2017-12-28 2018-07-27 中兴通讯股份有限公司 A kind of resource allocation methods and device and resource allocation system
CN108734561A (en) * 2018-05-31 2018-11-02 康键信息技术(深圳)有限公司 Electronic device, order data processing method and computer readable storage medium
CN108846701A (en) * 2018-06-15 2018-11-20 泰康保险集团股份有限公司 A kind of determination method and device of disbursement and sattlement scheme
CN110110970A (en) * 2019-04-12 2019-08-09 平安信托有限责任公司 Virtual resource risk rating method, system, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337109A (en) * 2017-12-28 2018-07-27 中兴通讯股份有限公司 A kind of resource allocation methods and device and resource allocation system
CN108734561A (en) * 2018-05-31 2018-11-02 康键信息技术(深圳)有限公司 Electronic device, order data processing method and computer readable storage medium
CN108846701A (en) * 2018-06-15 2018-11-20 泰康保险集团股份有限公司 A kind of determination method and device of disbursement and sattlement scheme
CN110110970A (en) * 2019-04-12 2019-08-09 平安信托有限责任公司 Virtual resource risk rating method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
Jin et al. Towards optimized fine-grained pricing of IaaS cloud platform
US20150339728A1 (en) Ad serving and intelligent impression throttling techniques implemented in electronic data networks
CN109727070B (en) Method and device for determining potential active users
CN110838041B (en) Virtual resource activity processing method and device, computer equipment and storage medium
CN112396451A (en) Virtual resource allocation method and device, electronic equipment and readable storage medium
CN111159553A (en) Information pushing method and device, computer equipment and storage medium
CN111178830B (en) Cost accounting method, cost accounting device, computer equipment and storage medium
CN108694174B (en) Content delivery data analysis method and device
CN112116212A (en) Application evaluation method and device, storage medium and electronic equipment
CN107688959B (en) Breakpoint list processing method, storage medium and server
WO2019024475A1 (en) Breakpoint list distribution method and apparatus, and server and medium
CN113743968A (en) Information delivery method, device and equipment
CN110910162A (en) Virtual resource data processing method and device, computer equipment and storage medium
CN111539730A (en) Data processing method and device based on block chain and electronic equipment
CN103246987A (en) Sales information management system and method
CN112184276A (en) Preferential recommendation method and device and storage medium
CN114399328A (en) Advertisement putting method and device, storage medium and electronic device
CN112348298B (en) Designer management method, designer management device, electronic terminal and storage medium
CN112836971A (en) Quota resource determination method and device, electronic equipment and storage medium
JP5388988B2 (en) Advertisement selection apparatus, method and program
CN111061558A (en) Method, device, computer equipment and storage medium for processing virtual resource data
CN110717783A (en) Integral data processing method, system, computer device and storage medium
CN111858542B (en) Data processing method, device, equipment and computer readable storage medium
CN111832868B (en) Configuration method and device for supply chain resources and readable storage medium
CN110570247B (en) Electronic ticket distribution method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324

RJ01 Rejection of invention patent application after publication