A game resource processing method, device, equipment and storage medium
By running the target framework program on the electronic device, filtering and accumulating payment events, the problem of low real-time performance of the cumulative recharge of the game is solved, the timely acquisition and analysis of the cumulative recharge information of the game characters is realized, and the real-time and real-time performance of the game operation is improved. accuracy.
Patent Information
- Application Number
- CN202110913838.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-10
AI Technical Summary
In the existing technology, the real-time performance of the cumulative recharge of the game is low, and it is difficult to timely and accurately determine the cumulative recharge information of the game character by the player.
By running the target framework program on the electronic device, the first program is used to filter the payment events in the historical resource information and divided into resource groups according to the time granularity attributes of the target period. The second program accumulates the payment events in the resource group. , determine the cumulative recharge information of the target game.
It improves the real-time nature of the cumulative recharge of the game, and can promptly obtain the player's cumulative recharge information within the specified time range, with time status, and enhances support for analysis of players' willingness to pay and game operation strategies.
Smart Images

Figure CN113633993B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for processing game resources. Background Art
[0002] With the development of computer technology, the era of big data is flooding all walks of life, especially in the gaming industry. Using big data tools to mine the value of game-related data will help the development of the gaming industry.
[0003] Among them, the game cumulative recharge describes how much payment a character has contributed to a certain game product. At present, the payment amount corresponding to a character in its entire life cycle is regarded as the cumulative recharge corresponding to the character.
[0004] However, the real-time performance of the game cumulative recharge determined by the prior art is low. Summary of the invention
[0005] The purpose of this application is to provide a game resource processing method, device, equipment and storage medium to improve the real-time performance of determining the accumulated recharge of the game in response to the above-mentioned deficiencies in the prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for processing game resources, which is applied to an electronic device, wherein a target framework program is running on the electronic device, and the target framework program includes a first program and a second program; the method includes:
[0008] The first program selects first resource information from historical resource information according to identification information of the target game, and sends the first resource information to the second program, wherein the identification information includes: a game identification and / or a character identification;
[0009] The second program divides the first resource information into at least one resource group according to a time granularity attribute matching a target period, each of the resource groups including at least one second resource information;
[0010] The second program determines resource information corresponding to the target game according to each piece of second resource information included in each resource group and the target time period.
[0011] Optionally, the second program determines the resource information corresponding to the target game according to each of the second resource information included in each of the resource groups and the target time period, including:
[0012] The second program accumulates the second resource information in each resource group to obtain resource information corresponding to each resource group;
[0013] The second program determines at least one target resource group from the plurality of resource groups according to the target time period;
[0014] The second program accumulates the resource information corresponding to each of the target resource groups to obtain the resource information corresponding to the target game.
[0015] Optionally, the second program determines the resource information corresponding to the target game according to each of the second resource information included in each of the resource groups and the target time period, including:
[0016] The second program determines a plurality of target keys from a target database according to the target time period;
[0017] The second program determines the resource information corresponding to the target game according to the resource information corresponding to each of the target keys.
[0018] Optionally, before the second program determines a plurality of target keys from a target database according to the target time period, the method further comprises:
[0019] The second program accumulates the second resource information in each resource group to obtain resource information corresponding to each resource group;
[0020] The second program uses the identification information of the target game and the time granularity corresponding to each resource group as a key to store the resource information corresponding to each resource group in a target database.
[0021] Optionally, after determining the resource information corresponding to the target game, the method further includes:
[0022] Determine the player's status information according to the resource information corresponding to the target game and the resource information corresponding to the entire life cycle of the target game;
[0023] Push target information according to the status information of the player.
[0024] Optionally, if the time granularity attribute that matches the target time period is hour, the resource information corresponding to each resource group is resource information corresponding to each hour.
[0025] Optionally, the second program divides the first resource information into at least one resource group according to a time granularity attribute matching a target period, including:
[0026] The second program determines whether the time of receiving the first resource information exceeds the delay time;
[0027] If the time of the first resource information does not exceed the delay time, the second program divides the first resource information into at least one resource group according to a time granularity attribute that matches the target time period.
[0028] Optionally, the method further comprises:
[0029] If the time of the first resource information exceeds the delay time, the second program discards the first resource information.
[0030] In a second aspect, an embodiment of the present application provides a game resource processing device, which is applied to an electronic device, wherein a target framework program is running on the electronic device, and the target framework program includes a first program and a second program; the device includes:
[0031] A first program module, configured to filter out first resource information from historical resource information according to identification information of a target game, and send the first resource information to the second program, wherein the identification information includes: a game identification and a game account identification;
[0032] A second program module is used to divide the first resource information into at least one resource group according to a time granularity attribute matching a target period, each of the resource groups including at least one second resource information;
[0033] The second program module is further used to determine the resource information corresponding to the target game according to each of the second resource information included in each of the resource groups and the target time period.
[0034] Optionally, the second program module is specifically used to accumulate the second resource information in each of the resource groups respectively to obtain resource information corresponding to each of the resource groups; determine at least one target resource group from the multiple resource groups according to the target time period; and accumulate the resource information corresponding to each of the target resource groups to obtain resource information corresponding to the target game.
[0035] Optionally, the second program module is further specifically used to determine a plurality of target keys from a target database according to the target time period; and determine resource information corresponding to the target game according to resource information corresponding to each of the target keys.
[0036] Optionally, the second program module is further specifically used to accumulate the second resource information in each resource group respectively to obtain resource information corresponding to each resource group; using the identification information of the target game and the time granularity corresponding to each resource group as a key, the resource information corresponding to each resource group is stored in the target database.
[0037] Optionally, the device further includes a push module; the push module is used to determine the player's status information based on the resource information corresponding to the target game and the resource information of the entire life cycle corresponding to the target game; and push target information based on the player's status information.
[0038] Optionally, if the time granularity attribute that matches the target time period is hour, the resource information corresponding to each resource group is resource information corresponding to each hour.
[0039] The second program module is also specifically used to determine whether the time of receiving the first resource information exceeds the delay time; if the time of the first resource information does not exceed the delay time, the first resource information is divided into at least one resource group according to the time granularity attribute matching the target time period.
[0040] Optionally, the second program module is further specifically configured to discard the first resource information if the time of the first resource information exceeds a delay time.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the game resource processing method of the first aspect above.
[0042] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the game resource processing method of the first aspect are executed.
[0043] The beneficial effects of this application are:
[0044] The embodiment of the present application provides a method, device, equipment and storage medium for processing game resources. The method is applied to an electronic device, on which a target framework program is running, and the target framework program includes a first program and a second program; the method includes: the first program selects first resource information from historical resource information according to identification information of the target game, and sends the first resource information to the second program, and the identification information includes: game identification, game account identification; the second program divides the first resource information into at least one resource group according to the time granularity attribute matching the target time period, and each resource group includes at least one second resource information; according to each second resource information included in each resource group and the target time period, the resource information corresponding to the target game is determined.
[0045] By adopting the game resource processing method provided by the present application, based on the target framework program, the first resource information can be filtered out from the historical resource information through the first program according to the demand information for processing game resources, and the first resource information can be grouped in time through the second program according to the time granularity attribute matching the target time period to obtain multiple resource groups, each group may include at least one second resource information, and finally the resource information corresponding to the target game is determined according to the target time period, that is, the cumulative recharge information of the target character in the target game based on the game account within the target time period. In other words, based on the above method, the cumulative recharge information within any specified time range can be obtained, and the cumulative recharge information carries a time status, which can improve the real-time determination of the cumulative recharge of the game. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 A flowchart of a method for processing game resources provided in an embodiment of the present application;
[0048] Figure 2 A flowchart of another method for processing game resources provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram showing a process of accumulating each second resource information in a resource group provided in an embodiment of the present application;
[0050] Figure 4 A flowchart of another method for processing game resources provided in an embodiment of the present application;
[0051] Figure 5 A flowchart of another method for processing game resources provided in an embodiment of the present application;
[0052] Figure 6 A flowchart of another method for processing game resources provided in an embodiment of the present application;
[0053] Figure 7 A flowchart of another method for processing game resources provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of the structure of a game resource processing device provided in an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0057] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0058] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0059] Before explaining the embodiments of the present application in detail, the game resource processing scenario mentioned in the present application is first introduced. After a player logs in to a game account corresponding to a game product on a terminal device, he can complete a task by manipulating a virtual object (character) in the game scene. During the game, the player may pay for the virtual object, such as purchasing virtual equipment for the virtual object, unlocking new stage rewards, etc. The player's payment behavior can form a game resource record in the log, that is, the game resource is used to indicate the payment amount contributed by the player for a certain game product.
[0060] The payment amount may include the actual payment amount and the equivalent payment amount. The actual payment amount refers to the actual payment amount spent by the player when purchasing in-game coupons, and the equivalent payment amount refers to the payment amount with the same purchasing power as the coupons. For example, in a limited-time 30% discount event in the target game, 70 yuan can be used to purchase 100 in-game coupons, then the actual payment amount is 70 yuan, and the equivalent payment amount is 100 yuan. This application mainly uses the actual payment amount as an example for explanation.
[0061] This application mainly determines resource information with time status through a target framework program running on an electronic device. The resource information with time status is used to describe the total payment amount contributed by the player to a certain game product (virtual object) based on the game account within a specified time range, that is, the cumulative recharge information. The specified time range can be any specified time range such as the last 15 minutes, the last 12 hours, the last 36 hours, etc. This application does not limit it. Among them, the target framework program can be a Flink processing framework, which is a stream processing framework. Each game resource is equivalent to a payment event. After the upstream operator (first program) in the Flink processing framework completes the processing of the payment event (such as a screening operation), the processed payment event can be sent to the downstream operator (second program) in the Flink processing framework. The downstream operator can group the processed payment event according to the preset time granularity attribute (such as hours, minutes) to obtain multiple resource groups, and then obtain the resource information within the specified time range according to the resource information corresponding to at least one resource group, that is, the total payment amount / cumulative recharge information.
[0062] Furthermore, the player's consumption status can be analyzed based on the player's resource information within a specified time range, and the player's recent consumption status can be promptly determined to be positive or negative, that is, the player's willingness to pay for the game product (target game) in recent times. Based on the payment willingness obtained from the analysis, more matching game information can be pushed to the player in real time, thereby increasing the player's interest in the game product and making the player willing to recharge for the game product.
[0063] It should be noted that this application can use a target character (target virtual object) as a dimension to describe the total payment amount (i.e., resource information) of a player for a certain game product within a specified time range. The target character can be a virtual object that the player often controls, that is, the virtual object that is most closely associated with the player. This application can also describe the total payment amount (i.e., resource information) of a player for a certain game product within a specified time range from the dimension of a game account. The total payment amount can also be called cumulative recharge information. For example, if one of the game products includes multiple virtual objects in the target game, and the player can trigger payment behavior for multiple virtual objects within a specified time range, then the total payment amount of the target game can be understood as the total payment amount of each virtual object within a specified time range, and the total payment amount is the total payment amount of the player for the target game based on the game account within a specified time range.
[0064] The game resource processing method mentioned in this application is illustrated as follows with reference to the accompanying drawings. Figure 1The flowchart of a method for processing game resources provided in an embodiment of the present application is applied to an electronic device, and the target program framework mentioned above is run on the electronic device, and the target program framework includes a first program and a second program. Figure 1 As shown, the method may include:
[0065] S101. A first program selects first resource information from historical resource information according to identification information of a target game, and sends the first resource information to a second program.
[0066] Among them, firstly, the demand information corresponding to the processing of game resources is known, and the demand information can be split in advance to obtain the identification information and target time period of the target game included in the demand information. The identification information of the target game may include the game identification and the character identification (virtual object identification). For example, the content in the demand information is to determine the cumulative recharge information corresponding to the game category m01 and the character A in the last 12 hours, then it can be determined that the game identification is m01, the character identification is A, and the target time period is the last 12 hours.
[0067] After the identification information of the target game is determined, it is equivalent to uniquely locking the player's identity. Optionally, in some game scenarios, the player's identity can only be uniquely locked through the game identifier, character identifier and server identifier. In this case, the server identifier can be pre-separated from the demand information. It should be noted that this application does not limit the specific constraints for locking the player's identity.
[0068] Among them, the game categories mentioned above may be RPG (Role Playing Game), MOBA (Multiplayer Online Battle Arena), RTS (Real-Time Strategy Game) or other categories of games. It should be noted that this application does not limit the game categories.
[0069] Exemplarily, the first program may first filter out the initial resource information from the historical resource information based on the game identifier, and then filter out the first resource information from the initial resource information based on the character identifier. It is understandable that the first program may filter out multiple first resource information from the historical resource information, each first resource information is equivalent to a consumption event, and each consumption event includes both the game identifier and the character identifier. Further, each consumption event may continue to be filtered to filter out payment events that include payment occurrence time and payment amount information, wherein, for a payment event, the payment occurrence time in the payment event refers to the time information when the player completes the payment transaction when controlling the target character under the target game account, and the payment amount refers to the amount paid by the player when making the payment transaction.
[0070] Furthermore, the payment time and payment amount in the payment event can be converted into a format according to the data type corresponding to the second program mentioned below. If the format of the payment time in the payment event is a timestamp or other format, then the payment time can be converted into the format of (year-month-day + hour), that is, the payment time includes the date of completion of the payment transaction and hour information, and the hour information can be accurate to seconds; the payment amount in each payment event can be unified into the same measurement unit, such as (yuan), and the payment amount can be retained to 2 decimal places. This makes it easier for the second program to process the data in the first resource information.
[0071] S102: The second program divides the first resource information into at least one resource group according to a time granularity attribute matching a target period, and each resource group includes at least one second resource information.
[0072] Among them, after the first program mentioned above selects a payment event (first resource information) from the historical resource information, it can send the payment event to the second program, and the second program can group the received payment events. Specifically, the second program can determine the grouping condition according to the time granularity attribute corresponding to the target time period. For example, if the time granularity attribute matching the target time period is hour, the second program can divide the payment events received in sequence with the same payment occurrence time in the same hour into one resource group according to the hourly time granularity grouping condition, that is, each resource group corresponds to the same hourly time granularity (that is, the year, month, day, hour is the same); if the time granularity attribute matching the target time period is minute, the second program can divide the payment events received in sequence with the same payment occurrence time in the same minute into one resource group according to the minute time granularity grouping condition, that is, each resource group corresponds to the same minute time granularity (that is, the year, month, day, minute is the same), wherein the payment event in each resource group can be called the second resource information.
[0073] It should be noted that the time granularity attribute that matches the target time period may be hours, minutes, etc., which is not limited in this application.
[0074] S103. The second program determines resource information corresponding to the target game according to the second resource information included in each resource group and the target time period.
[0075] Among them, after the second program groups the received payment events (first resource information) in turn, each resource group can include multiple payment events (second resource information). According to the above, each resource group has a corresponding time granularity, so according to the target time period, multiple target resource groups can be determined from multiple resource groups, and the sum of the payment amounts in each payment event in each target resource is used as the resource information corresponding to the target game. The resource information corresponding to the target game can be understood as the player's cumulative recharge information for the target game within the target time period.
[0076] Optionally, taking one of the resource groups as an example, each time the resource group enters a payment event, the total payment amount corresponding to each payment event in the resource group can be obtained. Other resource groups are similar and all have corresponding total payment amounts. According to the above, each resource group has a corresponding time granularity, so the target resource group can be determined from multiple resource groups according to the target time period, and the sum of the total payment amounts corresponding to the target resource groups can be used as the resource information corresponding to the target game.
[0077] To summarize, the game resource processing method provided in the embodiment of the present application is based on a target framework program. According to the demand information for processing game resources, the first resource information can be filtered out from the historical resource information through a first program. According to the time granularity attribute matching the target time period, the first resource information can be grouped in time through a second program to obtain multiple resource groups, each of which may include at least one second resource information. Finally, the resource information corresponding to the target game is determined according to the target time period, that is, the cumulative recharge information of the player for the target character in the target game within the target time period based on the game account. In other words, based on the above method, the cumulative recharge information of the player within any specified time range can be obtained, and the cumulative recharge information carries a time status, which can improve the real-time performance of determining the cumulative recharge of the game.
[0078] Figure 2 This is an example flow chart of another method for processing game resources provided in an embodiment of the present application. Figure 2 As shown, the second program determines the resource information corresponding to the target game according to the second resource information included in each resource group and the target time period, including:
[0079] S201. The second program accumulates the second resource information in each resource group respectively to obtain resource information corresponding to each resource group.
[0080] Among them, after receiving a payment event filtered out by the first program, the second program immediately assigns the payment event to the resource group corresponding to the matching time granularity, and adds the payment amount in the payment event to the total payment amount corresponding to other payment events in the resource group to obtain the total payment amount corresponding to the current resource group, that is, the resource information.
[0081] The following mainly takes the determination of the resource information corresponding to a resource group as an example for detailed explanation. The process of determining the resource information corresponding to other resource groups is similar and will not be described here. The second resource information (payment events) in the resource group can be combined and calculated in the following way. Specifically, the payment amount in each payment event can be accumulated one by one, and the total payment amount obtained after the accumulation and the attribute information corresponding to the resource group are associated and stored in the memory, wherein the attribute information corresponding to the resource group includes game identification, game account identification, and time granularity (such as 13:00 on June 3, 2021).
[0082] When there is only one payment event in the resource group, the payment amount in the payment event is used as the resource information corresponding to the resource group; if the value of the payment amount in the payment event first allocated to the resource group is 5, then the value corresponding to the resource information corresponding to the resource group is 5, and the attribute information corresponding to the resource group is associated with the value 5 and stored in the memory; if the value of the payment amount in the payment event allocated to the resource group again is 10, then the values corresponding to the payment amounts in the two payment events can be added, and the result of the addition is 15, then the value corresponding to the resource information corresponding to the resource group is 15, and the value 5 stored in the memory in association with the attribute information corresponding to the resource group is updated to 15; if the value of the payment amount in the payment event allocated to the resource group again is 11, then the addition result (15) corresponding to the first two payment events can be added to the value corresponding to this payment event, and the result of the addition is 26, then the value corresponding to the resource information corresponding to the resource group is 26, and the value 15 stored in the memory in association with the attribute information corresponding to the resource group is updated to 26.
[0083] Figure 3 The schematic diagram of the process of accumulating the second resource information in each resource group provided in the embodiment of the present application is as follows: Figure 3 This is just an example. This application does not limit the payment amount of each payment event (second resource information) in the resource group. Figure 3 The accumulation process in determines the resource information corresponding to each resource group.
[0084] It can be seen that the resource information corresponding to each resource group is determined by accumulation, which can improve the efficiency of determining the resource information corresponding to each resource group in a timely manner.
[0085] S202: The second program determines at least one target resource group from multiple resource groups according to a target time period.
[0086] S203. The second program accumulates the resource information corresponding to each target resource group to obtain the resource information corresponding to the target game.
[0087] Among them, the second program can determine the target resource group according to the target time period and the time granularity corresponding to each resource group. For example, assuming that the current time is 20:00 on June 3, 2021, and the target time period is the last 12 hours, then the target time period can be converted into a target time range (8:00 on June 3, 2021-20:00 on June 3, 2021), and the resource group whose time granularity belongs to each time point in the target time range is determined from multiple resource groups according to the target time range, and the resource group is called the target resource group.
[0088] After the target resource group is determined, the latest resource information corresponding to each target resource group can be extracted from the memory, and the sum of the latest resource information corresponding to each target resource group can be used as the resource information corresponding to the target game, that is, the cumulative recharge information of the player for the target character in the target game based on the game account in the last 12 hours.
[0089] Figure 4 A flowchart of another method for processing game resources provided in an embodiment of the present application is provided. Optionally, as Figure 4 As shown, the second program determines the resource information corresponding to the target game according to the second resource information included in each resource group and the target time period, including:
[0090] S401. The second program determines a plurality of target keys from a target database according to a target time period.
[0091] S402. The second program determines the resource information corresponding to the target game according to the resource information corresponding to each target key.
[0092] Among them, a target data table is stored in the target database, and the target data table includes multiple key-value pairs, which can be used to extract information in the target time period. If the target time period belongs to the same day and the time granularity of the target data table is day, then multiple target keys can be determined in the same target data table, and the corresponding values of each target key (i.e., resource information) are added, and the result of the addition is used as the resource information corresponding to the target game; if the target time period spans multiple days, then multiple target keys can be determined from multiple data tables in the target database. After determining the addition result corresponding to each data table, the addition result corresponding to each data table can be added to obtain the resource information corresponding to the target game, or the values corresponding to each target key can be directly added, and the result of the addition is used as the resource information corresponding to the target game.
[0093] For example, if the current hourly time information is 20:00 on June 3, 2021, and the target period is the last 12 hours, then the value of the key corresponding to the hourly granularity (20:00) and the values of each key corresponding to the granularity of the previous 11 hours can be obtained in the data table named m01_20210603, and the values corresponding to each key obtained are added, and the result of the addition is used as the cumulative recharge information of the player for the target game, that is, the target character, in the last 12 hours; if the current hourly time information is 20:00 on June 3, 2021, and the target period is the same day, then the value of each key in the data table named m01_20210603 can be directly obtained, and the value of each key in the data table is added, and the result of the addition is used as the cumulative recharge information of the player for the target game, that is, the target character, on the same day.
[0094] Figure 5 A flowchart of another method for processing game resources provided in an embodiment of the present application is provided. Optionally, as Figure 5 As shown, before the second program determines a plurality of target keys from the target database according to the target time period, the method further includes:
[0095] S501. The second program accumulates the second resource information in each resource group respectively to obtain resource information corresponding to each resource group.
[0096] The content here is similar to the content in step S201 mentioned above. Please refer to the relevant part description for details, and no further explanation will be given here.
[0097] S502: The second program uses the identification information of the target game and the time granularity corresponding to each resource group as a key to store the resource information corresponding to each resource group into the target database.
[0098] Among them, each resource group has corresponding attribute information, which includes the identification information of the target game (game identifier, game account identifier) and time granularity. The table names of each data table in the target database can be set in advance. The table name format of each data table in the target database can be: game identifier_date, such as m01_20210603. The key format in the target database is game account identifier_hour, such as A_1 point. The table name of the data table and the values corresponding to each key in the data table can be used to know the payment amount paid by the player for the target character at a certain day and hour.
[0099] It can be seen that each key is equivalent to each resource group. The resource information corresponding to each resource group is inserted into the corresponding data table according to the content corresponding to the key. If there is no key in the data table that matches the attribute information of a resource group with a time granularity of the same day, a key with a corresponding format can be directly generated according to the attribute information of the resource group, and the resource information corresponding to the resource group is inserted into the data table as the value of the key. If there is a key in the data table that matches the attribute information of a resource group, when the resource information corresponding to the resource group is updated, the value corresponding to the key is also updated.
[0100] It can be seen that after the second program determines the resource information corresponding to the resource group, it will immediately trigger the storage operation to load the player's latest recharge information for the target game in time, so that the cumulative recharge information of the target game can be updated more real-time.
[0101] Figure 6 A flowchart of another method for processing game resources provided in an embodiment of the present application is provided. Optionally, as Figure 6 As shown, after determining the resource information corresponding to the target game, the method further includes:
[0102] S601. Determine the player's status information according to the resource information corresponding to the target game and the resource information corresponding to the entire life cycle of the target game.
[0103] S602: Push target information according to the player's status information.
[0104] Among them, the resource information corresponding to the target game is the cumulative recharge information paid by the player for the target game within the specified time range. Such cumulative recharge information represents the cumulative recharge information with a time status; the resource information corresponding to the entire life cycle of the target game is the cumulative recharge information paid by the player for the target game during the entire life cycle. Such cumulative recharge information is a kind of cumulative recharge information without a time status. It can be seen that based on the resource information corresponding to the entire life cycle of the existing target game, this application can also determine the cumulative recharge information paid by the player for the target game within the specified time range, enriching the monitoring system of the in-game indicators.
[0105] Specifically, the resource information corresponding to the target game and the resource information corresponding to the entire life cycle of the target game can be input into a pre-trained player state analysis model, and the player state analysis model can output the player's most recent state information on the target game.
[0106] For example, if the recharge amount in the player's cumulative recharge information for the target game throughout the life cycle is very high, while the recharge amount in the player's cumulative recharge information for the target game within the specified time range is very low, the player state analysis model outputs the player's state information as decreasing willingness to pay for the target game, that is, the interest level in the target game is decreasing; if the recharge amount in the player's cumulative recharge information for the target game throughout the life cycle is very low, while the recharge amount in the player's cumulative recharge information for the target game within the specified time range is very high, the player state analysis model outputs the player's state information as increasing willingness to pay for the target game, that is, the interest level in the target game is increasing, and the player is willing to consume for the target game.
[0107] According to the result output by the player status analysis model (player status information) and the correspondence between the pre-stored player status information and the game recommendation plan, the matching game recommendation plan (target information) can be actively pushed to the player.
[0108] For example, if the player's status information shows that his willingness to pay for the target game is decreasing, then some free game point plans or some lower-level recharge gift packages can be pushed to the player. Through these lower-level recharge gift packages, the player can unlock the new stage reward plan. This can increase the player's interest in the target game and continue to be willing to pay for the target game.
[0109] It can be seen that after the cumulative recharge information is accompanied by a time status, the consumption trend of the player in the recent game experience can be analyzed in a timely manner, which helps to provide timely feedback on the player's status information, and then the subsequent recommended content or operation and other business strategies can be adjusted in a timely manner according to the player's status information.
[0110] Optionally, if the time granularity attribute matching the target time period is hour, the resource information corresponding to each resource group is the resource information corresponding to each hour.
[0111] Among them, if the target time period is the last 12 hours and the current corresponding time information is the hour information, then the time granularity attribute matching the target time period is the hour, and the second program can divide the payment events whose payment occurrence time belongs to the same hour into the same resource group, that is, the resource information corresponding to each resource group is the total payment amount (resource information) within the corresponding time granularity (hour); if the target time period is the last 15 minutes, then the time granularity attribute matching the target time period is the minute, and the second program can divide the payment events whose payment occurrence time belongs to the same minute into the same resource group, that is, the resource information corresponding to each resource group is the total payment amount (resource information) within the corresponding time granularity (minute).
[0112] It can be seen that the second program performs grouping operations according to the time granularity attribute matching the target time period, and then can directly combine the resource information corresponding to each resource group to determine the resource information corresponding to the target game, that is, it can improve the determination of the resource information corresponding to the target game.
[0113] Figure 7 This is a flowchart of another method for processing game resources provided in an embodiment of the present application. Optionally, as Figure 7 As shown, the second program divides the first resource information into at least one resource group according to the time granularity attribute matching the target period, including:
[0114] S701. The second program determines whether the time of receiving the first resource information exceeds the delay time.
[0115] S702: If the time of the first resource information does not exceed the delay time, the second program divides the first resource information into at least one resource group according to a time granularity attribute that matches the target time period.
[0116] Among them, the first program sends each payment event corresponding to each screened first resource information to the second program in sequence. The second program can judge in sequence whether the payment occurrence time of the received payment event exceeds the delay time according to the payment occurrence time in the received payment event (the time of the first resource information) and the preset delay time, and obtain a judgment result. Specifically, the second program can use the payment occurrence time of the received payment event as the latest time, and then judge whether the payment occurrence time of the next payment event received exceeds the delay time according to the latest time and the delay time, and obtain a judgment result. If the judgment result indicates that the payment occurrence time of the payment event does not exceed the delay time, the second program can group the payment event. For specific details, please refer to the above description, which will not be repeated here.
[0117] If the judgment result indicates that the payment occurrence time of the payment event has exceeded the delay time, then the second program does not perform a grouping operation on the payment event and removes the payment time.
[0118] This can avoid the situation where the second program cannot determine the resource information corresponding to each resource group in time due to network delay, thereby avoiding affecting the timeliness of determining the resource information corresponding to the target game.
[0119] Figure 8 This is a schematic diagram of the structure of a game resource processing device provided in an embodiment of the present application. The device is applied to an electronic device, and the target program framework mentioned above is run on the electronic device. The target program framework includes a first program and a second program. Figure 8 As shown, the device comprises:
[0120] The first program module 801 is used to filter out first resource information from historical resource information according to identification information of the target game, and send the first resource information to the second program;
[0121] The second program module 802 is used to divide the first resource information into at least one resource group according to a time granularity attribute matching the target period, each resource group including at least one second resource information;
[0122] The second program module 802 is further used to determine the resource information corresponding to the target game according to the second resource information included in each resource group and the target time period.
[0123] Optionally, the second program module 802 is specifically used to accumulate the second resource information in each resource group respectively to obtain resource information corresponding to each resource group; determine at least one target resource group from multiple resource groups according to the target time period; accumulate the resource information corresponding to each target resource group to obtain resource information corresponding to the target game.
[0124] Optionally, the second program module 802 is further specifically configured to determine a plurality of target keys from a target database according to a target time period; and determine resource information corresponding to a target game according to resource information corresponding to each target key.
[0125] Optionally, the second program module 802 is further specifically used to accumulate each second resource information in each resource group to obtain resource information corresponding to each resource group; using the identification information of the target game and the time granularity corresponding to each resource group as a key, the resource information corresponding to each resource group is stored in the target database;
[0126] Optionally, the device further comprises a push module; the push module is used to determine the player's status information according to the resource information corresponding to the target game and the resource information corresponding to the entire life cycle of the target game; and push the target information according to the player's status information.
[0127] Optionally, if the time granularity attribute matching the target time period is hour, the resource information corresponding to each resource group is the resource information corresponding to each hour.
[0128] The second program module 802 is also specifically used to determine whether the time of receiving the first resource information exceeds the delay time; if the time of the first resource information does not exceed the delay time, the first resource information is divided into at least one resource group according to the time granularity attribute matching the target time period.
[0129] Optionally, the second program module 802 is further specifically configured to discard the first resource information if the time of the first resource information exceeds the delay time.
[0130] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0131] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0132] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device may be the electronic device running the target framework program mentioned above, such as Fig. 9 As shown, the electronic device may include: a processor 901, a storage medium 902 and a bus 903, the storage medium 902 stores machine-readable instructions executable by the processor 901, when the electronic device is running, the processor 901 communicates with the storage medium 902 via the bus 903, and the processor 901 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0133] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0134] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0136] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0137] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0138] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0139] The above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing game resources, characterized in that: Applied to an electronic device, the electronic device runs a target framework program, the target framework program includes a first program and a second program; the method includes: The first program selects first resource information from historical resource information according to identification information of the target game, and sends the first resource information to the second program, wherein the identification information includes: a game identification and / or a character identification, wherein the first resource information is used to indicate a payment occurrence time and payment amount information; The second program divides the first resource information into at least one resource group according to a time granularity attribute matching a target period, each of the resource groups includes at least one second resource information, wherein the second resource information is used to indicate a payment event, and the time granularity attribute is minutes or hours; The second program determines the resource information corresponding to the target game based on the second resource information included in each resource group and the target time period, wherein the resource information is used to indicate the player's total payment amount or accumulated recharge information for a certain game product within a specified time range; the resource information carries time status information.
2. The method according to claim 1, characterized in that The second program determines the resource information corresponding to the target game according to each of the second resource information included in each of the resource groups and the target time period, including: The second program accumulates the second resource information in each resource group to obtain resource information corresponding to each resource group; The second program determines at least one target resource group from the plurality of resource groups according to the target time period; The second program accumulates the resource information corresponding to each of the target resource groups to obtain the resource information corresponding to the target game.
3. The method according to claim 1, characterized in that The second program determines the resource information corresponding to the target game according to each of the second resource information included in each of the resource groups and the target time period, including: The second program determines a plurality of target keys from a target database according to the target time period; The second program determines the resource information corresponding to the target game according to the resource information corresponding to each of the target keys.
4. The method according to claim 3, characterized in that Before the second program determines a plurality of target keys from a target database according to the target time period, the method further includes: The second program accumulates the second resource information in each resource group to obtain resource information corresponding to each resource group; The second program uses the identification information of the target game and the time granularity corresponding to each resource group as a key to store the resource information corresponding to each resource group in a target database.
5. The method according to any one of claims 1 to 4, characterized in that: After determining the resource information corresponding to the target game, the method further includes: Determine the player's status information according to the resource information corresponding to the target game and the resource information corresponding to the entire life cycle of the target game; Push target information according to the status information of the player.
6. The method according to claim 2, characterized in that If the time granularity attribute matching the target time period is hour, the resource information corresponding to each resource group is the resource information corresponding to each hour.
7. The method according to any one of claims 1 to 4, characterized in that: The second program divides the first resource information into at least one resource group according to a time granularity attribute matching a target period, including: The second program determines whether the time of receiving the first resource information exceeds the delay time; If the time of the first resource information does not exceed the delay time, the second program divides the first resource information into at least one resource group according to a time granularity attribute that matches the target time period.
8. The method according to claim 7, characterized in that The method further comprises: If the time of the first resource information exceeds the delay time, the second program discards the first resource information.
9. A game resource processing device, characterized in that: Applied to an electronic device, the electronic device runs a target framework program, the target framework program includes a first program and a second program; the device includes: A first program module, configured to filter out first resource information from historical resource information according to identification information of a target game, and send the first resource information to the second program, wherein the identification information includes: a game identification and a game account identification, wherein the first resource information is used to indicate a payment occurrence time and payment amount information; A second program module is used to divide the first resource information into at least one resource group according to a time granularity attribute matching a target period, each of the resource groups includes at least one second resource information, wherein the second resource information is used to indicate a payment event, and the time granularity attribute is minutes or hours; The second program module is also used to determine the resource information corresponding to the target game based on the second resource information included in each resource group and the target time period, wherein the resource information is used to indicate the player's total payment amount or accumulated recharge information for a certain game product within a specified time range; the resource information carries time status information.
10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the game resource processing method as described in any one of claims 1-8.
11. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the game resource processing method according to any one of claims 1 to 8 are executed.
