Method, device, equipment and storage medium for processing flash sale activities

By obtaining and splicing multi-dimensional fields of flash sale activities and encrypting them, determining the cache key of Alibaba Cloud's key-value storage, the problem of difficulty in adjusting flash sale solutions in the existing e-commerce system is solved, and flexible configuration and efficient processing of flash sale activities are realized.

CN113902487BActive Publication Date: 2025-04-25CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111217950.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2025-04-25
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

The existing e-commerce system has customized the development of product flash sale solutions, which are difficult to adjust the solutions and take a long time to meet the application needs.

Method used

By obtaining the multi-dimensional fields of the pending flash sale activity, splicing it into a string according to the preset splicing order, and encrypting the string, obtaining an encrypted string, which is used to determine the cache keys of Alibaba Cloud's key-value storage, and thus performing flash sale activity.

Benefits of technology

It realizes flexible configuration of flash sale activities, without the need to design logic for each flash sale activity, simplifies the cached key value stored in Alibaba Cloud's key value in multi-dimensional scenarios, avoids information tampering, and improves processing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113902487B_ABST
    Figure CN113902487B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for processing a flash sale activity, wherein the method obtains multi-dimensional fields of the flash sale activity, and the multi-dimensional fields include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time and activity end time, and then, according to a preset splicing order, splices the above multi-dimensional fields into a first string, encrypts the first string, obtains an encrypted string, and determines the cache key of kvStore based on the encrypted string, thereby, based on the cache key, performing a flash sale activity, achieving flexible configuration of the flash sale activity, and eliminating the need to design logic for each flash sale activity, solving the problem that the existing e-commerce system develops a flash sale solution for products through customization, and the solution adjustment is difficult and time-consuming. Moreover, the embodiment of the present application simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sale activity, and does not cause the cache key to be too long due to multiple dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of e-commerce technology, and in particular to a method, device, equipment and storage medium for processing flash sales activities. Background Art

[0002] In e-commerce systems, it is often necessary to increase website traffic and promote product sales through various promotional offers.

[0003] Existing e-commerce systems usually implement e-commerce promotion policies through customized development. This includes limited-time flash sales. Merchants submit product information participating in the flash sales on the flash sales platform of the e-commerce system, and the platform displays the information on the flash sales page, where buyers can select products and buy them. Limited-time flash sales increase store sales and bring discounts to buyers.

[0004] However, because existing e-commerce systems develop product flash sales solutions through customization, it is difficult to adjust the solutions, takes a long time, and cannot meet application needs. Summary of the invention

[0005] In order to solve the problems existing in the prior art, the present application provides a method, device, equipment and storage medium for processing a flash sale activity.

[0006] In a first aspect, the present application provides a method for processing a flash sale activity, the method comprising the following steps:

[0007] Obtain multi-dimensional fields of the flash sale activity to be processed, wherein the multi-dimensional fields include inventory type, activity ID, product ID, cycle type, region ID, activity start time and activity end time;

[0008] According to a preset splicing order, the multi-dimensional fields are spliced ​​into a first string;

[0009] Encrypt the first character string to obtain an encrypted string, and determine a cache key of Alibaba Cloud key-value storage based on the encrypted string;

[0010] Based on the cache key, a flash sale activity is performed.

[0011] In a possible implementation, the performing a flash sale activity based on the cache key includes:

[0012] If a flash sale product acquisition request sent by a user is received, judging whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product;

[0013] If the flash sale product is not oversold, an order for the flash sale product of the user is generated, and the inventory of the flash sale product is updated.

[0014] In a possible implementation manner, before encrypting the first character string to obtain an encrypted character string, the method further includes:

[0015] Based on the cycle type, splicing a time parameter at the cycle type of the first character string, and according to the inventory type, splicing a user parameter at the inventory type of the first character string to obtain a second character string;

[0016] The step of encrypting the first character string to obtain an encrypted character string includes:

[0017] The second character string is encrypted to obtain an encrypted character string.

[0018] In a possible implementation, the step of splicing a time parameter at the period type of the first character string based on the period type includes:

[0019] If the period type is month, concatenate the year and month of the current time point at the period type of the first character string;

[0020] If the cycle type is a week, concatenate the year of the current time point to the cycle type of the first character string, and then concatenate the week of the current time point;

[0021] If the period type is day, concatenate the year, month and day of the current time point at the period type of the first character string;

[0022] If the period type is a time period, the year, month, and day of the current time point are concatenated at the period type of the first character string, and then the start time point and the end time point of the daily time period are concatenated.

[0023] In a possible implementation, the step of adding a user parameter to the inventory type of the first character string according to the inventory type includes:

[0024] If the inventory type is user quota, the mobile phone number of the user currently participating in the activity is concatenated at the inventory type of the first character string.

[0025] In a second aspect, the present application provides a device for processing a flash sale activity, the device comprising:

[0026] An acquisition module, used to acquire multi-dimensional fields of a pending flash sale activity, wherein the multi-dimensional fields include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time, and activity end time;

[0027] A splicing module, used for splicing the multi-dimensional fields into a first string according to a preset splicing order;

[0028] An encryption module, used to encrypt the first character string to obtain an encrypted string, and determine a cache key of Alibaba Cloud key-value storage based on the encrypted string;

[0029] The processing module is used to carry out a flash sale activity based on the cache key.

[0030] In a possible implementation, the processing module is specifically configured to:

[0031] If a flash sale product acquisition request sent by a user is received, judging whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product;

[0032] If the flash sale product is not oversold, an order for the flash sale product of the user is generated, and the inventory of the flash sale product is updated.

[0033] In a possible implementation, the method further includes a modification module, which is used to, before the encryption module encrypts the first character string to obtain an encrypted string, splice a time parameter at the period type of the first character string based on the period type, and splice a user parameter at the inventory type of the first character string based on the inventory type, to obtain a second character string;

[0034] The encryption module is specifically used for:

[0035] The second character string is encrypted to obtain an encrypted character string.

[0036] In a possible implementation, the modification module is specifically used to:

[0037] If the period type is month, concatenate the year and month of the current time point at the period type of the first character string;

[0038] If the cycle type is a week, concatenate the year of the current time point to the cycle type of the first character string, and then concatenate the week of the current time point;

[0039] If the period type is day, concatenate the year, month and day of the current time point at the period type of the first character string;

[0040] If the period type is a time period, the year, month, and day of the current time point are concatenated at the period type of the first character string, and then the start time point and the end time point of the daily time period are concatenated.

[0041] In a possible implementation, the modification module is specifically used to:

[0042] If the inventory type is user quota, the mobile phone number of the user currently participating in the activity is concatenated at the inventory type of the first character string.

[0043] In a third aspect, the present application provides a flash sale activity processing device, including:

[0044] processor;

[0045] Memory; and

[0046] Computer programs;

[0047] The computer program is stored in the memory and is configured to be executed by the processor, wherein the computer program includes instructions for executing the method as described in the first aspect.

[0048] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a server to execute the method described in the first aspect.

[0049] In a fifth aspect, the present application provides a computer program product, comprising computer instructions, wherein the computer instructions are executed by a processor according to the method described in the first aspect.

[0050] The present application provides a method, device, equipment and storage medium for processing second kill activities. The method obtains the multi-dimensional fields of the second kill activities to be processed, and the multi-dimensional fields include inventory type, activity identification, product identification, cycle type, region identification, activity start time and activity end time. Then, according to the preset splicing order, the above multi-dimensional fields are spliced ​​into a first string, the first string is encrypted to obtain an encrypted string, and the cache key of Alibaba Cloud key-value storage is determined based on the encrypted string. Thus, based on the cache key, the second kill activity is carried out, and the second kill activity is flexibly configured, and there is no need to design logic for each second kill activity, which solves the problem that the existing e-commerce system develops a second kill solution through customization, and it is difficult to adjust the solution and takes a long time. Moreover, the present application also simplifies the cache key value of Alibaba Cloud key-value storage in the multi-dimensional scenario of the second kill activity, and the cache key will not be too long due to the large number of dimensions, which meets the application needs. In addition, the present application encrypts the generated string and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0052] Figure 1 A schematic diagram of the e-commerce system architecture provided for an embodiment of the present application;

[0053] Figure 2 A flowchart of a method for processing a flash sale activity provided in an embodiment of the present application;

[0054] Figure 3 A flowchart of another method for processing a flash sale activity provided in an embodiment of the present application;

[0055] Figure 4 The simplified logic of the Aliyun Key-Value Store (kvStore) cache key in the multi-dimensional inventory scenario provided in the embodiment of the present application;

[0056] Figure 5 A schematic diagram of a flash sale activity processing provided in an embodiment of the present application;

[0057] Figure 6 A schematic diagram of the structure of a flash sale activity processing device provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of the structure of another device for processing flash sales activities provided in an embodiment of the present application;

[0059] Fig. 8A A schematic diagram of the basic hardware architecture of a flash sale activity processing device provided in this application;

[0060] Figure 8B A schematic diagram of the basic hardware architecture of another flash sale activity processing device provided in this application. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] The terms "first", "second", "third", and "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0063] The so-called "second kill" is a sales method in which online sellers release some super-low-priced goods and all buyers rush to buy them online at the same time. In layman's terms, it is an online limited-time rush buying activity organized by online merchants for promotional purposes. Due to the low price of the goods, they are often sold out as soon as they are put on the shelves, sometimes in just one second. Existing second kill activities are usually implemented by e-commerce systems through customized development. However, e-commerce systems use customized development of product second kill solutions, which are difficult to adjust and take a long time, and cannot meet application needs.

[0064] Therefore, the embodiment of the present application proposes a method for processing a flash sale activity, which generates a string through the multi-dimensional fields of the flash sale activity, encrypts the string, and uses the encrypted string as the cache key of kvStore, so that the flash sale activity can be carried out based on the cache key, and the flash sale activity can be flexibly configured without designing logic for each flash sale activity, which solves the problem that the existing e-commerce system develops a flash sale solution for goods through customization, and the solution adjustment is difficult and time-consuming. Moreover, the embodiment of the present application also simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sale activity, and the cache key will not be too long due to the large number of dimensions, which meets the application needs. In addition, the embodiment of the present application encrypts the generated string, and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing.

[0065] Optionally, the method for processing a flash sale provided in this application can be applied to Figure 1 The e-commerce system architecture diagram shown in Figure 1 As shown, the system may include at least one of a receiving device 101 , a processing device 102 and a display device 103 .

[0066] In the specific implementation process, the receiving device 101 can be an input / output interface or a communication interface, which can be used to receive multi-dimensional fields of flash sale activities, which may include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time and activity end time, etc.

[0067] The processing device 102 can obtain the multi-dimensional fields of the above-mentioned flash sale activity through the above-mentioned receiving device 101, and then splice them into a string, and encrypt the string, and use the encrypted string as the cache key of kvStore, so that based on the cache key, the flash sale activity can be carried out, and the flash sale activity can be flexibly configured, without the need to design logic for each flash sale activity, which solves the problem that the existing e-commerce system develops a flash sale plan for goods through customization, and the plan adjustment is difficult and time-consuming. Moreover, the processing device 102 also simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sale activity, and the cache key will not be too long due to the large number of dimensions, which meets the application needs. In addition, the processing device 102 encrypts the generated string, and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing.

[0068] The display device 103 can be used to display the multi-dimensional fields, concatenated character strings, encrypted character strings, etc. of the above-mentioned flash sale activities.

[0069] The display device may also be a touch display screen, which is used to receive user instructions while displaying the above content to achieve interaction with the user.

[0070] It should be understood that the above-mentioned processing device can be implemented by a processor reading instructions in a memory and executing the instructions, or it can be implemented by a chip circuit.

[0071] The above system is only an exemplary system, and can be configured according to application requirements during specific implementation.

[0072] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the e-commerce system architecture. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0073] In addition, the system architecture described in the embodiments of the present application is intended to more clearly illustrate the technical solutions of the embodiments of the present application, and does not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0074] The technical solution of the present application is described below by taking several embodiments as examples, and the same or similar concepts or processes may not be repeated in some embodiments.

[0075] Figure 2 A flowchart of a method for processing a flash sale activity is provided for an embodiment of the present application. The execution subject of this embodiment may be Figure 1 The processing device in the embodiment shown, such as Figure 2 As shown, the method may include:

[0076] S201: Acquire multi-dimensional fields of a flash sale activity to be processed, where the multi-dimensional fields include inventory type, activity ID, product ID, cycle type, region ID, activity start time, and activity end time.

[0077] Among them, the pending flash sales activities can be determined based on actual conditions, such as the flash sales of product A.

[0078] Here, the inventory type includes an activity quota or a user quota. The cycle type includes a month, a week, a day, and a time period. The processing device may query the inventory multi-dimensional configuration information currently in effect and configured through a web page, thereby obtaining the multi-dimensional field from the configuration information.

[0079] In addition, in addition to the above-mentioned information, the above-mentioned multidimensional field may also include other information, such as the start time point of each day and the end time point of each day, which can be determined according to actual conditions, and the embodiments of the present application do not impose any special restrictions on this.

[0080] The embodiment of the present application configures subsequent activities by acquiring multi-dimensional fields of the flash sale activity to be processed, so that the configured activities can support multi-dimensional flash sale activity scenarios and meet various application needs.

[0081] S202: According to a preset concatenation order, the multi-dimensional fields are concatenated into a first character string.

[0082] Here, the above preset splicing order can be determined according to actual conditions, for example, first the inventory type, then the activity identifier, the product identifier, the cycle type, the region identifier, and finally the activity start time and the activity end time.

[0083] The processing device concatenates the inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time and activity end time into a first character string according to the preset concatenation order.

[0084] S203: Encrypt the first character string to obtain an encrypted string, and determine the cache key of the kvStore based on the encrypted string.

[0085] Exemplarily, the processing device may perform MD5 encoding on the first string to obtain a 32-bit encrypted string, and determine the cache key of the kvStore based on the encrypted string, such as concatenating the encrypted string with the inventory type as a prefix as the cache key of the kvStore.

[0086] Here, the embodiment of the present application simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sale activity, and does not cause the cache key to be too long due to the large number of dimensions, thus meeting the application needs.

[0087] S204: Based on the cache key, a flash sale activity is carried out.

[0088] Exemplarily, if the processing device receives a flash sale product acquisition request sent by a user, it can determine whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product. If the flash sale product is not oversold, the processing device can generate an order for the flash sale product of the user and update the inventory of the flash sale product. If the flash sale product is oversold, the processing device can generate a stop flash sale and generate a corresponding prompt, such as the flash sale product is oversold.

[0089] Here, if the processing device detects that the user performs an incr on the simplified cache key, the current number of participations is obtained, and the number of participations is compared with the total inventory quota of the activity to determine whether the flash sale product is oversold. If the number of participations is less than the total inventory quota of the activity, the processing device determines that the flash sale product is not oversold, otherwise, it is determined that the flash sale product is oversold.

[0090] The embodiment of the present application obtains the multi-dimensional fields of the pending flash sale activity, which include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time and activity end time, and then, according to the preset splicing order, splices the above multi-dimensional fields into a first string, encrypts the first string, obtains an encrypted string, and determines the cache key of kvStore based on the encrypted string, so that the flash sale activity is carried out based on the cache key, and the flash sale activity is flexibly configured without the need to design logic for each flash sale activity, which solves the problem that the existing e-commerce system develops a flash sale solution for goods through customization, and it is difficult to adjust the solution and takes a long time. Moreover, the embodiment of the present application simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sale activity at the same time, and the cache key will not be too long due to the large number of dimensions, which meets the application needs. In addition, the embodiment of the present application encrypts the generated string and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing.

[0091] In addition, in order to meet application requirements in different application scenarios, the embodiment of the present application also considers splicing time parameters at the cycle type of the above-mentioned first string based on the above-mentioned cycle type before encrypting the above-mentioned first string to obtain the encrypted string, and splicing user parameters at the inventory type of the above-mentioned first string according to the above-mentioned inventory type to obtain the second string, thereby encrypting the second string to obtain the encrypted string. Figure 3 This is a flow chart of another method for processing a flash sale activity proposed in an embodiment of the present application. Figure 3 As shown, the method includes:

[0092] S301: Obtain multi-dimensional fields of a flash sale activity to be processed, where the multi-dimensional fields include inventory type, activity ID, product ID, cycle type, region ID, activity start time, and activity end time.

[0093] S302: According to a preset concatenation order, the multi-dimensional fields are concatenated into a first character string.

[0094] Among them, steps S301-S302 refer to the relevant description of the above steps S201-S202, which will not be repeated here.

[0095] S303: Based on the cycle type, a time parameter is concatenated at the cycle type of the first character string, and according to the inventory type, a user parameter is concatenated at the inventory type of the first character string to obtain a second character string.

[0096] Exemplarily, if the cycle type is month, the processing device may concatenate the year and month of the current time point at the cycle type of the first character string. If the cycle type is week, the processing device may concatenate the year of the current time point at the cycle type of the first character string, and then concatenate the week of the current time point. If the cycle type is day, the processing device may concatenate the year, month, and day of the current time point at the cycle type of the first character string. If the cycle type is time period, the processing device may concatenate the year, month, and day of the current time point at the cycle type of the first character string, and then concatenate the start time point and end time point of the daily time period.

[0097] In addition, if the inventory type is a user quota, the processing device may concatenate the mobile phone number of the user currently participating in the activity at the inventory type of the first character string.

[0098] Specifically, Figure 4 As shown, the embodiment of the present application also considers splicing time parameters at the cycle type of the above-mentioned first character string based on the above-mentioned cycle type, and splicing user parameters at the inventory type of the above-mentioned first character string according to the above-mentioned inventory type to obtain a second character string, thereby encrypting the second character string to obtain an encrypted string to meet application requirements in different application scenarios.

[0099] S304: Encrypt the second character string to obtain an encrypted string, and determine the cache key of kvStore based on the encrypted string.

[0100] S305: Based on the cache key, a flash sale activity is carried out.

[0101] Among them, steps S304-S305 refer to the relevant description of the above steps S203-S204, which will not be repeated here.

[0102] In order to meet the application requirements in different application scenarios, the embodiment of the present application also considers splicing the time parameter at the cycle type of the above-mentioned first string based on the above-mentioned cycle type, and splicing the user parameter at the inventory type of the above-mentioned first string according to the above-mentioned inventory type, to obtain a second string, thereby encrypting the second string to obtain an encrypted string. Moreover, the embodiment of the present application carries out a second kill activity based on the cache key of the above-mentioned kvStore, so that the second kill activity can be flexibly configured, and there is no need to design logic for each second kill activity, which solves the problem that the existing e-commerce system develops a second kill solution through customization, and it is difficult to adjust the solution and takes a long time. The embodiment of the present application also simplifies the cache key value of kvStore in the multi-dimensional scenario of the second kill activity, and the cache key will not be too long due to the large number of dimensions, so as to meet the application needs. In addition, the embodiment of the present application encrypts the generated string, and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing.

[0103] In the embodiments of the present application, Figure 5 As shown, the processing device can first receive the corresponding instructions of the administrator, configure the multi-dimensional inventory, and after the configuration is completed, feedback the corresponding information to the administrator. When a user participates in a flash sale activity, the processing device can query the multi-dimensional inventory to obtain the multi-dimensional fields of the flash sale activity to be processed, and the multi-dimensional fields include inventory type, activity ID, product ID, cycle type, region ID, activity start time and activity end time. Then, according to the preset splicing order, the multi-dimensional fields are spliced ​​into a first string, the first string is encrypted to obtain an encrypted string, and based on the encrypted string, the cache key of kvStore is determined. When it is detected that the user incrs the simplified cache key, the processing device can obtain the current number of participations, compare the number of participations with the total quota of the activity inventory, and if there is no oversold, the inventory is deducted and the flash sale activity is participated in, and the corresponding information is returned to the user.

[0104] Among them, compared with the prior art, the above-mentioned processing device performs flash sales activities based on the cache key of the above-mentioned kvStore, so as to achieve flexible configuration of the flash sales activities, without the need to design logic for each flash sales activity, and solves the problem that the existing e-commerce system develops flash sales solutions for commodities through customization, and it is difficult to adjust the solutions and takes a long time. Moreover, the above-mentioned processing device also simplifies the cache key value of kvStore in the multi-dimensional scenario of the flash sales activities, and will not cause the cache key to be too long due to the large number of dimensions, thus meeting the application needs. In addition, the above-mentioned processing device encrypts the generated string, and uses the encrypted string for subsequent processing to avoid information tampering and improve the accuracy of subsequent processing.

[0105] Corresponding to the method for processing flash sales activities in the above embodiment, Figure 6 This is a schematic diagram of the structure of the flash sale activity processing device provided in the embodiment of the present application. For the convenience of explanation, only the parts related to the embodiment of the present application are shown. Figure 6 A schematic diagram of the structure of a flash sale activity processing device provided in an embodiment of the present application, the flash sale activity processing device 60 includes: an acquisition module 601, a splicing module 602, an encryption module 603 and a processing module 604. The flash sale activity processing device here can be the above-mentioned processing device itself, or a chip or integrated circuit that implements the functions of the above-mentioned processing device. It should be noted here that the division of the acquisition module, the splicing module, the encryption module and the processing module is only a division of logical functions, and the two can be physically integrated or independent.

[0106] Among them, the acquisition module 601 is used to obtain the multi-dimensional fields of the flash sale activity to be processed, and the multi-dimensional fields include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time and activity end time.

[0107] The splicing module 602 is used to splice the multi-dimensional fields into a first character string according to a preset splicing order.

[0108] The encryption module 603 is used to encrypt the first character string to obtain an encrypted string, and determine the cache key of the kvStore based on the encrypted string.

[0109] The processing module 604 is used to perform a flash sale activity based on the cache key.

[0110] In a possible implementation, the processing module 604 is specifically configured to:

[0111] If a flash sale product acquisition request sent by a user is received, judging whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product;

[0112] If the flash sale product is not oversold, an order for the flash sale product of the user is generated, and the inventory of the flash sale product is updated.

[0113] The device provided in the embodiment of the present application can be used to perform the above Figure 2 The technical solution of the method embodiment has similar implementation principles and technical effects, and will not be repeated here in the embodiments of the present application.

[0114] Figure 7 A schematic diagram of the structure of another flash sale activity processing device provided in an embodiment of the present application. Figure 6 On this basis, the above-mentioned flash sale activity processing device 60 further includes: a modification module 605.

[0115] The modification module 605 is used for encrypting the first character string in the encryption module 603, before obtaining the encrypted string, splicing a time parameter at the period type of the first character string based on the period type, and splicing a user parameter at the inventory type of the first character string based on the inventory type, to obtain a second character string;

[0116] The encryption module 603 is specifically used for:

[0117] The second character string is encrypted to obtain an encrypted character string.

[0118] In a possible implementation, the modification module 605 is specifically configured to:

[0119] If the period type is month, concatenate the year and month of the current time point at the period type of the first character string;

[0120] If the cycle type is a week, concatenate the year of the current time point to the cycle type of the first character string, and then concatenate the week of the current time point;

[0121] If the period type is day, concatenate the year, month and day of the current time point at the period type of the first character string;

[0122] If the period type is a time period, the year, month, and day of the current time point are concatenated at the period type of the first character string, and then the start time point and the end time point of the daily time period are concatenated.

[0123] In a possible implementation, the modification module 605 is specifically configured to:

[0124] If the inventory type is user quota, the mobile phone number of the user currently participating in the activity is concatenated at the inventory type of the first character string.

[0125] The device provided in the embodiment of the present application can be used to perform the above Figure 3 The technical solution of the method embodiment has similar implementation principles and technical effects, and will not be repeated here in the embodiments of the present application.

[0126] Optionally, Fig. 8A and 8B A possible basic hardware architecture of the flash sale activity processing device described in the present application is schematically provided.

[0127] See also Fig. 8A and 8B The flash sale activity processing device includes at least one processor 801 and a communication interface 803. Optionally, it may also include a memory 802 and a bus 804.

[0128] In the flash sale activity processing device, the number of processors 801 may be one or more. Fig. 8A and 8B Only one of the processors 801 is illustrated. Optionally, the processor 801 may be a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). If the flash sale activity processing device has multiple processors 801, the types of the multiple processors 801 may be different or the same. Optionally, the multiple processors 801 of the flash sale activity processing device may also be integrated into a multi-core processor.

[0129] The memory 802 stores computer instructions and data; the memory 802 may store computer instructions and data required to implement the above-mentioned flash sale activity processing method provided in the present application, for example, the memory 802 stores instructions for implementing the steps of the above-mentioned flash sale activity processing method. The memory 802 may be any one or any combination of the following storage media: non-volatile memory (e.g., read-only memory (ROM), solid-state drive (SSD), hard disk (HDD), optical disk), volatile memory.

[0130] The communication interface 803 can provide information input / output for the at least one processor, and can also include any one or any combination of the following devices: a network interface (eg, Ethernet interface), a wireless network card, and other devices with network access functions.

[0131] Optionally, the communication interface 803 may also be used for data communication between the flash sale activity processing device and other computing devices or terminals.

[0132] Further optional, Fig. 8A and 8B A thick line represents bus 804. Bus 804 can connect processor 801 with memory 802 and communication interface 803. Thus, through bus 804, processor 801 can access memory 802, and can also use communication interface 803 to exchange data with other computing devices or terminals.

[0133] In the present application, the flash sale activity processing device executes the computer instructions in the memory 802, so that the flash sale activity processing device implements the above-mentioned flash sale activity processing method provided in the present application, or enables the flash sale activity processing device to deploy the above-mentioned flash sale activity processing device.

[0134] From the perspective of logical function division, for example, Fig. 8A As shown, the memory 802 may include an acquisition module 601, a splicing module 602, an encryption module 603, and a processing module 604. The inclusion here only refers to the fact that when the instructions stored in the memory are executed, the functions of the acquisition module, the splicing module, the encryption module, and the processing module can be realized respectively, without limiting the physical structure.

[0135] A possible design, such as Figure 8B As shown, the memory 802 includes a modification module 605, and the inclusion here only refers to the functions of the modification module that can be implemented when the instructions stored in the memory are executed, and is not limited to the physical structure.

[0136] In addition, the above-mentioned flash sale activity processing device can not only Fig. 8A and 8BIn addition to being implemented through software, it can also be implemented through hardware as a hardware module or as a circuit unit.

[0137] The present application provides a computer-readable storage medium, wherein the computer program product includes computer instructions, and the computer instructions instruct a computing device to execute the above-mentioned flash sale activity processing method provided in the present application.

[0138] An embodiment of the present application provides a computer program product, including computer instructions, wherein the computer instructions are executed by a processor to implement the above-mentioned flash sale activity processing method provided in the present application.

[0139] The present application provides a chip, comprising at least one processor and a communication interface, wherein the communication interface provides information input and / or output for the at least one processor. Furthermore, the chip may also include at least one memory, wherein the memory is used to store computer instructions. The at least one processor is used to call and run the computer instructions to execute the above-mentioned flash sale activity processing method provided in the present application.

[0140] 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.

[0141] 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.

Claims

1. A method for processing a flash sale activity, characterized in that: include: Obtain multi-dimensional fields of the flash sale activity to be processed, wherein the multi-dimensional fields include inventory type, activity ID, product ID, cycle type, region ID, activity start time and activity end time; According to a preset splicing order, the multi-dimensional fields are spliced ​​into a first string; Encrypt the first character string to obtain an encrypted string, and determine a cache key of Alibaba Cloud key-value storage based on the encrypted string; Based on the cache key, a flash sale activity is performed.

2. The method according to claim 1, characterized in that: The performing of a flash sale activity based on the cache key includes: If a flash sale product acquisition request sent by a user is received, judging whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product; If the flash sale product is not oversold, an order for the flash sale product of the user is generated, and the inventory of the flash sale product is updated.

3. The method according to claim 1 or 2, characterized in that: Before encrypting the first character string to obtain an encrypted character string, the method further includes: Based on the cycle type, splicing a time parameter at the cycle type of the first character string, and according to the inventory type, splicing a user parameter at the inventory type of the first character string to obtain a second character string; The step of encrypting the first character string to obtain an encrypted character string includes: The second character string is encrypted to obtain an encrypted character string.

4. The method according to claim 3, characterized in that The step of splicing a time parameter at the period type of the first character string based on the period type includes: If the period type is month, concatenate the year and month of the current time point at the period type of the first character string; If the cycle type is a week, concatenate the year of the current time point to the cycle type of the first character string, and then concatenate the week of the current time point; If the period type is day, concatenate the year, month and day of the current time point at the period type of the first character string; If the period type is a time period, the year, month, and day of the current time point are concatenated at the period type of the first character string, and then the start time point and the end time point of the daily time period are concatenated.

5. The method according to claim 3, characterized in that: The step of adding a user parameter to the inventory type of the first character string according to the inventory type includes: If the inventory type is user quota, the mobile phone number of the user currently participating in the activity is concatenated at the inventory type of the first character string.

6. A flash sale activity processing device, characterized in that: include: An acquisition module, used to acquire multi-dimensional fields of a pending flash sale activity, wherein the multi-dimensional fields include inventory type, activity identifier, product identifier, cycle type, region identifier, activity start time, and activity end time; A splicing module, used for splicing the multi-dimensional fields into a first string according to a preset splicing order; An encryption module, used to encrypt the first character string to obtain an encrypted string, and determine a cache key of Alibaba Cloud key-value storage based on the encrypted string; The processing module is used to carry out a flash sale activity based on the cache key.

7. The device according to claim 6, characterized in that The processing module is specifically used for: If a flash sale product acquisition request sent by a user is received, judging whether the flash sale product is oversold based on the cache key and the inventory of the flash sale product; If the flash sale product is not oversold, an order for the flash sale product of the user is generated, and the inventory of the flash sale product is updated.

8. A flash sale activity processing device, characterized in that: include: processor; Memory; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor, wherein the computer program includes instructions for executing the method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program enables the server to execute the method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are executed by a processor to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Service processing system, second kill order processing method and equipment

    CN107220878A

  • Commodity seckilling method and device, computer equipment and storage medium

    CN112132662A