Marketing activity recording method and marketing activity participation qualification determination method for user
By recording only the timestamp of the last time the user participated in the marketing campaign in the marketing campaign record and updating it in real time, the problem of high storage and query costs in the prior art is solved, and more efficient data management and user experience are achieved.
Patent Information
- Application Number
- CN202311598889.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
In the online Internet marketing scenario, operators need to control the number and cycles of users participating in marketing activities. In the prior art, recording all user participation records leads to high storage and query costs.
A marketing activity recording method is proposed, which only records the timestamp of the last time the user participates in the target marketing activity, and updates it in real time based on the user's participation. By obtaining the target activity number and participation timestamp of the target marketing activity that the user currently participates in, and obtaining the user's marketing activity record, the historical participation record of the user's participation in the target marketing activity record is determined, and the marketing activity record is updated based on this.
Through this method, storage costs and query costs are reduced, and data management efficiency and user experience are improved.
Smart Images

Figure CN120047156A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular, to a method for recording marketing activities and determining a user's eligibility to participate in marketing activities. Background Art
[0002] In the context of online Internet marketing, operators can set several marketing activities for users. Different marketing activities allow different numbers of participation times and cycles for users, and it is necessary to control users' participation in marketing activities.
[0003] In the current technology, it can be judged by querying a database. According to the type of activity that the user wants to participate in, the participation control conditions of the activity type are queried from the database. Summary of the Invention
[0004] The present disclosure aims to solve at least one of the technical problems in the related art to some extent.
[0005] To this end, one object of the present disclosure is to propose a method for recording marketing activities.
[0006] The second object of the present disclosure is a method for determining a user's eligibility to participate in marketing activities.
[0007] The third object of the present disclosure is to propose a device for recording marketing activities.
[0008] The fourth object of the present disclosure is to propose a device for determining a user's eligibility to participate in marketing activities.
[0009] The fifth object of the present disclosure is to propose an electronic device.
[0010] The sixth object of the present disclosure is to propose a non-transitory computer-readable storage medium.
[0011] The seventh object of the present disclosure is to propose a computer program product.
[0012] To achieve the above object, a first aspect embodiment of the present disclosure proposes a method for recording marketing activities, including: obtaining a target activity number of a target marketing activity currently participated by a user and a first time stamp for participating in the target marketing activity, and obtaining a marketing activity record of the user, where the marketing activity record includes the most recent historical record of all marketing activities participated by the user; determining a historical participation record of the user in the target marketing activity in the marketing activity record; and updating the marketing activity record based on the historical participation record, the target activity number, and the first time stamp.
[0013] According to an embodiment of the present disclosure, updating the marketing activity record based on the historical participation record, the target activity number, and the first timestamp includes: judging whether the user has participated in the target marketing activity based on the historical participation record; updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp.
[0014] According to an embodiment of the present disclosure, updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp includes: in response to the judgment result that the user has participated in the target marketing activity, obtaining a second timestamp in the marketing activity record for the target marketing activity, where the second timestamp is the time when the user last participated in the target marketing activity; replacing the second timestamp with the first timestamp to update the marketing activity record.
[0015] According to an embodiment of the present disclosure, updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp includes: in response to the judgment result that the user has not participated in the target marketing activity, changing the participation flag of the target marketing activity in the marketing activity record to participated, and determining a target time storage node of the target marketing activity in the marketing activity record based on the target activity number; updating the first timestamp to the target time storage node.
[0016] According to an embodiment of the present disclosure, determining the target time storage node of the target marketing activity in the marketing activity record based on the target activity number includes: obtaining the historical marketing activities that the user has participated in the marketing activity record; determining the number of previous adjacent activities of the target marketing activity in the historical marketing activities based on the historical activity numbers of the historical marketing activities and the target activity number; determining the target time storage node based on the number of previous adjacent activities.
[0017] According to an embodiment of the present disclosure, determining the previous adjacent activity of the target marketing activity in the historical marketing activities includes: obtaining the difference between the historical activity number less than the target activity number and the target activity number; using the historical marketing activity corresponding to the historical activity number with the minimum difference value as the previous adjacent activity.
[0018] According to an embodiment of the present disclosure, determining the target time storage node based on the number of the previous adjacent activities includes: obtaining an initial start address and a time storage node length of an initial time storage node; determining a target start address of the target time storage node based on the initial start address, the time storage node length, and the number of the previous adjacent activities, and inserting a new time storage node at the initial start address as the target time storage node.
[0019] According to an embodiment of the present disclosure, determining the target start address of the target time storage node based on the initial start address, the time storage node length, and the number of the previous adjacent activities includes: multiplying the number of the previous adjacent activities by the time storage node length to calculate an offset; adding the offset and the initial start address to calculate the target start address of the target time storage node.
[0020] To achieve the above object, an embodiment of the second aspect of the present disclosure provides a method for determining a user's qualification to participate in a marketing activity, including: in response to the user not having the participation permission to participate in a target marketing activity, obtaining a target activity number of the target marketing activity and a current participation timestamp; obtaining a historical timestamp when the user last participated in the target marketing activity from a marketing activity record based on the target activity number, where the marketing activity record is generated by the marketing activity record method as described in the embodiment of the first aspect; determining whether the user has the qualification to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
[0021] According to an embodiment of the present disclosure, determining whether the user has the qualification to participate in the target marketing activity based on the participation timestamp and the historical timestamp includes: obtaining a time difference between the participation timestamp and the historical timestamp, and a marketing cycle of the target marketing activity; comparing the time difference with the marketing cycle, and in response to the time difference being greater than the marketing cycle, determining that the user has the qualification to participate in the target marketing activity.
[0022] According to an embodiment of the present disclosure, the method further includes: in response to there being no record of the user participating in the target marketing activity in the marketing activity record, determining that the user does not have the qualification to participate in the target marketing activity.
[0023] To achieve the above object, an embodiment of the third aspect of the present disclosure provides a marketing activity recording device, including: an acquisition module, configured to acquire a target activity number of a target marketing activity currently participated by a user and a first timestamp of participating in the target marketing activity, and acquire a marketing activity record of the user, where the marketing activity record is the most recent historical record of all marketing activities participated by the user; a determination module, configured to determine a historical participation record of the user in the target marketing activity in the marketing activity record; and an update module, configured to update the marketing activity record based on the historical participation record, the target activity number, and the first timestamp.
[0024] To achieve the above object, an embodiment of the fourth aspect of the present disclosure provides a device for determining a user's eligibility to participate in a marketing activity, characterized by including: a collection module, configured to, in response to the user not having the participation permission to participate in a target marketing activity, acquire the target activity number of the target marketing activity and the current participation timestamp; a call module, configured to acquire the historical timestamp of the user's last participation in the target marketing activity from the marketing activity record based on the target activity number, where the marketing activity record is generated by the marketing activity recording method as described in the embodiment of the first aspect; and a confirmation module, configured to determine whether the user is eligible to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
[0025] To achieve the above object, an embodiment of the fifth aspect of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; where the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to implement the marketing activity recording method as described in the embodiment of the first aspect and a method for determining a user's eligibility to participate in a marketing activity as described in the embodiment of the second aspect of the present disclosure.
[0026] To achieve the above object, an embodiment of the sixth aspect of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to implement the marketing activity recording method as described in the embodiment of the first aspect and a method for determining a user's eligibility to participate in a marketing activity as described in the embodiment of the second aspect of the present disclosure.
[0027] To achieve the above object, an embodiment of the seventh aspect of the present disclosure provides a computer program product, including a computer program, where the computer program is used to implement the marketing activity recording method as described in the embodiment of the first aspect and a method for determining a user's eligibility to participate in a marketing activity as described in the embodiment of the second aspect of the present disclosure when being executed by a processor.
[0028] Thus, by setting up marketing campaign records, only the timestamp of the user's last participation in the target marketing campaign is recorded and updated in real time according to the user's participation status. Compared with the prior art that records all participation records of all users, the storage cost can be greatly reduced, and the query cost can also be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a schematic diagram of a method for recording marketing campaign records according to an embodiment of the present disclosure;
[0030] Figure 2 is a schematic diagram of the marketing campaign records of a method for recording marketing campaign records according to an embodiment of the present disclosure;
[0031] Figure 3 is a schematic diagram of another method for recording marketing campaign records according to an embodiment of the present disclosure;
[0032] Figure 4 is a schematic diagram of the marketing campaign records of another method for recording marketing campaign records according to an embodiment of the present disclosure;
[0033] Figure 5 is a schematic diagram of a method for determining a user's eligibility to participate in a marketing campaign according to an embodiment of the present disclosure;
[0034] Figure 6 is a schematic diagram of a device for recording marketing campaign records according to an embodiment of the present disclosure;
[0035] Figure 7 is a schematic diagram of a device for determining a user's eligibility to participate in a marketing campaign according to an embodiment of the present disclosure;
[0036] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] The embodiments of the present disclosure will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0038] Figure 1 is a schematic diagram of an exemplary embodiment of a method for recording marketing campaign records proposed by the present disclosure. As Figure 1 shown, the method for recording marketing campaign records includes the following steps:
[0039] S101. Obtain the target activity number of the target marketing activity that the user is currently participating in, the first timestamp when participating in the target marketing activity, and obtain the user's marketing activity record, where the marketing activity record includes the most recent historical record of the user's participation in all marketing activities.
[0040] The marketing activity recording method of the embodiments of the present disclosure can be applied to the scenario where a user participates in an activity. The execution subject of the marketing activity recording in the embodiments of the present disclosure can be the marketing activity recording device of the embodiments of the present disclosure, and this marketing activity recording device can be set on an electronic device.
[0041] In the embodiments of the present disclosure, the target activity number of the target marketing activity is set in advance and can be changed according to actual design needs, and no specific limitation is made here.
[0042] The marketing activity record in the prior art records all records of the user's participation in marketing activities. When the amount of activity record data participated by the user is large and the number of participating users is large, the storage cost of the marketing activity record is large, and the query time-consuming also increases with the growth of the record, and both the storage cost and the query cost are large.
[0043] In the embodiments of the present disclosure, the marketing activity record is a ledger recording the user's participation in all marketing activities. The marketing activity record of the present disclosure is as Figure 2 shown. For any marketing activity, the marketing activity record will record the participation identifier of the user's participation in a certain marketing activity, and at the same time only record the timestamp of the user's most recent participation in a certain marketing activity or the time difference from a specific time. For example, this specific time can be 0:00:00 on January 1, 2020.
[0044] It should be noted that, in order to further reduce the storage cost, when the user does not participate in a certain activity, the timestamp or time difference of this activity is not recorded in the marketing activity record, and at the same time, no space for storing the timestamp or time difference of this activity is reserved.
[0045] It should be noted that the marketing activity record can be a database, and the type of this database can be various, and no specific limitation is made here. For example, this marketing activity record can be implemented based on the bitmap of the Remote Dictionary Server (Redis). A key is generated for every set number of marketing activities per user, and the record of the user's participation in the marketing activity is written into the value, and the cache does not expire. This set number can be limited according to actual design needs. For example, it can be 200.
[0046] S102. Determine the historical participation record of the user's participation in the target marketing activity in the marketing activity record.
[0047] It should be noted that the marketing activity record may include the participation records of multiple users. In the embodiments of the present disclosure, the identity identifier of the user can be matched with the identity identifiers of each historical user in the marketing activity record to determine the participation record of the user in the marketing activity record, and then based on the target activity number of the target marketing activity, the historical participation record of the user in the target marketing activity in the marketing activity record can be determined.
[0048] S103. Update the marketing activity record based on the historical participation record, the target activity number, and the first timestamp.
[0049] In the embodiments of the present disclosure, after obtaining the historical participation record, the target activity number, and the first timestamp, it can be determined whether the user has participated in the target marketing activity through the historical participation record. If so, the timestamp of the last participation in the target marketing activity can also be determined, and then the marketing activity record can be updated based on the target activity number and the first timestamp.
[0050] In the embodiments of the present disclosure, first, obtain the target activity number of the target marketing activity currently participated by the user and the first timestamp of participating in the target marketing activity, and obtain the marketing activity record of the user, where the marketing activity record includes the most recent historical record of the user participating in all marketing activities. Then, determine the historical participation record of the user in the target marketing activity in the marketing activity record. Finally, update the marketing activity record based on the historical participation record, the target activity number, and the first timestamp. Thus, by setting the marketing activity record, only the timestamp of the user's last participation in the target marketing activity is recorded and updated in real time according to the user's participation situation. Compared with the prior art that records all the participation records of all users, the storage cost can be greatly reduced, and the query cost can also be reduced.
[0051] In the above embodiments, when updating the marketing activity record based on the historical participation record, the target activity number, and the first timestamp, it can also be through Figure 3 For further explanation, the method includes:
[0052] S301. Based on the historical participation record, determine whether the user has participated in the target marketing activity.
[0053] In the embodiments of the present disclosure, it can be determined whether the user has participated in the target marketing activity through the participation identifier in the historical participation record. The participation identifier can be various and is not limited here, and can be specifically set according to actual design needs. For example, the participation identifier can be "0" and "1", where "0" represents not participating in the target marketing activity, and "1" represents participating in the target marketing activity; the participation identifier can also be words such as "participated" and "not participated".
[0054] S302, update the marketing activity record based on the judgment result, the target activity number, and the first timestamp.
[0055] In the embodiments of the present disclosure, in response to the judgment result that the user has participated in the target marketing activity, obtain the second timestamp of the target marketing activity in the marketing activity record. The second timestamp is the time when the user last participated in the target marketing activity, and replace the second timestamp with the first timestamp to update the marketing activity record.
[0056] In the embodiments of the present disclosure, in response to the judgment result that the user has not participated in the target marketing activity, change the participation flag of the target marketing activity in the marketing activity record to "participated", and determine the target time storage node of the target marketing activity in the marketing activity record based on the target activity number, and update the first timestamp to the target time storage node.
[0057] It should be noted that to determine the target time storage node of the target marketing activity in the marketing activity record based on the target activity number, first obtain the historical marketing activities that the user has participated in the marketing activity record, then based on the historical activity numbers of the historical marketing activities and the target activity number, determine the previous adjacent activity and the subsequent adjacent activity of the target marketing activity in the historical marketing activities, and finally based on the time storage nodes of the previous adjacent activity and the subsequent adjacent activity, determine the target time storage node.
[0058] It should be noted that the size of each time storage node is the same, and its arrangement order is the same as the arrangement order of the participated marketing activities. For example, the time storage node can be 26 bits. For example, as Figure 4 shown, Activity 2 is the target marketing activity and the user has not participated in it before. After participating this time, first change the participation flag of Activity 2 to "participated" (1), and then determine to insert a new time storage node between the storage node of the previous adjacent activity Activity 1 and the storage node of the subsequent adjacent activity Activity 200 as the target time storage node.
[0059] In the embodiments of the present disclosure, to determine the previous adjacent activity of the target marketing activity in the historical marketing activities, first obtain the difference between the historical activity number less than the target activity number and the target activity number, and then use the historical marketing activity corresponding to the historical activity number with the minimum difference value as the previous adjacent activity.
[0060] To determine the subsequent adjacent activity of the target marketing activity in the historical marketing activities, first obtain the difference between the historical activity number greater than the target activity number and the target activity number, and then use the historical marketing activity corresponding to the historical activity number with the minimum difference value as the subsequent adjacent activity.
[0061] In another possible implementation, to determine the target time storage node of the target marketing activity in the marketing activity record based on the target activity number, it is also possible to first obtain the historical marketing activities that the user has participated in the marketing activity record, then determine the number of the previous adjacent activities of the target marketing activity in the historical marketing activities based on the historical activity numbers of the historical marketing activities and the target activity number, and finally determine the target time storage node based on the number of the previous adjacent activities.
[0062] It should be noted that to determine the target time storage node based on the number of the previous adjacent activities, it is possible to first obtain the initial start address and the time storage node length of the initial time storage node, then determine the target start address of the target time storage node based on the initial start address, the time storage node length, and the number of the previous adjacent activities, and insert a new time storage node at the initial start address as the target time storage node.
[0063] For example, as Figure 4 shown, the initial start address can be 200, and the time storage node length can be 26. To obtain the time storage node of marketing activity 200, through Figure 4 it can be seen that there are three participated activities before marketing activity 200. Then the target start address of the target time storage node of marketing activity 200 is 200 + 26×2 = 252. It is possible to insert a storage space with a size of 26 at the start address of 252 as the target storage space of marketing activity 200.
[0064] Figure 5 It is a schematic diagram of an exemplary implementation manner of a method for determining the qualification of a user to participate in a marketing activity proposed by the present disclosure. As Figure 1 shown, the marketing activity recording method includes the following steps:
[0065] S501, in response to the user not having the participation permission to participate in the target marketing activity, obtain the target activity number of the target marketing activity and the current participation timestamp.
[0066] In the embodiments of the present disclosure, the participation permission of the user is set in advance. Optionally, the participation permission can also be determined according to the user's own user information. For example, the participation permission of the user can be determined according to the user's age, gender, occupation, etc.
[0067] It should be noted that the user not having the participation permission does not mean that the user cannot participate in the target marketing activity. There is also a situation where the user has been participating in this marketing activity before, and at this time, the participation conditions of the marketing activity have changed. In this case, the user still has the qualification to participate in the target marketing activity.
[0068] S502. Obtain the historical timestamp when the user last participated in the target marketing activity from the marketing activity record based on the target activity number.
[0069] In the embodiments of the present disclosure, the marketing activity record is generated by the embodiments as Figures 1 to 4 shown, which will not be elaborated here. For details, refer to the content in the above embodiments.
[0070] S503. Determine whether the user is eligible to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
[0071] In the embodiments of the present disclosure, the time difference between the participation timestamp and the historical timestamp, and the marketing cycle of the target marketing activity can be obtained first, and then the time difference and the marketing cycle are compared. In response to the time difference being greater than the marketing cycle, it is determined that the user is eligible to participate in the target marketing activity.
[0072] In response to the non - existence of a record of the user participating in the target marketing activity in the marketing activity record, it is determined that the user is not eligible to participate in the target marketing activity.
[0073] In the embodiments of the present disclosure, in response to the user not having the participation permission to participate in the target marketing activity, the target activity number of the target marketing activity and the current participation timestamp are obtained, then the historical timestamp when the user last participated in the target marketing activity is obtained from the marketing activity record based on the target activity number, and finally it is determined whether the user is eligible to participate in the target marketing activity based on the participation timestamp and the historical timestamp. Thus, by obtaining the historical timestamp when the user last participated in the target marketing activity from the set marketing activity record and comparing it with the current timestamp to determine whether the user is eligible to participate in the target marketing activity, it can accurately determine whether the user is eligible to participate in the target marketing activity when the user does not have the participation permission to participate in the target marketing activity, preventing misjudgment that may cause the user to be unable to participate in the target marketing activity, thereby improving the user experience.
[0074] Corresponding to the marketing activity recording methods provided in the above several embodiments, an embodiment of the present disclosure also provides a marketing activity recording device. Since the marketing activity recording device provided in the embodiments of the present disclosure corresponds to the marketing activity recording methods provided in the above several embodiments, the implementation manners of the above marketing activity recording methods are also applicable to the marketing activity recording device provided in the embodiments of the present disclosure and will not be described in detail in the following embodiments.
[0075] Figure 6 Shown in the following is a schematic diagram of a marketing activity recording device proposed by the present disclosure. As Figure 6 shown, the marketing activity recording device 600 includes: an obtaining module 610, a determining module 620, and an updating module 630.
[0076] Among them, the obtaining module 610 is configured to obtain the target activity number of the target marketing activity that the user is currently participating in, the first timestamp for participating in the target marketing activity, and obtain the marketing activity record of the user, where the marketing activity record is the most recent historical record of the user's participation in all marketing activities.
[0077] The determining module 620 is configured to determine the historical participation record of the user in the target marketing activity in the marketing activity record.
[0078] The updating module 630 is configured to update the marketing activity record based on the historical participation record, the target activity number, and the first timestamp.
[0079] In an embodiment of the present disclosure, the updating module 630 is further configured to: based on the historical participation record, determine whether the user has participated in the target marketing activity; update the marketing activity record based on the determination result, the target activity number, and the first timestamp.
[0080] In an embodiment of the present disclosure, the updating module 630 is further configured to: in response to the determination result that the user has participated in the target marketing activity, obtain the second timestamp of the target marketing activity in the marketing activity record, where the second timestamp is the time when the user last participated in the target marketing activity; replace the second timestamp with the first timestamp to implement the update of the marketing activity record.
[0081] In an embodiment of the present disclosure, the updating module 630 is further configured to: in response to the determination result that the user has not participated in the target marketing activity, change the participation flag of the target marketing activity in the marketing activity record to participated, and determine the target time storage node of the target marketing activity in the marketing activity record based on the target activity number; update the first timestamp to the target time storage node.
[0082] In an embodiment of the present disclosure, the updating module 630 is further configured to: obtain the historical marketing activities that the user has participated in in the marketing activity record; based on the historical activity numbers of the historical marketing activities and the target activity number, determine the previous adjacent activity and the subsequent adjacent activity of the target marketing activity in the historical marketing activities; determine the target time storage node based on the time storage node of the previous adjacent activity and the time storage node of the subsequent adjacent activity.
[0083] In an embodiment of the present disclosure, the updating module 630 is further configured to: obtain the difference between the historical activity number less than the target activity number and the target activity number; use the historical marketing activity corresponding to the historical activity number with the minimum difference value as the previous adjacent activity.
[0084] In one embodiment of the present disclosure, the update module 630 is further configured to: obtain the difference between the historical activity label greater than the target activity number and the target activity number; use the historical marketing activity corresponding to the historical activity label with the minimum difference value as the subsequent adjacent activity.
[0085] In one embodiment of the present disclosure, the update module 630 is further configured to: insert a new time storage node between the time storage node of the previous adjacent activity and the time storage node of the subsequent adjacent activity as the target time storage node.
[0086] Thus, by setting the marketing activity record, only the timestamp of the user's last participation in the target marketing activity is recorded, and it is updated in real time according to the user's participation situation. Compared with the prior art that records all participation records of all users, the storage cost can be greatly reduced, and the query cost can also be reduced.
[0087] Corresponding to the methods for determining the eligibility of users to participate in marketing activities provided in the above several embodiments, one embodiment of the present disclosure also provides a device for determining the eligibility of users to participate in marketing activities. Since the device for determining the eligibility of users to participate in marketing activities provided in the embodiments of the present disclosure corresponds to the methods for determining the eligibility of users to participate in marketing activities provided in the above several embodiments, the implementation manners of the above methods for determining the eligibility of users to participate in marketing activities are also applicable to the device for determining the eligibility of users to participate in marketing activities provided in the embodiments of the present disclosure, and will not be described in detail in the following embodiments.
[0088] Figure 7 FIG. is a schematic diagram of a device for determining the eligibility of users to participate in marketing activities proposed by the present disclosure, as Figure 7 shown, the device 700 for determining the eligibility of users to participate in marketing activities includes: a collection module 710, a call module 720, and a confirmation module 730.
[0089] Among them, the collection module 710 is configured to obtain the target activity number of the target marketing activity and the current participation timestamp in response to the user not having the participation permission to participate in the target marketing activity.
[0090] The call module 720 is configured to obtain the historical timestamp of the user's last participation in the target marketing activity from the marketing activity record based on the target activity number.
[0091] The confirmation module 730 is configured to determine whether the user is eligible to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
[0092] In one embodiment of the present disclosure, the confirmation module 730 is further configured to: obtain the time difference between the participation timestamp and the historical timestamp, and the marketing cycle of the target marketing activity; compare the time difference with the marketing cycle, and determine that the user is eligible to participate in the target marketing activity in response to the time difference being greater than the marketing cycle.
[0093] In one embodiment of the present disclosure, the confirmation module 730 is further configured to: in response to the non-existence of a record of the user participating in the target marketing activity in the marketing activity record, determine that the user is not eligible to participate in the target marketing activity.
[0094] Thus, by obtaining the historical timestamp of the user's last participation in the target marketing activity from the set marketing activity record and judging whether the user is eligible to participate in the target marketing activity based on the current timestamp, it is possible to accurately judge whether the user is eligible to participate in the target marketing activity when the user does not have the participation permission to participate in the target marketing activity, preventing misjudgment from causing the user to be unable to participate in the target marketing activity, thereby improving the user experience.
[0095] To implement the above embodiments, an electronic device 800 is further proposed in the embodiments of the present disclosure, as Figure 8 shown. The electronic device 800 includes: a processor 801 and a memory 802 communicatively connected to the processor. The memory 802 stores instructions executable by at least one processor. The instructions are executed by at least one processor 801 to implement the marketing activity record method as in the embodiments of the first aspect of the present disclosure.
[0096] To implement the above embodiments, a non-transitory computer-readable storage medium storing computer instructions is further proposed in the embodiments of the present disclosure, wherein the computer instructions are used to cause a computer to implement the marketing activity record method as shown in the present disclosure Figures 1 - 4 or the method for determining the eligibility of a user to participate in a marketing activity as shown in Figure 5 shown.
[0097] To implement the above embodiments, a computer program product is further proposed in the embodiments of the present disclosure, including a computer program, and the computer program implements the marketing activity record method as in the embodiments of the first aspect of the present disclosure when executed by a processor.
[0098] In the description of the present disclosure, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation of the present disclosure.
[0099] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present disclosure, "a plurality of" means two or more unless otherwise specifically defined.
[0100] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0101] Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A method for recording marketing activities, characterized in that, it includes: Obtaining the target activity number of the target marketing activity that the user is currently participating in and the first timestamp for participating in the target marketing activity, and obtaining the marketing activity record of the user, where the marketing activity record includes the most recent historical record of all marketing activities participated by the user; Determining the historical participation record of the user in the target marketing activity in the marketing activity record; Updating the marketing activity record based on the historical participation record, the target activity number, and the first timestamp.
2. The method according to claim 1, characterized in that, The updating the marketing activity record based on the historical participation record, the target activity number, and the first timestamp includes: Based on the historical participation record, determining whether the user has participated in the target marketing activity; Updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp.
3. The method according to claim 2, characterized in that, The updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp includes: In response to the judgment result that the user has participated in the target marketing activity, obtaining the second timestamp of the target marketing activity in the marketing activity record, where the second timestamp is the time when the user last participated in the target marketing activity; Replacing the second timestamp with the first timestamp to achieve the update of the marketing activity record.
4. The method according to claim 2, characterized in that, The updating the marketing activity record based on the judgment result, the target activity number, and the first timestamp includes: In response to the judgment result that the user has not participated in the target marketing activity, changing the participation flag of the target marketing activity in the marketing activity record to participated, and determining the target time storage node of the target marketing activity in the marketing activity record based on the target activity number; Updating the first timestamp to the target time storage node.
5. The method according to claim 4, characterized in that, The determining the target time storage node of the target marketing activity in the marketing activity record based on the target activity number includes: Obtaining the historical marketing activities that the user has participated in in the marketing activity record; Based on the historical activity numbers of the historical marketing activities and the target activity number, determining the number of the previous adjacent activities of the target marketing activity in the historical marketing activities; Based on the number of the previous adjacent activities, determining the target time storage node.
6. The method according to claim 5, characterized in that, Determining the previous adjacent activities of the target marketing activity in the historical marketing activities includes: Obtaining the difference between the historical activity number less than the target activity number and the target activity number; Taking the historical marketing activity corresponding to the historical activity number with the minimum difference value as the previous adjacent activity.
7. The method according to claim 5, wherein, the determining of the target time storage node based on the number of the previous adjacent activities includes: obtaining an initial start address and a time storage node length of an initial time storage node; determining a target start address of the target time storage node based on the initial start address, the time storage node length, and the number of the previous adjacent activities, and inserting a new time storage node at the initial start address as the target time storage node.
8. The method according to claim 7, wherein, the determining of the target start address of the target time storage node based on the initial start address, the time storage node length, and the number of the previous adjacent activities includes: multiplying the number of the previous adjacent activities by the time storage node length to calculate an offset; adding the offset and the initial start address to calculate the target start address of the target time storage node.
9. A method for determining a user's qualification to participate in a marketing activity, wherein, it includes: in response to the user not having the permission to participate in a target marketing activity, obtaining a target activity number of the target marketing activity and a current participation timestamp; obtaining a historical timestamp of the user's last participation in the target marketing activity from a marketing activity record based on the target activity number, wherein the marketing activity record is generated by the marketing activity record method according to any one of claims 1 - 8; determining whether the user is qualified to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
10. The method according to claim 9, wherein, the determining whether the user is qualified to participate in the target marketing activity based on the participation timestamp and the historical timestamp includes: obtaining a time difference between the participation timestamp and the historical timestamp, and a marketing cycle of the target marketing activity; comparing the time difference with the marketing cycle, and in response to the time difference being greater than the marketing cycle, determining that the user is qualified to participate in the target marketing activity.
11. The method according to claim 9, wherein, the method further includes: in response to there being no record of the user's participation in the target marketing activity in the marketing activity record, determining that the user is not qualified to participate in the target marketing activity.
12. A marketing activity recording device, wherein, it includes: an obtaining module, configured to obtain a target activity number of a target marketing activity in which the user currently participates and a first timestamp of participating in the target marketing activity, and obtain a marketing activity record of the user, where the marketing activity record is the most recent historical record of all marketing activities participated by the user; a determining module, configured to determine a historical participation record of the user's participation in the target marketing activity in the marketing activity record; an updating module, configured to update the marketing activity record based on the historical participation record, the target activity number, and the first timestamp.
13. A device for determining a user's qualification to participate in a marketing activity, It is characterized in that including: a collection module, configured to obtain a target activity number of the target marketing activity and a current participation timestamp in response to the user not having the participation permission to participate in the target marketing activity; a calling module, configured to obtain a historical timestamp of the user's last participation in the target marketing activity from the marketing activity record based on the target activity number, wherein the marketing activity record is generated by the marketing activity record method described in any one of claims 1-8; a confirmation module, configured to determine whether the user is eligible to participate in the target marketing activity based on the participation timestamp and the historical timestamp.
14. An electronic device It is characterized in that including a memory and a processor; wherein, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the marketing activity record method described in any one of claims 1-8 or the user participation marketing activity eligibility determination method described in any one of claims 9-11.
15. A computer-readable storage medium It is characterized in that computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the marketing activity record method described in any one of claims 1-8 or the user participation marketing activity eligibility determination method described in any one of claims 9-11.