CN117745352A - Information processing method, device, equipment, medium and product - Google Patents

Information processing method, device, equipment, medium and product Download PDF

Info

Publication number
CN117745352A
CN117745352A CN202410005170.2A CN202410005170A CN117745352A CN 117745352 A CN117745352 A CN 117745352A CN 202410005170 A CN202410005170 A CN 202410005170A CN 117745352 A CN117745352 A CN 117745352A
Authority
CN
China
Prior art keywords
replacement
target
proportion
dimension
resources
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
CN202410005170.2A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202410005170.2A priority Critical patent/CN117745352A/en
Publication of CN117745352A publication Critical patent/CN117745352A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides an information processing method, an information processing device, information processing equipment, information processing media and information processing products, and relates to the technical field of computers, wherein the information processing method comprises the following steps: acquiring configuration information, wherein the configuration information comprises M first dimension identifiers of an object to be acquired and a replacement proportion corresponding to each first dimension identifier; receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifiers of a target object for application and exchange; obtaining replacement ratios corresponding to M second dimension identifiers from the configuration information; calculating to obtain a target replacement proportion according to the replacement proportion corresponding to the M second dimension identifications; calculating to obtain the quantity of the first resources for replacing the target object according to the price of the target object and the target replacement proportion; and if the number of the first resources is smaller than or equal to the number of the total resources, the target object is redeemed by the number of the first resources. The whole process does not need to be manually participated, and the replacement efficiency can be improved.

Description

Information processing method, device, equipment, medium and product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method, apparatus, device, medium, and product.
Background
With the development of the Internet, more and more malls establish a user feedback system, so that users can accumulate comprehensive points of the malls through a plurality of behaviors such as signing in, ordering, playing and the like, and the comprehensive points can be counteracted in proportion during ordering. The platform operator can perform multidimensional setting on the points, such as commodity exchange proportion, merchant exchange proportion, category exchange proportion, activity exchange proportion and the like. Because of the exchange process, the human participation degree is high, and the exchange efficiency is low.
Disclosure of Invention
The information processing method, the information processing device, the information processing equipment, the information processing medium and the information processing product can solve the problem of low replacement efficiency.
In a first aspect, an embodiment of the present application provides an information processing method, including:
acquiring configuration information, wherein the configuration information comprises M first dimension identifications of an object to be acquired and a replacement proportion corresponding to each first dimension identification, M is an integer larger than 1, the M first dimension identifications comprise at least two of a first object identification, a second object identification and a first category identification, the second object identified by the second object identification is a provider of the first object identified by the first object identification, and the category identified by the first category identification is a category to which the first object belongs;
Receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifications of a target object for application and exchange;
obtaining M replacement ratios corresponding to the second dimension identifiers from the configuration information;
calculating to obtain a target replacement proportion according to the replacement proportions corresponding to the M second dimension identifiers;
calculating to obtain the quantity of first resources replacing the target object according to the price of the target object and the target replacement proportion;
and if the number of the first resources is smaller than or equal to the number of the total resources, exchanging the target object by using the number of the first resources.
In a second aspect, the present application provides a point redemption device comprising:
the device comprises a first acquisition module, a second acquisition module and a first processing module, wherein the first acquisition module is used for acquiring configuration information, the configuration information comprises M first dimension identifiers of an object to be acquired and a replacement proportion corresponding to each first dimension identifier, M is an integer larger than 1, the M first dimension identifiers comprise at least two of a first object identifier, a second object identifier and a first category identifier, the second object identified by the second object identifier is a provider of the first object identified by the first object identifier, and the category identified by the first category identifier is a category to which the first object belongs;
The receiving module is used for receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifiers of a target object to be applied for exchange;
the second acquisition module is used for acquiring M replacement ratios corresponding to the second dimension identifiers from the configuration information;
the first calculation module is used for calculating and obtaining target replacement ratios according to the replacement ratios corresponding to the M second dimension identifiers;
the second calculation module is used for calculating the quantity of the first resources for replacing the target object according to the price of the target object and the target replacement proportion;
and the exchange module is used for adopting the number of the first resources to exchange the target object if the number of the first resources is smaller than or equal to the number of the total resources.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions;
the processor when executing the computer program instructions implements the information processing method as in any one of the embodiments of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement an information processing method as in any one of the embodiments of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, where instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform an information processing method implementing any one of the embodiments of the first aspect described above.
The information processing method, device, equipment, medium and product in the embodiment of the application, wherein the method comprises the following steps: acquiring configuration information, wherein the configuration information comprises M first dimension identifiers of an object to be acquired and a replacement proportion corresponding to each first dimension identifier, M is an integer greater than 1, and the M first dimension identifiers comprise at least two of a first object identifier, a second object identifier and a first category identifier; wherein the second object identified by the second object identification is a provider of the first object identified by the first object identification, and the category identified by the first category identification is a category to which the first object belongs; receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifications of a target object for application and exchange; obtaining M replacement ratios corresponding to the second dimension identifiers from the configuration information; calculating to obtain a target replacement proportion according to the replacement proportions corresponding to the M second dimension identifiers; calculating to obtain the quantity of first resources replacing the target object according to the price of the target object and the target replacement proportion; and if the number of the first resources is smaller than or equal to the number of the total resources, exchanging the target object by using the number of the first resources.
In the above process, when the target object is exchanged, the target replacement proportion can be calculated according to the replacement proportion corresponding to the preset dimension identifier in the configuration information, so that the obtained target replacement proportion is calculated according to the replacement proportion corresponding to the multi-dimension identifier, the first numerical value is calculated by using the target replacement proportion subsequently, the whole process does not need to be manually participated, and the acquisition efficiency of the target object can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a flow chart of an information processing method according to an embodiment of the present application;
FIG. 2 is a second flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 3 is a third flow chart of an information processing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a point exchange device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure. The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In order to solve the problems in the prior art, embodiments of the present application provide an information processing method, an apparatus, a device, a medium, and a product. The information processing method provided in the embodiment of the present application will be first described below.
Fig. 1 is a flow chart of an information processing method according to an embodiment of the present application. As shown in fig. 1, the method specifically may include the following steps:
step 101, obtaining configuration information, where the configuration information includes M first dimension identifiers of an object to be obtained and a replacement proportion corresponding to each first dimension identifier, M is an integer greater than 1, and the M first dimension identifiers include at least two of a first object identifier, a second object identifier and a first category identifier, where the second object identified by the second object identifier is a provider of the first object identified by the first object identifier, and the category identified by the first category identifier is a category to which the first object belongs.
For convenience of description, the dimension identifier in the configuration information is called a first dimension identifier, M first dimension identifiers are preconfigured in the configuration information, and each first dimension identifier corresponds to a replacement proportion, for example, if the M first dimension identifiers include a first object identifier, a second object identifier and a first type of object identifier, the first object identifier is: the mobile phone 1 of the brand A has a corresponding replacement proportion of 30%; the second object identification is: a cheering brand store, the corresponding replacement ratio is 50%; the first category is identified as: the corresponding replacement ratio of the electronic product is 10%.
The first object identification may be an item identification of the first item and the second object identification may be a merchant identification selling the first item.
For each commodity in the mall, a corresponding configuration record can be found in the configuration information, wherein the configuration record comprises at least two of a first object identifier, a second object identifier and a first category identifier, and a corresponding replacement proportion.
The replacement proportion can be preset by staff, and can be automatically adjusted according to the selling condition of the commodities in the shops in the malls, and the replacement proportion is not limited. For example, if the number of commodities sold is large, the replacement ratio corresponding to the first object identifier is increased; if the commodity selling total number of the store is large, the replacement proportion corresponding to the second object identifier is increased; if the total number of sales of a certain commodity category in the store is large, the replacement proportion corresponding to the first type of target identity of the commodity is increased.
Step 102, receiving a processing request, where the processing request includes the total resource amount and M second dimension identifications of the target object for which the exchange is applied.
The processing request may be triggered based on a user's exchange operation, for example, the user clicks an exchange control of the target object, and triggers sending of the processing request, and after the electronic device receives the processing request, the processing request is parsed to obtain the number of total resources of the user and M second dimension identifiers of the target object. The amount of total resources may refer to all points that the user may participate in the redemption.
For convenience of description, the dimension identifier in the processing request is referred to as a second dimension identifier, and may include a third object identifier of the target object, a fourth object identifier of a merchant to which the target object belongs, and a second commodity category identifier of a commodity category to which the target object belongs.
And step 103, obtaining the replacement proportion corresponding to the M second dimension identifiers from the configuration information.
And matching the M second dimension identifications with the first dimension identifications in the configuration information, for example, searching the first dimension identifications which are the same as the second dimension identifications in the configuration information, and taking the replacement proportion corresponding to the first dimension identifications as the replacement proportion corresponding to the second dimension identifications.
And 104, calculating to obtain a target replacement ratio according to the replacement ratios corresponding to the M second dimension identifiers.
After obtaining the replacement ratios corresponding to the M second dimension marks, multiplying the replacement ratios, and taking the product as a target replacement ratio; or, obtaining the weight corresponding to each second dimension identifier, and carrying out weighted average on the weight and the replacement proportion to obtain the target replacement proportion.
And 105, calculating to obtain the quantity of the first resources replacing the target object according to the price of the target object and the target replacement proportion.
Illustratively, calculating a first value for replacing the target object according to the price of the target object and the target replacement proportion; and calculating the number of the first resources replacing the target object according to the first value and the value corresponding to one resource.
In the above, the price of the target object may be multiplied by the target replacement ratio to obtain a first value, which is the amount of money that can be deducted by the points. The first value is divided by a value corresponding to one resource, namely divided by an amount that can be deducted by an integral, so as to calculate the number of the first resource, and it is to be noted that if the first value is divided by the amount that can be deducted by an integral, the obtained value is a decimal, an integer is obtained by rounding, and the integer is the number of the first resource.
And 106, if the number of the first resources is smaller than or equal to the number of the total resources, adopting the number of the first resources to exchange for the target object.
For example, if the number of the first resources is less than or equal to the number of the total resources, displaying a first prompt, where the first prompt is used to prompt the user of a remaining amount to be paid, and the remaining amount is a difference between the price of the target object and the first value;
And subtracting the number of the first resources from the number of the total resources and displaying a second prompt for prompting the user that the exchange is successful under the condition that the residual amount is larger than 0 and the successful payment of the residual amount is detected.
In this embodiment, when the target object is exchanged, the target replacement proportion may be calculated according to the replacement proportion corresponding to the preset dimension identifier in the configuration information, so that the obtained target replacement proportion is calculated according to the replacement proportion corresponding to the multi-dimension identifier, and the first numerical value is calculated by using the target replacement proportion subsequently.
Fig. 2 is a flow chart of an information processing method according to an embodiment of the present application. As shown in fig. 2, the method is applied to an electronic device, and specifically may include the following steps:
step 201, obtaining configuration information, where the configuration information includes M first dimension identifiers of an object to be obtained and a replacement proportion corresponding to each first dimension identifier, M is an integer greater than 1, and the M first dimension identifiers include at least two of a first object identifier, a second object identifier and a first category identifier, where the second object identified by the second object identifier is a provider of the first object identified by the first object identifier, and the category identified by the first category identifier is a category to which the first object belongs.
For convenience of description, the dimension identifier in the configuration information is called a first dimension identifier, M first dimension identifiers are preconfigured in the configuration information, and each first dimension identifier corresponds to a replacement proportion, for example, if the M first dimension identifiers include a first object identifier, a second object identifier and a first type of object identifier, the first object identifier is: the mobile phone 1 of the brand A has a corresponding replacement proportion of 30%; the second object identification is: a cheering brand store, the corresponding replacement ratio is 50%; the first category is identified as: the corresponding replacement ratio of the electronic product is 10%.
For each commodity in the mall, a corresponding configuration record can be found in the configuration information, wherein the configuration record comprises at least two of a first object identifier, a second object identifier and a first category identifier, and a corresponding replacement proportion.
The replacement proportion can be preset by staff, and can be automatically adjusted according to the selling condition of the commodities in the shops in the malls, and the replacement proportion is not limited. For example, if the number of commodities sold is large, the replacement ratio corresponding to the first object identifier is increased; if the commodity selling total number of the store is large, the replacement proportion corresponding to the second object identifier is increased; if the total number of sales of a commodity category in the store is large, the replacement ratio corresponding to the first category of target identity is increased.
Step 202, receiving a processing request, where the processing request includes the total resource amount and M second dimension identifications of the target object for which a swap is applied.
The processing request may be triggered based on a user's exchange operation, for example, the user clicks an exchange control of the target object, and triggers sending of the processing request, and after the electronic device receives the processing request, the processing request is parsed to obtain the number of total resources of the user and M second dimension identifiers of the target object. The amount of total resources may refer to all points that the user may participate in the redemption.
For convenience of description, the dimension identifier in the processing request is referred to as a second dimension identifier, and may include a third object identifier of the target object, a fourth object identifier of a merchant to which the target object belongs, and a second commodity category identifier of a commodity category to which the target object belongs.
Step 203, obtaining a first replacement ratio corresponding to the third object identifier and a second replacement ratio corresponding to the fourth object identifier from the configuration information.
The M second dimension identifications comprise a third object identification and a fourth object identification. The fourth object identified by the fourth object identification is a provider of the third object identified by the third object identification, e.g., the third object is a commodity and the fourth object is a merchant selling the commodity. Step 203 is a specific implementation of step 103.
Step 204, calculating a target replacement ratio according to the first replacement ratio and the second replacement ratio.
Step 204 is a specific implementation of step 104.
After obtaining the replacement ratios corresponding to the M second dimension marks, multiplying the replacement ratios, and taking the product as a target replacement ratio; or, obtaining the weight corresponding to each second dimension identifier, and carrying out weighted average on the weight and the replacement proportion to obtain the target replacement proportion.
Illustratively, step 204, calculating a target replacement ratio according to the first replacement ratio and the second replacement ratio includes:
according to the selling information of the target object sold by the object marked by the fourth object, determining a first weight of the first replacement proportion and a second weight of the second replacement proportion;
and calculating according to the first replacement proportion, the first weight, the second replacement proportion and the second weight to obtain a target replacement proportion.
In this embodiment, a first weight of a first replacement proportion and a second weight of the second replacement proportion may be determined according to vending information of the object vending target object, for example, if the number of objects of the fourth object identifier vending the target object in a first period of time is greater than a first threshold, and the current time is within a preset period of time, a random number is generated; if the random number is greater than 0.5, the random number is used as the second weight of the second replacement proportion, the value obtained by subtracting the random number from 1 is used as the first weight of the first replacement proportion, wherein the random number is a positive decimal, the first threshold is an average value of the number of target objects sold by preset objects in a mall, and the preset objects are all objects selling the target objects in the mall.
For another example, if the number of objects of the fourth object identifier selling the target objects in the first latest time period is less than or equal to the first threshold, and the current time is within the preset time period, generating a random number, where the random number is a positive decimal; and if the random number is larger than 0.5, taking the random number as a first weight of the first replacement proportion, and taking 1 minus the random number as a second weight of the second replacement proportion.
The current time may be the time at which the electronic device received the processing request. The preset time period may be preset, for example, as a holiday, or a commodity activity day, or a mall activity day, etc., and is not limited herein.
In the foregoing, according to the number of the target objects sold by the object identified by the fourth object in the first time period, and the current time being in the preset time period, a random number is generated, and the weight is determined by the random number, so that the determined weight has randomness, so that the target replacement proportion calculated based on the weight later also has randomness, and the first numerical value also has uncertainty due to the uncertainty of the target replacement proportion, so that the interest of commodity exchange can be improved.
Step 205, calculating to obtain the number of the first resources replacing the target object according to the price of the target object and the target replacement proportion.
Illustratively, calculating a first value for replacing the target object according to the price of the target object and the target replacement proportion; and calculating the number of the first resources replacing the target object according to the first value and the value corresponding to one resource.
In the above, the price of the target object may be multiplied by the target replacement ratio to obtain a first value, which is the amount of money that can be deducted by the points. The first value is divided by an amount that can be deducted by an integral, and the number of the first resources is calculated.
Step 206, if the number of the first resources is less than or equal to the number of the total resources, the number of the first resources is adopted for the target object.
For example, if the number of the first resources is less than or equal to the number of the total resources, displaying a first prompt, where the first prompt is used to prompt the user of a remaining amount to be paid, and the remaining amount is a difference between the price of the target object and the first value;
And subtracting the number of the first resources from the number of the total resources and displaying a second prompt for prompting the user that the exchange is successful under the condition that the residual amount is larger than 0 and the successful payment of the residual amount is detected.
In this embodiment, when the target object is exchanged, the target replacement proportion may be calculated according to the replacement proportion corresponding to the preset dimension identifier in the configuration information, so that the obtained target replacement proportion is calculated according to the replacement proportion corresponding to the multi-dimension identifier, and the first value is calculated by using the target replacement proportion subsequently.
Fig. 3 is a schematic flow chart of an information processing method according to an embodiment of the present application.
Acquiring a processing request and a conversion format according to the conversion interface; in actual operation, the operation of point proportion exchange needs to be further realized by calling the exchange interface, so in the embodiment, before the exchange task is initiated, the exchange interface is also called before the processing request is acquired, and then the operation of acquiring the exchange data, the processing request and the exchange format is realized according to the exchange interface. The processing request includes a conversion instruction, a commodity to be converted and a conversion amount of a quantity proportion of a first resource, the object to be obtained and the conversion amount of the quantity proportion of the first resource can be shown by specific examples, for example, the commodity to be converted is represented by a token, the conversion amount of the quantity proportion of the first resource is represented by an actual digital amount, if a user wants to convert multiple commodities, the processing request can be represented by a token, a token2 and the like, at this time, the obtained processing request can include the commodity token and the token2 which need to be converted by the user, the conversion amount of the commodity token needed to be converted by the user is 10 points, and the conversion amount of the commodity token2 is 20 points. The exchange format is a data format formulated according to the needs of the user, and after the point proportion exchange result is obtained, the result is converted into a final exchange result with the same data format as the exchange format. The exchange format in the embodiment of the invention can be set by the user, can be automatically generated by an exchange system and can be selected by the user.
And according to the processing request, acquiring dynamic cache of the platform, wherein the dynamic cache comprises information of the platform, such as supporting exchange currency, real-time exchange quantity and the like, the dynamic cache information comprises, for example, the platform supports M number of token1 to exchange N number of token2, the token1 and the token2 are commodities supported to be exchanged by the platform, and M and N are first values of the point proportion.
Obtaining a conversion result of the object to be obtained according to the processing request and the dynamic cache; the processing request comprises the object to be acquired and the first multi-dimensional point proportion value, and the dynamic cache comprises the commodity which is supported by the platform and the first multi-dimensional point proportion value set by operators, so that a final exchange result which can be used by a user can be obtained according to the processing request and the dynamic cache, and the user can customize and select the point quantity to be used in the final exchange result range. For example, when the user wants to exchange 700 points for the commodity token2 when ordering, the dynamic cache acquired from the platform is used for supporting 1400 points for exchanging token2, the user can select to use token2 lower than 1400 points to exchange token1 for the platform, and if 700 points are selected, the exchange result acquired by the exchange system is 700 points for token2 exchanging token1.
And according to the exchange format, carrying out data format modification on the exchange result to obtain a final exchange result. As described above, the conversion format is a data format meeting the user requirement, for example, the conversion format desired by the user is yoken 2-xtoken1, X and Y are respectively conversion amounts, token2 is the point of the user, token is the commodity to be converted, after the third step, the conversion result can be modified into 700token2-token1 according to the conversion format, and the modified result is the final conversion result.
The method guarantees the integrity of the integral proportion exchange flow based on the dynamic cache, obtains the proportion first values of all dimensions through the dynamic cache, performs algorithm verification, obtains the final exchange result, and sends the final proportion first values to the payment platform for integral countering. The timeliness of the multi-dimensional integral proportion data of the platform is guaranteed by the dynamic cache, and the accurate synchronization of the data is guaranteed; the universality of integral deduction is ensured through the exchange of the platform multidimensional integral proportion; transaction details and a transaction detail list corresponding to the exchange result are updated to a database in time, so that the accuracy and timeliness of the update of the exchange result are ensured; in addition, one exchange interface in the method can be connected with a plurality of third party platforms, so that different requirements of platform commodity suppliers are met, and the flexibility and expandability of point exchange are improved.
Fig. 4 is a schematic structural diagram of a point exchange device according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 4, the point redemption device 400 may include:
a first obtaining module 401, configured to obtain configuration information, where the configuration information includes M first dimension identifiers of an object to be obtained and a replacement ratio corresponding to each first dimension identifier, M is an integer greater than 1, and the M first dimension identifiers include at least two of a first object identifier, a second object identifier, and a first category identifier, where the second object identified by the second object identifier is a provider of the first object identified by the first object identifier, and the category identified by the first category identifier is a category to which the first object belongs;
a receiving module 402, configured to receive a processing request, where the processing request includes a total resource amount and M second dimension identifiers of a target object for which a swap is applied;
a second obtaining module 403, configured to obtain, from the configuration information, replacement ratios corresponding to M second dimension identifiers;
a first calculation module 404, configured to calculate a target replacement ratio according to the replacement ratios corresponding to the M second dimension identifiers;
A second calculation module 405, configured to calculate, according to the price of the target object and the target replacement proportion, the number of first resources that replace the target object;
and a redemption module 406, configured to redeem the target object with the number of the first resources if the number of the first resources is less than or equal to the number of the total resources.
In an embodiment of the present application, the M second dimension identifications include a third object identification and a fourth object identification, where the fourth object identified by the fourth object identification is a provider of the third object identified by the third object identification;
the second obtaining module 401 is specifically configured to obtain, from the configuration information, a first replacement proportion corresponding to the second object identifier and a second replacement proportion corresponding to the fourth object identifier;
a first computing module comprising:
and the first calculation sub-module is used for calculating and obtaining a target replacement proportion according to the first replacement proportion and the second replacement proportion.
In an embodiment of the present application, the first computing sub-module includes:
the determining unit is used for determining a first weight of the first replacement proportion and a second weight of the second replacement proportion according to the selling information of the target object sold by the object marked by the fourth object;
And the calculating unit is used for calculating the target replacement proportion according to the first replacement proportion, the first weight, the second replacement proportion and the second weight.
In an embodiment of the present application, the determining unit is configured to:
if the number of the objects sold by the fourth object identification in the latest first time period is larger than a first threshold value and the current moment is in a preset time period, generating a random number, wherein the random number is a positive decimal;
if the random number is greater than 0.5, the random number is used as the second weight of the second replacement proportion, the value obtained by subtracting the random number from 1 is used as the first weight of the first replacement proportion, wherein the first threshold is the average value of the number of target objects sold by preset objects in the mall, and the preset objects are all objects selling the target objects in the mall.
In an embodiment of the present application, the determining unit is configured to:
if the number of the objects sold by the fourth object identification in the latest first time period is smaller than or equal to a first threshold value and the current moment is in a preset time period, generating a random number, wherein the random number is a positive decimal;
And if the random number is larger than 0.5, taking the random number as a first weight of the first replacement proportion, and taking 1 minus the random number as a second weight of the second replacement proportion.
In an embodiment of the present application, the second calculation module 405 includes:
the second calculation sub-module is used for calculating to obtain a first numerical value for replacing the target object according to the price of the target object and the target replacement proportion;
and the third calculation sub-module is used for calculating the number of the first resources replacing the target object according to the first value and the value corresponding to one resource.
The point exchange device 400 provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, a description is omitted here.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 5 shows a schematic hardware structure of an electronic device according to an embodiment of the present application.
The device may include a processor 501 and a memory 502 in which program instructions are stored.
The steps of any of the various method embodiments described above are implemented when the processor 501 executes a program.
For example, a program may be partitioned into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to complete the present application. One or more of the modules/units may be a series of program instruction segments capable of performing specific functions to describe the execution of the program in the device.
In particular, the processor 501 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 502 may include mass storage for data or instructions. By way of example, and not limitation, memory 502 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 502 may include removable or non-removable (or fixed) media, where appropriate. Memory 502 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 502 is a non-volatile solid state memory.
The memory may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to methods in accordance with aspects of the present disclosure.
The processor 501 implements any one of the methods of the above embodiments by reading and executing program instructions stored in the memory 502.
In one example, the electronic device may also include a communication interface 503 and a bus 510. The processor 501, the memory 502, and the communication interface 503 are connected to each other via a bus 510 and perform communication with each other.
The communication interface 503 is mainly used to implement communication between each module, apparatus, unit and/or device in the embodiments of the present application.
Bus 510 includes hardware, software, or both that couple the components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 510 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
In addition, in combination with the method in the above embodiment, the embodiment of the application may be implemented by providing a storage medium. The storage medium has program instructions stored thereon; the program instructions, when executed by a processor, implement any of the methods of the embodiments described above.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the above method embodiment are realized, the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer grids such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable point redemption device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable point redemption device, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (10)

1. An information processing method, characterized in that the method comprises:
acquiring configuration information, wherein the configuration information comprises M first dimension identifications of an object to be acquired and a replacement proportion corresponding to each first dimension identification, M is an integer larger than 1, the M first dimension identifications comprise at least two of a first object identification, a second object identification and a first category identification, the second object identified by the second object identification is a provider of the first object identified by the first object identification, and the category identified by the first category identification is a category to which the first object belongs;
receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifications of a target object for application and exchange;
obtaining M replacement ratios corresponding to the second dimension identifiers from the configuration information;
calculating to obtain a target replacement proportion according to the replacement proportions corresponding to the M second dimension identifiers;
calculating to obtain the quantity of first resources replacing the target object according to the price of the target object and the target replacement proportion;
and if the number of the first resources is smaller than or equal to the number of the total resources, the first resources are adopted for exchanging the target object.
2. The method of claim 1, wherein the M second dimension identifications comprise a third object identification and a fourth object identification, the fourth object identified by the fourth object identification being a provider of the third object identified by the third object identification;
obtaining the replacement proportion corresponding to the M second dimension identifiers from the configuration information comprises the following steps:
acquiring a first replacement proportion corresponding to the third object identifier and a second replacement proportion corresponding to the fourth object identifier from the configuration information;
according to the replacement proportion corresponding to the M second dimension identifiers, calculating to obtain a target replacement proportion, wherein the target replacement proportion comprises:
and calculating to obtain a target replacement ratio according to the first replacement ratio and the second replacement ratio.
3. The method of claim 2, wherein calculating a target substitution ratio based on the first substitution ratio and the second substitution ratio comprises:
according to the selling information of the target object sold by the object marked by the fourth object, determining a first weight of the first replacement proportion and a second weight of the second replacement proportion;
and calculating according to the first replacement proportion, the first weight, the second replacement proportion and the second weight to obtain a target replacement proportion.
4. A method according to claim 3, wherein determining the first weight of the first replacement proportion and the second weight of the second replacement proportion according to the selling information of the fourth object identified object selling the target object comprises:
if the number of the objects sold by the fourth object identification in the latest first time period is larger than a first threshold value and the current moment is in a preset time period, generating a random number, wherein the random number is a positive decimal;
if the random number is greater than 0.5, the random number is used as the second weight of the second replacement proportion, the value obtained by subtracting the random number from 1 is used as the first weight of the first replacement proportion, wherein the first threshold is the average value of the number of target objects sold by preset objects in the mall, and the preset objects are all objects selling the target objects in the mall.
5. A method according to claim 3, wherein determining the first weight of the first replacement proportion and the second weight of the second replacement proportion according to the selling information of the fourth object identified object selling the target object comprises:
If the number of the objects sold by the fourth object identification in the latest first time period is smaller than or equal to a first threshold value and the current moment is in a preset time period, generating a random number, wherein the random number is a positive decimal;
and if the random number is larger than 0.5, taking the random number as a first weight of the first replacement proportion, and taking 1 minus the random number as a second weight of the second replacement proportion.
6. The method of claim 1, wherein calculating the number of first resources to replace the target object based on the price of the target object and the target replacement proportion comprises:
calculating to obtain a first numerical value for replacing the target object according to the price of the target object and the target replacement proportion;
and calculating the number of the first resources replacing the target object according to the first value and the value corresponding to one resource.
7. A point redemption device, the device comprising:
the device comprises a first acquisition module, a second acquisition module and a first processing module, wherein the first acquisition module is used for acquiring configuration information, the configuration information comprises M first dimension identifiers of an object to be acquired and a replacement proportion corresponding to each first dimension identifier, M is an integer larger than 1, the M first dimension identifiers comprise at least two of a first object identifier, a second object identifier and a first category identifier, the second object identified by the second object identifier is a provider of the first object identified by the first object identifier, and the category identified by the first category identifier is a category to which the first object belongs;
The receiving module is used for receiving a processing request, wherein the processing request comprises the number of total resources and M second dimension identifiers of a target object to be applied for exchange;
the second acquisition module is used for acquiring M replacement ratios corresponding to the second dimension identifiers from the configuration information;
the first calculation module is used for calculating and obtaining target replacement ratios according to the replacement ratios corresponding to the M second dimension identifiers;
the second calculation module is used for calculating the quantity of the first resources for replacing the target object according to the price of the target object and the target replacement proportion;
and the exchange module is used for adopting the number of the first resources to exchange the target object if the number of the first resources is smaller than or equal to the number of the total resources.
8. An electronic device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the information processing method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement the information processing method according to any of claims 1-6.
10. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the information processing method according to any of claims 1-6.
CN202410005170.2A 2024-01-02 2024-01-02 Information processing method, device, equipment, medium and product Pending CN117745352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410005170.2A CN117745352A (en) 2024-01-02 2024-01-02 Information processing method, device, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410005170.2A CN117745352A (en) 2024-01-02 2024-01-02 Information processing method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN117745352A true CN117745352A (en) 2024-03-22

Family

ID=90260885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410005170.2A Pending CN117745352A (en) 2024-01-02 2024-01-02 Information processing method, device, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN117745352A (en)

Similar Documents

Publication Publication Date Title
CN111461763A (en) Resource allocation method and device
CN111475532B (en) Data processing optimization method and device, storage medium and terminal
CN110347887B (en) Method and device for acquiring time sequence data of service scene
CN109740066B (en) Information recommendation method, information recommendation device, storage medium and electronic equipment
CN117745352A (en) Information processing method, device, equipment, medium and product
CN116205641A (en) Payment method, device, equipment, medium and product
CN114285896A (en) Information pushing method, device, equipment, storage medium and program product
CN113706272A (en) Commodity information processing method and device and electronic equipment
CN113554493A (en) Interactive ordering method, device, electronic equipment and computer readable medium
CN116720887A (en) Method, device, equipment, storage medium and program for issuing preferential rights
CN114693417A (en) Automatic data processing method, device and equipment for interest bearing and computer storage medium
CN112632056B (en) Method and device for generating inspection rule
CN115994294A (en) Data processing method, device, equipment and computer storage medium
CN114757714A (en) Virtual resource allocation method and device
CN116109304A (en) Credit card medium data processing method and device based on scenerization business system
CN116010682A (en) Data query method and device, equipment, medium and product thereof
CN116523514A (en) Method, device, equipment, storage medium and product for processing static graphic code
CN114387045A (en) Bill generation method and device, computer equipment and computer readable storage medium
CN113837800A (en) Transaction processing method and device
CN117635294A (en) Data processing method, device, equipment and computer storage medium
CN116257592A (en) Method and device for determining similar items of data items, electronic equipment and storage medium
CN115858531A (en) Configuration method, device, equipment, medium and product of structured parameter table
CN118052543A (en) Online payment method, online payment device, online payment equipment, online payment storage medium and online payment program product
CN114240572A (en) Information acquisition method, device, equipment and computer storage medium
CN114997939A (en) Information processing method, information processing apparatus, electronic device, information processing medium, and program product

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