Member level configuration method, device, computer equipment and readable storage medium
Through the target user ID and level configuration to be checked by the receiving terminal, the preset level creation interface is used to obtain user input and verify it in the verification database, which solves the problem of inefficient configuration of membership levels of e-commerce platforms and stores, and realizes the implementation of the implementation of the default level creation interface. Automatic hierarchical configuration and rapid management.
Patent Information
- Application Number
- CN202011431761.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-09
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2040-12-09
AI Technical Summary
In the field of Internet e-commerce, e-commerce platforms and stores are inefficient in membership level configuration due to inefficient membership level configuration, which is unable to meet rapidly changing business needs.
Provide a member level configuration method, through the target user ID and level configuration to be checked by the receiving terminal, the preset level creation interface is used to obtain the level basic information and condition information entered by the user, and perform verification in the verification database. , if passed, add the hierarchy configuration to the database to achieve automated hierarchy configuration.
It improves the efficiency of member level configuration, avoids the inefficiency problem caused by manual configuration, and achieves fast and accurate level management.
Smart Images

Figure CN112435076B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet e-commerce, and in particular to a member level configuration method, device, computer equipment and readable storage medium. Background Art
[0002] In the field of Internet e-commerce, e-commerce platforms set up a membership level system and issue corresponding membership rights to member accounts of different levels, which is an effective way to improve user activity and user stickiness.
[0003] Currently, if an e-commerce platform or store needs to configure membership levels, for example, if a new membership level needs to be added, it is generally the developer who manually configures the new membership level in accordance with the specific needs of the e-commerce platform or store.
[0004] However, for the membership middle platform, the number of e-commerce platforms and stores is increasing, and the membership level setting methods of different e-commerce platforms and different stores are also diverse. The above-mentioned membership level configuration method has the problem of inefficiency. Summary of the invention
[0005] Based on this, it is necessary to provide a member level configuration method, device, computer equipment and readable storage medium that can improve the configuration efficiency of member levels in response to the above technical problems.
[0006] In a first aspect, an embodiment of the present application provides a member level configuration method, the method comprising:
[0007] The target user identification and the level configuration to be verified sent by the receiving terminal are as follows; wherein the level configuration to be verified is a user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a level retention condition input control, and a downgrade condition input control; the level configuration to be verified includes basic level information to be verified and level condition information to be verified;
[0008] Verify the level configuration to be verified according to the target user identifier and a preset verification database; wherein the verification database includes verified level configurations corresponding to different user identifiers;
[0009] If the verification is successful, the level configuration to be verified is added to the verification database, and a message indicating that the level configuration is successful is sent to the terminal.
[0010] In a possible implementation manner, the level creation interface further includes a rights input control, and the step of adding the level configuration to be verified to the verification database includes:
[0011] Acquire the rights and interests information corresponding to the level configuration to be verified; wherein the rights and interests information is acquired based on the rights and interests input control;
[0012] Newly added level information is generated according to the level configuration to be verified and the rights and interests information, and the newly added level information is added to the verification database.
[0013] In a possible implementation manner, the basic information of the level to be verified includes the name of the level to be verified and the validity period of the level to be verified; the condition information of the level to be verified includes at least one of upgrade condition information, retention condition information and downgrade condition information.
[0014] In a possible implementation, the verifying the to-be-verified level configuration according to the target user identifier and a preset verification database includes:
[0015] Determining a target verified level configuration corresponding to the target user identifier from the verification database according to the target user identifier; wherein the target verified level configuration includes a level name of the target verified level and a target level validity period;
[0016] Determine whether the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and determine whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtain a determination result;
[0017] The level configuration to be verified is verified according to the judgment result.
[0018] In a possible implementation manner, if the level condition information to be verified includes the level retention condition information and / or the level downgrade condition information, then verifying the level configuration to be verified according to the judgment result includes:
[0019] If the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, then detecting whether the data format of the level retention condition information and / or the data format of the level demotion condition information is a preset format;
[0020] If the data format of the grade retention condition information is a preset format and / or the data format of the grade demotion condition information is a preset format, it is determined that the to-be-verified grade configuration verification has passed.
[0021] In a possible implementation manner, the relegation condition information includes a relegation condition period and a relegation threshold, and the demotion condition information includes a demotion condition period and a demotion threshold.
[0022] In a possible implementation manner, if the level condition information to be verified also includes upgrade condition information, the upgrade condition information includes upgrade condition type, upgrade condition period and upgrade threshold; the target verified level configuration includes the target upgrade threshold and target upgrade type of the target verified level;
[0023] The verifying the to-be-verified level configuration according to the judgment result further includes:
[0024] If the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, then detecting whether the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats;
[0025] If the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats, then detecting whether the name of the level to be verified is the same as the level name of the target verified level, detecting whether the upgrade threshold is greater than the target upgrade threshold, and detecting whether the upgrade condition type is the same as the target upgrade type;
[0026] If the name of the level to be verified is the same as the level name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, it is determined that the configuration verification of the level to be verified has passed.
[0027] In a possible implementation manner, before the receiving terminal sends the target user identifier and the level configuration to be verified, the method further includes:
[0028] receiving a level configuration request sent by the terminal, wherein the level configuration request carries a service scenario type;
[0029] The level creation interface corresponding to the business scenario type is sent to the terminal according to the business scenario type.
[0030] In a possible implementation, the method further includes:
[0031] receiving a deletion instruction for the newly added level information sent by the terminal; wherein the newly added level information includes a target level configuration and target rights and interests information;
[0032] In response to the deletion instruction, marking the target level configuration in the newly added level information as invalid, and detecting whether the target rights and interests information in the newly added level information is deleted successfully;
[0033] If the target rights and interests information in the newly added level information is deleted successfully, a message of successful deletion is sent to the terminal;
[0034] If the target benefit information in the newly added level information fails to be deleted, the target level configuration in the newly added level information is marked as a valid state, and a deletion failure message is sent to the terminal.
[0035] In a possible implementation, the method further includes:
[0036] receiving a modification instruction for the newly added level information sent by the terminal;
[0037] In response to the modification instruction, sending a level modification interface to the terminal;
[0038] receiving the level modification information acquired by the terminal based on the level modification interface, and verifying the level modification information according to the verification database;
[0039] If the verification is passed, the level modification information is added to the verification database, and a message indicating that the level information is successfully modified is sent to the terminal.
[0040] In a possible implementation manner, the newly added level information includes target level configuration and target rights and interests information, the level modification information includes rights and interests modification information and level modification configuration, and the verifying the level modification information according to the verification database includes:
[0041] verifying the level modification configuration according to the verification database;
[0042] If the verification passes, the target level configuration is marked as invalid, and the level modification configuration is marked as valid;
[0043] Detect whether the equity modification information is successfully modified;
[0044] If the rights modification information is modified successfully, it is determined that the level modification information verification has passed.
[0045] In a possible implementation manner, after detecting whether the equity modification information is successfully modified, the method further includes:
[0046] If the modification of the equity modification information fails, the target level configuration is marked as valid, and the level modification configuration is marked as invalid;
[0047] A message indicating that the level modification fails is sent to the terminal.
[0048] In a second aspect, an embodiment of the present application provides a member level configuration device, the device comprising:
[0049] A first receiving module is configured to receive a target user identifier and a level configuration to be verified sent by a terminal; wherein the level configuration to be verified is a user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a level retention condition input control, and a downgrade condition input control; the level configuration to be verified includes basic level information to be verified and level condition information to be verified;
[0050] A verification module, used to verify the level configuration to be verified according to the target user identifier and a preset verification database; wherein the verification database includes verified level configurations corresponding to different user identifiers;
[0051] The configuration module is used to add the level configuration to be verified to the verification database if the verification is passed, and send a message of successful level configuration to the terminal.
[0052] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0054] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0055] By receiving the target user identifier and the level configuration to be verified sent by the terminal, the level configuration to be verified includes the basic information of the level to be verified and the condition information of the level to be verified, the level configuration to be verified is the user input obtained by the terminal from the preset level creation interface, the level creation interface includes the basic information configuration control and the condition configuration control, the condition configuration control includes at least one of the upgrade condition input control, the level retention condition input control and the downgrade condition input control; then, according to the target user identifier and the preset verification database, the level configuration to be verified is verified, and the verification database includes the verified level configurations corresponding to different user identifiers; if the verification passes, the level configuration to be verified is added to the verification database, and a message of successful level configuration is sent to the terminal, so that the user input is obtained through the preset level creation interface, and when the user input verification passes, the level configuration to be verified can be automatically added to the verification database to complete the level configuration, thereby avoiding the problem of low configuration efficiency caused by manual configuration of the newly added member level in the traditional technology. The embodiment of the present application can improve the configuration efficiency of the member level. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 An application environment diagram of a member level configuration method in an embodiment;
[0057] Figure 2 A schematic diagram of a flow chart of a member level configuration method in one embodiment;
[0058] Figure 3 is a flow chart of step 202 in one embodiment;
[0059] Figure 4 A schematic diagram of a flow chart of a server adding a configuration of a level to be verified to a verification database in an embodiment;
[0060] Figure 5 A schematic diagram of an exemplary level creation interface in one embodiment;
[0061] Figure 6 A schematic diagram of a process of deleting newly added level information by a server in one embodiment;
[0062] Figure 7 A schematic diagram of a process of modifying newly added level information by a server in one embodiment;
[0063] Figure 8 A schematic diagram of a flow chart of a member level configuration method in one embodiment;
[0064] Fig. 9 It is a structural block diagram of a member level configuration device in one embodiment;
[0065] Fig.10FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] Below, the implementation environment involved in the member level configuration method provided in the embodiment of the present application will be briefly described.
[0068] like Figure 1 As shown, the implementation environment may include a server 101 and at least one terminal 102 ( Figure 1 Only one terminal 102 is exemplarily shown in the figure). The terminal 102 can communicate with the server 101 via a wired or wireless network.
[0069] The server 101 may be a single server or a server cluster consisting of multiple servers. The server 101 may be a tower server, a rack server, a blade server, a high-density server, a single-channel server, a dual-channel server, or a multi-channel server, etc. The embodiment of the present application does not specifically limit the type of the server 101. The terminal 102 may be a personal computer, a laptop computer, a media player, a smart TV, a smart phone, a tablet computer, a portable wearable device, etc. The embodiment of the present application does not specifically limit the type of the terminal 102.
[0070] In one embodiment, Figure 2 As shown, a member level configuration method is provided, which is applied to Figure 1 Taking the server shown in FIG. 1 as an example, the method includes steps 201, 202 and 203:
[0071] Step 201: The server receives the target user identification and the level configuration to be verified sent by the terminal.
[0072] In the e-commerce field, e-commerce platforms or stores usually adopt a membership level system to manage users. By configuring multiple membership levels, differentiated operations are carried out for users of different membership levels to enhance members' contribution to the e-commerce platform or store.
[0073] In the embodiment of the present application, the configuration of the level to be verified is the user input obtained by the terminal from the preset level creation interface, and the configuration of the level to be verified may include the basic information of the level to be verified and the conditional information of the level to be verified. In a possible implementation, if the e-commerce platform or store needs to configure the membership level, the staff of the e-commerce platform or store can send a level configuration request to the server through the terminal, and the server receives the level configuration request sent by the terminal, and then sends a level creation interface to the terminal, and the level creation interface includes a basic information configuration control and a conditional configuration control; in this way, the staff can input the basic information of the level to be verified based on the basic information configuration control, and can input the conditional information of the level to be verified based on the conditional configuration control.
[0074] In one possible implementation, the conditional configuration control includes at least one of an upgrade condition input control, a relegation condition input control, and a downgrade condition input control. The staff can input upgrade condition information based on the upgrade condition input control, can input relegation condition information based on the relegation condition input control, and can input downgrade condition information based on the downgrade condition input control. In this way, refined configuration of levels can be achieved through upgrade, relegation, and downgrade strategies.
[0075] As an implementation method, the level configuration request sent by the terminal to the server may carry a business scenario type, and the business scenario type may be, for example, a transaction amount, a growth value, or a payment mode. If the business scenario type is a transaction amount, it indicates that the division of membership levels is associated with the transaction amount of the user, and the transaction amount may include factors such as the consumption amount and the consumption frequency; if the business scenario type is a payment mode, it indicates that the division of membership levels is associated with the user's paid purchase level; if the business scenario type is a growth value, it indicates that the division of membership levels is associated with the user's growth value, and the growth value may be, for example, a score obtained by quantifying the user's purchase behavior, evaluation behavior, and other consumption-related behaviors.
[0076] The server receives the level configuration request sent by the terminal, and sends a level creation interface corresponding to the business scenario type to the terminal according to the business scenario type carried in the level configuration request. The condition configuration controls of the level creation interface corresponding to different business scenario types may be different, and different condition configuration controls are used by staff to input level configuration conditions corresponding to the current business scenario type. In this way, through the level creation interface corresponding to different business scenario types, member level configuration support for multiple business scenarios is provided to e-commerce platforms or stores.
[0077] Step 202: The server verifies the configuration of the level to be verified according to the target user identifier and a preset verification database.
[0078] After receiving the level configuration to be verified sent by the terminal, the server needs to verify the level configuration to be verified. In the embodiment of the present application, the server can use a preset verification database to verify the level configuration to be verified, and the verification database includes verified level configurations corresponding to different user identifiers. The verified level configuration can be the level configuration information that has been configured.
[0079] In a possible implementation, the server may determine the target verified grade configuration corresponding to the target user identifier from the verification database according to the target user identifier, and then use the target verified grade configuration to verify the grade configuration to be verified. The verification may be, for example, that the server verifies the data format of the grade basic information to be verified and the grade condition information to be verified, verifies whether the grade basic information to be verified is repeated with the verified grade configuration, verifies whether the grade condition information to be verified is repeated with the verified grade configuration, and so on.
[0080] As an implementation method, macro commands corresponding to the level creation interface of each business scenario type can be preset in the server. For a business scenario type, the developer can define a factory class for the business scenario type, and then combine the macro commands corresponding to the business scenario type through the enumeration class of the business scenario type. For example, the developer can select the basic information command developed in advance, the upgrade strategy command corresponding to the business scenario type, the level retention strategy command corresponding to the business scenario type, and the downgrade strategy command corresponding to the business scenario type, and combine them into the macro command corresponding to the business scenario type. The reusability and scalability of the command code can be achieved by means of macro commands, which improves development efficiency.
[0081] Developers can add annotations to macro commands and define the type and order of interceptors through annotations. In this way, after the server receives the target user identifier and the level configuration to be verified sent by the terminal, it uses the target user identifier and the level configuration to be verified as the input parameters of the macro command corresponding to the business scenario type, executes the macro command, and verifies the level configuration to be verified based on the defined interceptor type and order to obtain the verification result.
[0082] Step 203: If the verification is successful, the server adds the level configuration to be verified to the verification database and sends a message indicating that the level configuration is successful to the terminal.
[0083] If the level configuration to be verified passes the verification, the server will add the level configuration to be verified to the verification database to complete the level configuration of the member level; the server sends a message of successful level configuration to the terminal to notify the terminal that the level configuration is successful.
[0084] The above embodiment receives the target user identifier and the level configuration to be verified sent by the terminal, the level configuration to be verified includes the basic information of the level to be verified and the condition information of the level to be verified, the level configuration to be verified is the user input obtained by the terminal from the preset level creation interface, the level creation interface includes the basic information configuration control and the condition configuration control, the condition configuration control includes at least one of the upgrade condition input control, the level retention condition input control and the downgrade condition input control; then, according to the target user identifier and the preset verification database, the level configuration to be verified is verified, the verification database includes the verified level configurations corresponding to different user identifiers; if the verification passes, the level configuration to be verified is added to the verification database, and a message of successful level configuration is sent to the terminal, so that the user input is obtained through the preset level creation interface, and when the user input verification passes, the level configuration to be verified can be automatically added to the verification database to complete the level configuration, thereby avoiding the problem of low configuration efficiency caused by manual configuration of the newly added member level in the traditional technology. The embodiment of the present application can improve the configuration efficiency of the member level.
[0085] In one embodiment, based on the above Figure 2 The embodiment shown, see Figure 3 , this embodiment relates to the process of how the server verifies the configuration of the level to be verified. In this embodiment, the basic information of the level to be verified includes the name of the level to be verified and the validity period of the level to be verified. Figure 3 As shown, step 202 of this embodiment may include the following: Figure 3 Step 2021, step 2022 and step 2023 shown:
[0086] Step 2021: The server determines the target verified level configuration corresponding to the target user identifier from the verification database according to the target user identifier.
[0087] In the embodiment of the present application, the target user identifier can be a store identifier or a platform identifier of an e-commerce platform. Taking the target user identifier as a store identifier as an example, the target verified level configuration can be the level configuration information of the store corresponding to the store identifier. For example, if the store has configured membership levels of level one and level two, the target verified level configuration can be the level configuration information of level one and level two.
[0088] In the embodiment of the present application, the verification database includes verified level configurations corresponding to different user identifiers, and each verified level configuration can be associated with the corresponding user identifier and stored in the verification database. The server can search the verification database for the verified level configuration associated with the target user identifier according to the target user identifier, and then obtain the target verified level configuration, which can include the level name of the target verified level and the target level validity period.
[0089] In step 2022, the server determines whether the data format of the name of the level to be verified is the same as the data format of the level name of the target verified level, and determines whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtains a determination result.
[0090] The data format of the level name of the target verified level may be, for example, data length, whether it includes keywords, whether it is not empty, etc. The server determines whether the data length of the level name to be verified is the same as the data length of the level name of the target verified level, whether the keywords included in the level name to be verified are the same as the keywords included in the level name of the target verified level, and whether the level name to be verified is empty; if the data length of the level name to be verified is the same as the data length of the level name of the target verified level, the keywords included in the level name to be verified are the same as the keywords included in the level name of the target verified level, and the level name to be verified is not empty, the server determines that the data format of the level name to be verified is the same as the data format of the level name of the target verified level.
[0091] The data format of the target level validity period can be data length, data sign is not negative, not empty, etc. The server determines whether the data length of the validity period of the level to be verified is the same as the data length of the target level validity period, whether the data sign of the validity period of the level to be verified is negative, and whether the validity period of the level to be verified is empty; if the data length of the validity period of the level to be verified is the same as the data length of the target level validity period, the data sign of the validity period of the level to be verified is not negative, and the validity period of the level to be verified is not empty, the server determines that the data format of the validity period of the level to be verified is the same as the data format of the target level validity period.
[0092] In this way, the server completes preliminary verification of the basic information of the level to be verified through step 2022 and obtains the verification result. For example, the level name of the target verified level is level 2, the target level is valid for 6 months, the level name to be verified is level 3, and the level is valid for 6 months. The server determines through step 2022 that the verification result is that the data format of the level name to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level.
[0093] Step 2023: The server verifies the configuration of the level to be verified according to the judgment result.
[0094] If the judgment result is that the data format of the name of the level to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, the server continues to verify the configuration of the level to be verified.
[0095] In the embodiment of the present application, the level condition information to be verified includes at least one of upgrade condition information, level retention condition information and downgrade condition information.
[0096] In the case where the level condition information to be verified includes level retention condition information and / or level downgrade condition information, the server may implement the process of step 2023 by executing the following steps A1 and A2:
[0097] Step A1, if the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, the server detects whether the data format of the retention condition information and / or the data format of the downgrade condition information is a preset format.
[0098] Step A2: If the data format of the level retention condition information is the preset format and / or the data format of the level downgrade condition information is the preset format, the server determines that the level configuration to be verified has passed verification.
[0099] When the data format of the name of the level to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, the implementation process of step A1 and step A2 will be introduced below for the three cases where the level condition information to be verified includes level retention condition information, the level condition information to be verified includes downgrade condition information, and the level condition information to be verified includes level retention condition information and downgrade condition information.
[0100] In the case where the level condition information to be verified includes the relegation condition information, the server detects whether the data format of the relegation condition information is a preset format, and the preset format may be a preset data length, the data is not empty, the data is not negative, etc. If the data length of the relegation condition information is the preset data length, and the relegation condition information is neither empty nor negative, then the data format of the relegation condition information is determined to be the preset format. In an embodiment of the present application, the relegation condition information includes the relegation condition period and the relegation threshold. For example, the current business scenario type is the transaction amount, the relegation condition period is 2 months, and the relegation threshold is 1,000 yuan. If the server detects that the data length of the relegation condition period is the preset data length, the data length of the relegation threshold is the preset data length, and the relegation condition period and the relegation threshold are neither empty nor negative, then the data format of the relegation condition information is determined to be the preset format, and the server determines that the level configuration to be verified has passed the verification.
[0101] In the case where the level condition information to be verified includes downgrade condition information, the server detects whether the data format of the downgrade condition information is a preset format, and the preset format may be a preset data length, the data is not empty, the data is not negative, etc. If the data length of the downgrade condition information is the preset data length, and the downgrade condition information is neither empty nor negative, then the data format of the downgrade condition information is determined to be the preset format. In an embodiment of the present application, the downgrade condition information includes the downgrade condition period and the downgrade threshold. For example, the current business scenario type is the transaction amount, the downgrade condition period is 2 months, and the downgrade threshold is 500 yuan. If the server detects that the data length of the downgrade condition period is the preset data length, the data length of the downgrade threshold is the preset data length, and the downgrade condition period and the downgrade threshold are neither empty nor negative, then the data format of the downgrade condition information is determined to be the preset format, and the server determines that the level configuration to be verified has passed the verification.
[0102] In the case that the level condition information to be verified includes the level retention condition information and the downgrade condition information, the server detects whether the data format of the level retention condition information is a preset format and detects whether the data format of the downgrade condition information is a preset format. The preset format may be a preset data length, the data is not empty, the data is not negative, etc. If the data length of the level retention condition information and the data length of the downgrade condition information are both the preset data length, the level retention condition information is neither empty nor negative, and the downgrade condition information is neither empty nor negative, the server determines that the data format of the level retention condition information and the downgrade condition information are the preset format, thereby determining that the level configuration to be verified has passed.
[0103] In this way, when the level condition information to be verified includes the level retention condition information and / or the level downgrade condition information, the server completes the verification of the level configuration to be verified.
[0104] In a possible implementation, the level condition information to be verified also includes upgrade condition information, and the upgrade condition information includes upgrade condition type, upgrade condition period, and upgrade threshold; the target verified level configuration includes the target upgrade threshold and target upgrade type of the target verified level. Step 2023 may also include the following steps A3, A4, and A5:
[0105] Step A3, if the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, the server detects whether the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats.
[0106] The preset format may be, for example, a preset data length, the data is not empty, the data is not negative, etc. The server detects whether the data length of the upgrade condition period is the preset data length, whether the data length of the upgrade threshold is the preset data length, whether the upgrade condition period is empty or negative, and whether the upgrade threshold is empty or negative.
[0107] Step A4, if the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats, the server detects whether the name of the level to be verified is the same as the level name of the target verified level, and detects whether the upgrade threshold is greater than the target upgrade threshold, and detects whether the upgrade condition type is the same as the target upgrade type.
[0108] If the data length of the upgrade condition period is the preset data length, the data length of the upgrade threshold is the preset data length, and the upgrade condition period and the upgrade threshold are neither empty nor negative, the server determines that the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats. The server then detects whether the name of the level to be verified is the same as the level name of the target verified level, whether the upgrade threshold is greater than the target upgrade threshold, and whether the upgrade condition type is the same as the target upgrade type.
[0109] In the embodiment of the present application, the staff of the store or e-commerce platform can configure the membership level according to the principle of increasing level when setting the membership level. For example, the name of the target verified level is level two, the target upgrade threshold is 500 yuan, and the target upgrade type is "reaching the specified consumption amount within the specified period", then the staff can configure a higher level of membership level, and the upgrade threshold needs to be greater than 500 yuan, and the upgrade condition type cannot be changed. For example, the name of the level to be verified can be set to level three, the upgrade threshold is 1,000 yuan, and the upgrade condition type is "reaching the specified consumption amount within the specified period". In this way, the server determines that the name of the level to be verified is different from the name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type.
[0110] Step A5, if the name of the level to be verified is the same as the name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, the server determines that the configuration verification of the level to be verified is passed.
[0111] If the name of the level to be verified is the same as the name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, the server determines that the configuration verification of the level to be verified has passed. In this way, when the level condition information to be verified also includes upgrade condition information, the server completes the configuration verification of the level to be verified.
[0112] After the verification of the level configuration to be verified is passed, the server will add the level configuration to the verification database to complete the level configuration, thereby improving the configuration efficiency of the member level.
[0113] In one embodiment, based on the above Figure 2 The embodiment shown in the figure is related to the process of how the server adds the configuration of the level to be verified to the verification database. Figure 4 , the server can execute Figure 4 Steps 401 and 402 shown implement the process:
[0114] Step 401: The server obtains the rights and interests information corresponding to the level configuration to be verified.
[0115] Usually, e-commerce platforms or stores will configure different membership benefits for different membership levels. Figure 5 , Figure 5 The following is a schematic diagram of an exemplary level creation interface. Figure 5 As shown, the level creation interface also includes a rights input control. The rights information is obtained based on the rights input control. The rights information is the member rights information enjoyed by users of the corresponding member level.
[0116] In a possible implementation, the user inputs equity information based on the equity input control, the terminal sends the equity information to the server, and the server calls a preset equity interface to perform verification and other processing on the equity information.
[0117] Step 402: The server generates new level information according to the level configuration to be verified and the rights and interests information, and adds the new level information to the verification database.
[0118] If the rights and interests interface call is successful and the rights and interests information verification is successful, the server generates new level information based on the level configuration to be verified and the rights and interests information. For example, the server can splice the level configuration to be verified and the rights and interests information to obtain the new level information, and the server associates the new level information with the target user identifier and stores it in the verification database. If the rights and interests interface call fails or the rights and interests information verification fails, the server returns a message of level configuration failure to the terminal.
[0119] As an implementation mode, the server generates the newly added grade information and sends the grade code of the membership grade corresponding to the newly added grade information to the terminal. The server stores the newly added grade information and the corresponding grade code in the verification database in correspondence.
[0120] In one possible implementation, the server may create a log file for the member level corresponding to the newly added level information, and store the created log file and the level code in correspondence. The log file is used to record operations such as creation, modification, and deletion of the member level corresponding to the level code. In this way, system modifications are persisted in the log file, and when the system is restored, it only needs to read the modification records from the log file.
[0121] As described above, the level creation interface of each business scenario type may correspond to a macro command, and the server may implement the level configuration process by executing the macro command. In a possible implementation, before the macro command corresponding to the level creation interface of the current business scenario type is executed, the server may create a level configuration monitoring list, and the server stores the macro command, the user input obtained based on the level creation interface, and the status of the macro command in the level configuration monitoring list, and configures an id for the macro command, at which point the status of the macro command is invalid.
[0122] The server executes the macro command to verify the level configuration to be verified. If the level configuration to be verified passes the inspection, the server calls the equity interface to process the equity information. If the equity interface call is successful and the equity information verification is successful, the server generates new level information based on the level configuration to be verified and the equity information, and changes the status of the macro command to a valid state in the level configuration monitoring list according to the id of the macro command. If the equity interface call fails or the equity information verification fails, the server deletes the record related to the macro command in the level configuration monitoring list according to the id of the macro command. In this way, the revocation of the level configuration process is realized through the macro command.
[0123] In one embodiment, based on the above Figure 4 The embodiment shown, see Figure 6 This embodiment involves the process of how the server deletes the newly added level information. Figure 6As shown, this embodiment further includes steps 601, 602, 603 and 604 after step 402:
[0124] Step 601: The server receives a deletion instruction for newly added level information sent by the terminal.
[0125] If a store or e-commerce platform needs to delete the newly added level information of a certain membership level, for example, the number of users of a certain membership level is 0, the staff of the store or e-commerce platform can send a deletion instruction for the newly added level information of the membership level through the terminal, and the deletion instruction may include the corresponding level code. The newly added level information includes the target level configuration and the target rights and interests information.
[0126] Since the newly added level information has been configured, the newly added level information and the corresponding macro command are stored in the level configuration monitoring list. The macro command has a unique id, and the status of the macro command is a valid status.
[0127] Step 602: In response to the deletion instruction, the server marks the target level configuration in the newly added level information as invalid, and detects whether the target rights and interests information in the newly added level information is deleted successfully.
[0128] After receiving the deletion instruction, the server marks the target level configuration in the newly added level information as invalid, for example, the status of the corresponding macro command may be marked as invalid in the level configuration monitoring list.
[0129] The server calls the preset equity interface to delete the target equity information, and the server detects whether the target equity information is deleted successfully.
[0130] Step 603: If the target rights and interests information in the newly added level information is deleted successfully, the server sends a message of successful deletion to the terminal.
[0131] If the equity interface call is successful and the equity interface successfully deletes the target equity information, the server sends a deletion success message to the terminal to complete the deletion of the newly added level information.
[0132] Step 604: If the target benefit information in the newly added level information fails to be deleted, the server marks the target level configuration in the newly added level information as valid, and sends a deletion failure message to the terminal.
[0133] If the equity interface fails to call or the equity interface fails to delete the target equity information, the server will restore the status of the macro command to a valid state in the level configuration monitoring list according to the id of the macro command corresponding to the newly added level information, and send a message to the terminal that the deletion of the newly added level information has failed. In this way, through the rollback and cancellation of the macro command, when the target equity information fails to be deleted, the newly added level information before deletion is restored, avoiding the accidental deletion of the newly added level information and improving the flexibility of level management.
[0134] In one embodiment, based on the above Figure 4 The embodiment shown, see Figure 7 This embodiment involves the process of how the server modifies the newly added level information. Figure 7 As shown, this embodiment further includes steps 701, 702, 703 and 704 after step 402:
[0135] Step 701: The server receives a modification instruction for newly added level information sent by a terminal.
[0136] In the embodiment of the present application, if the terminal needs to add new level information, it sends a modification instruction for the new level information to the server. After the server creates a membership level, it sends the level code of the membership level to the terminal, and the modification instruction sent by the terminal to the server can carry the level code.
[0137] Step 702: The server sends a level modification interface to the terminal in response to the modification instruction.
[0138] Step 703: The server receives the level modification information obtained by the terminal based on the level modification interface, and verifies the level modification information according to a verification database.
[0139] After receiving the modification instruction for the newly added level information, the server sends a level modification interface to the terminal. The user inputs the level modification information based on the level modification interface, and the terminal sends the level modification information to the server.
[0140] In a possible implementation, the newly added level information includes target level configuration and target rights and interests information, and the level modification information includes rights and interests modification information and level modification configuration. The server may perform the following steps B1, B2, B3, and B4 to implement a process of verifying the level modification information according to a verification database:
[0141] Step B1, the server verifies the level modification configuration according to the verification database.
[0142] In the embodiment of the present application, the process of the server verifying the level modification configuration according to the verification database is the same as the above Figure 3 The embodiments shown are similar and will not be described again here.
[0143] Step B2: If the verification passes, the server marks the target level configuration as invalid and marks the level modification configuration as valid.
[0144] After the server receives the level modification configuration, similar to the level creation process, the server stores the level modification configuration and the corresponding macro command in the level configuration monitoring list.
[0145] If the level modification configuration verification passes, the server marks the macro command corresponding to the target level configuration as invalid in the level configuration monitoring list, and marks the level modification configuration and the corresponding macro command as valid.
[0146] Step B3: The server detects whether the rights modification information is successfully modified.
[0147] The server calls the preset equity interface to modify the equity modification information.
[0148] Step B4: If the rights modification information is successfully modified, the server determines that the level modification information verification has passed.
[0149] If the equity interface call is successful and the equity modification information is successfully modified, the server determines that the level modification information verification has passed and sends a message of successful modification to the terminal.
[0150] Step 704: If the verification is successful, the server adds the level modification information to the verification database and sends a message to the terminal indicating that the level information has been successfully modified.
[0151] In another possible implementation, if the modification of the rights modification information fails, the server marks the target level configuration as valid and marks the level modification configuration as invalid, and sends a level modification failure message to the terminal.
[0152] That is, if the equity interface call fails or the equity modification information fails to be modified, the server will restore the macro command corresponding to the target level configuration to a valid state in the level configuration monitoring list, and mark the macro command corresponding to the level modification configuration as an invalid state. The server runs the macro command corresponding to the target level configuration, and restores the newly added level information to the state before the modification.
[0153] The embodiment of the present application uses the undo rollback of the macro command to restore the newly added level information before the modification when the target rights information modification fails, thereby improving the flexibility of level management. By creating a level configuration monitoring list, the operations in the level management process are recorded, thereby improving the traceability of level management.
[0154] In one embodiment, please refer to Figure 8, which shows a flowchart of an exemplary member level configuration method provided in an embodiment of the present application, which can be applied to Figure 1 In the implementation environment shown. Figure 8 As shown, the method may include the following steps:
[0155] Step 8001: The server receives a level configuration request sent by a terminal.
[0156] The level configuration request carries the business scenario type.
[0157] Step 8002: The server sends a level creation interface corresponding to the business scenario type to the terminal according to the business scenario type.
[0158] Step 8003: the terminal obtains the level configuration to be verified input by the user based on the level creation interface, and sends the target user identifier and the level configuration to be verified to the server.
[0159] Step 8004: The server receives the target user identification and the level configuration to be verified sent by the terminal.
[0160] The level configuration to be verified is a user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a level retention condition input control, and a downgrade condition input control; the level configuration to be verified includes the basic level information to be verified and the level condition information to be verified;
[0161] Step 8005: The server verifies the configuration of the level to be verified according to the target user identifier and the preset verification database.
[0162] Among them, the verification database includes verified level configurations corresponding to different user identifiers; the basic information of the level to be verified includes the name of the level to be verified and the validity period of the level to be verified; the level condition information to be verified includes at least one of the upgrade condition information, the level retention condition information and the downgrade condition information.
[0163] Step 8005 may include the following steps a1, a2 and a3:
[0164] Step a1: The server determines the target verified level configuration corresponding to the target user identifier from the verification database according to the target user identifier.
[0165] Among them, the target verified level configuration includes the level name of the target verified level and the target level validity period.
[0166] Step a2, the server determines whether the data format of the name of the level to be verified is the same as the data format of the level name of the target verified level, and determines whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtains a judgment result.
[0167] Step a3: the server verifies the configuration of the level to be verified according to the judgment result.
[0168] Optionally, if the level condition information to be verified includes level retention condition information and / or downgrade condition information, step a3 includes: if the data format of the level name to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the target level validity period, the server detects whether the data format of the level retention condition information and / or the data format of the downgrade condition information is a preset format; if the data format of the level retention condition information is a preset format and / or the data format of the downgrade condition information is a preset format, the server determines that the level configuration to be verified has passed the verification. The level retention condition information includes the level retention condition period and the level retention threshold, and the downgrade condition information includes the downgrade condition period and the downgrade threshold.
[0169] Optionally, if the level condition information to be verified also includes upgrade condition information, the upgrade condition information includes the upgrade condition type, the upgrade condition period and the upgrade threshold; the target verified level configuration includes the target upgrade threshold and the target upgrade type of the target verified level; step a3 also includes: if the data format of the level name to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the target level validity period, the server detects whether the data format of the upgrade condition period and the data format of the upgrade threshold are preset formats; if the data format of the upgrade condition period and the data format of the upgrade threshold are preset formats, the server detects whether the level name to be verified is the same as the level name of the target verified level, and detects whether the upgrade threshold is greater than the target upgrade threshold, and detects whether the upgrade condition type is the same as the target upgrade type; if the level name to be verified is the same as the level name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, the server determines that the level configuration to be verified has passed the verification.
[0170] Step 8006: If the verification passes, the server obtains the rights and interests information corresponding to the level configuration to be verified.
[0171] Among them, the level creation interface also includes a rights input control, and the rights information is obtained based on the rights input control.
[0172] Step 8007: The server generates new level information according to the level configuration to be verified and the rights and interests information, adds the new level information to the verification database, and sends a message of successful level configuration to the terminal.
[0173] Step 8008: The server receives a deletion instruction for the newly added level information sent by the terminal.
[0174] Among them, the newly added level information includes target level configuration and target rights and interests information.
[0175] Step 8009: In response to the deletion instruction, the server marks the target level configuration in the newly added level information as invalid, and detects whether the target rights and interests information in the newly added level information is deleted successfully.
[0176] Step 8010: If the target rights and interests information in the newly added level information is deleted successfully, the server sends a message of successful deletion to the terminal.
[0177] Step 8011: If the target benefit information in the newly added level information fails to be deleted, the server marks the target level configuration in the newly added level information as valid, and sends a deletion failure message to the terminal.
[0178] Step 8012: The server receives a modification instruction for the newly added level information sent by the terminal.
[0179] Step 8013: The server sends a level modification interface to the terminal in response to the modification instruction.
[0180] Step 8014: The server receives the level modification information obtained by the terminal based on the level modification interface, and verifies the level modification information according to the verification database.
[0181] Step 8015: If the verification is successful, the server adds the level modification information to the verification database and sends a message to the terminal indicating that the level information has been successfully modified.
[0182] The newly added level information includes the target level configuration and the target rights and interests information, the level modification information includes the rights and interests modification information and the level modification configuration, and the level modification information is verified according to the verification database, including: the server verifies the level modification configuration according to the verification database; if the verification passes, the server marks the target level configuration as invalid and the level modification configuration as valid; the server detects whether the rights and interests modification information is successfully modified; if the rights and interests modification information is successfully modified, the server determines that the level modification information verification has passed. If the rights and interests modification information fails to be modified, the server marks the target level configuration as valid and the level modification configuration as invalid; the server sends a message to the terminal indicating that the level modification has failed.
[0183] It should be understood that although Figure 2-8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-8 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0184] In one embodiment, Fig. 9 As shown, a member level configuration device is provided, the device comprising:
[0185] The first receiving module 10 is used to receive the target user identification and the level configuration to be verified sent by the terminal; wherein the level configuration to be verified is the user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a level retention condition input control, and a downgrade condition input control; the level configuration to be verified includes the basic level information to be verified and the level condition information to be verified;
[0186] A verification module 20, configured to verify the level configuration to be verified according to the target user identifier and a preset verification database; wherein the verification database includes verified level configurations corresponding to different user identifiers;
[0187] The configuration module 30 is used to add the level configuration to be verified to the verification database if the verification is passed, and send a message of successful level configuration to the terminal.
[0188] In one embodiment, the level creation interface further includes a rights input control, and the configuration module 30 includes:
[0189] An acquisition unit, configured to acquire the rights and interests information corresponding to the level configuration to be verified; wherein the rights and interests information is acquired based on the rights and interests input control;
[0190] A configuration unit is used to generate new level information according to the level configuration to be verified and the rights and interests information, and add the new level information to the verification database.
[0191] In one embodiment, the basic information of the level to be verified includes the name of the level to be verified and the validity period of the level to be verified; the condition information of the level to be verified includes at least one of upgrade condition information, level retention condition information and downgrade condition information.
[0192] In one embodiment, the verification module 20 includes:
[0193] A determination unit, configured to determine, from the verification database, a target verified level configuration corresponding to the target user identifier according to the target user identifier; wherein the target verified level configuration includes a level name of the target verified level and a target level validity period;
[0194] a judgment unit, configured to judge whether the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and to judge whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtain a judgment result;
[0195] A verification unit is used to verify the level configuration to be verified according to the judgment result.
[0196] In one embodiment, if the level condition information to be verified includes the level retention condition information and / or the downgrade condition information, the verification unit is specifically used to detect whether the data format of the level retention condition information and / or the data format of the downgrade condition information is a preset format if the data format of the level name to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the target level validity period; if the data format of the level retention condition information is the preset format and / or the data format of the downgrade condition information is the preset format, it is determined that the configuration verification of the level to be verified has passed.
[0197] In one embodiment, the relegation condition information includes a relegation condition period and a relegation threshold, and the demotion condition information includes a demotion condition period and a demotion threshold.
[0198] In one embodiment, if the level condition information to be verified also includes upgrade condition information, the upgrade condition information includes an upgrade condition type, an upgrade condition period, and an upgrade threshold; the target verified level configuration includes a target upgrade threshold and a target upgrade type of the target verified level; the verification unit is also used to detect whether the data format of the upgrade condition period and the data format of the upgrade threshold are preset formats if the data format of the level name to be verified is the same as the data format of the level name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the target level validity period; if the data format of the upgrade condition period and the data format of the upgrade threshold are preset formats, detect whether the level name to be verified is the same as the level name of the target verified level, detect whether the upgrade threshold is greater than the target upgrade threshold, and detect whether the upgrade condition type is the same as the target upgrade type; if the level name to be verified is the same as the level name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, determine that the level configuration to be verified has passed the verification.
[0199] In one embodiment, the apparatus further comprises:
[0200] A second receiving module, configured to receive a level configuration request sent by the terminal, wherein the level configuration request carries a service scenario type;
[0201] The first sending module is used to send the level creation interface corresponding to the business scenario type to the terminal according to the business scenario type.
[0202] In one embodiment, the apparatus further comprises:
[0203] A third receiving module is used to receive a deletion instruction for the newly added level information sent by the terminal; wherein the newly added level information includes a target level configuration and target rights and interests information;
[0204] a marking module, configured to, in response to the deletion instruction, mark the target level configuration in the newly added level information as an invalid state, and detect whether the target rights and interests information in the newly added level information is deleted successfully;
[0205] A second sending module, configured to send a message of successful deletion to the terminal if the target rights and interests information in the newly added level information is successfully deleted;
[0206] The third sending module is used to mark the target level configuration in the newly added level information as a valid state if the target rights and interests information in the newly added level information fails to be deleted, and send a deletion failure message to the terminal.
[0207] In one embodiment, the apparatus further comprises:
[0208] A fourth receiving module, configured to receive a modification instruction for the newly added level information sent by the terminal;
[0209] a fourth sending module, configured to send a level modification interface to the terminal in response to the modification instruction;
[0210] a fifth receiving module, configured to receive the level modification information acquired by the terminal based on the level modification interface, and verify the level modification information according to the verification database;
[0211] The fifth sending module is used to add the level modification information to the verification database if the verification is passed, and send a message indicating that the level information is successfully modified to the terminal.
[0212] In one embodiment, the newly added level information includes target level configuration and target rights and interests information, the level modification information includes rights and interests modification information and level modification configuration, and the fifth receiving module is specifically used to verify the level modification configuration according to the verification database; if the verification passes, the target level configuration is marked as invalid, and the level modification configuration is marked as valid; detect whether the rights and interests modification information is modified successfully; if the rights and interests modification information is modified successfully, determine that the level modification information verification has passed.
[0213] In one embodiment, the fifth receiving module is further used to mark the target level configuration as valid and mark the level modification configuration as invalid if the modification of the rights modification information fails; and send a level modification failure message to the terminal.
[0214] For the specific definition of the member level configuration device, please refer to the definition of the member level configuration method applied to the target terminal above, which will not be repeated here. Each module in the above-mentioned member level configuration device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0215] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store member level configuration data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a member level configuration method is implemented.
[0216] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0217] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of a member level configuration method in the above embodiment when executing the computer program.
[0218] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a member level configuration method in the above embodiment are implemented.
[0219] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0220] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0221] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A member level configuration method, characterized in that: The method comprises: The target user identifier and the level configuration to be verified sent by the receiving terminal; wherein the target user identifier is a store identifier or a platform identifier of an e-commerce platform; the level configuration to be verified is a user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a relegation condition input control, and a downgrade condition input control; the level configuration to be verified includes basic level information to be verified and level condition information to be verified, and the basic level information to be verified includes a name of the level to be verified and a validity period of the level to be verified, and the level condition information to be verified includes at least one of upgrade condition information, relegation condition information, and downgrade condition information; According to the target user identifier and a preset verification database, the level configuration to be verified is verified; wherein the verification database includes verified level configurations corresponding to different user identifiers; the verification is to verify the data format of the level basic information to be verified and the level condition information to be verified, to verify whether the level basic information to be verified is repeated with the verified level configuration, and to verify whether the level condition information to be verified is repeated with the verified level configuration; If the verification is successful, the level configuration to be verified is added to the verification database, and a message indicating that the level configuration is successful is sent to the terminal; The verifying the level configuration to be verified according to the target user identifier and a preset verification database includes: Determining a target verified level configuration corresponding to the target user identifier from the verification database according to the target user identifier; wherein the target verified level configuration includes a level name of the target verified level and a target level validity period; Determine whether the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and determine whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtain a determination result, wherein the data format of the name of the target verified level includes the data length, whether it includes keywords, and is not empty, and the data format of the validity period of the target level includes the data length, the data sign is not negative, and is not empty; Verifying the level configuration to be verified according to the judgment result; The level creation interface also includes a rights input control, and the adding of the to-be-verified level configuration to the verification database includes: Acquire the rights and interests information corresponding to the level configuration to be verified; wherein the rights and interests information is acquired based on the rights and interests input control; Generate new level information according to the level configuration to be verified and the rights and interests information, and add the new level information to the verification database; receiving a deletion instruction for the newly added level information sent by the terminal; wherein the newly added level information includes a target level configuration and target rights and interests information; In response to the deletion instruction, marking the target level configuration in the newly added level information as invalid, and detecting whether the target rights and interests information in the newly added level information is deleted successfully; If the target rights and interests information in the newly added level information is deleted successfully, a message of successful deletion is sent to the terminal; If the target benefit information in the newly added level information fails to be deleted, the target level configuration in the newly added level information is marked as a valid state, and a deletion failure message is sent to the terminal.
2. The method according to claim 1, characterized in that If the level condition information to be verified includes the level retention condition information and / or the level downgrade condition information, then verifying the level configuration to be verified according to the judgment result includes: If the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, then detecting whether the data format of the level retention condition information and / or the data format of the level demotion condition information is a preset format; If the data format of the grade retention condition information is a preset format and / or the data format of the grade demotion condition information is a preset format, it is determined that the to-be-verified grade configuration verification has passed.
3. The method according to claim 2, characterized in that The relegation condition information includes a relegation condition period and a relegation threshold, and the demotion condition information includes a demotion condition period and a demotion threshold.
4. The method according to claim 2, characterized in that: If the level condition information to be verified also includes upgrade condition information, the upgrade condition information includes upgrade condition type, upgrade condition period and upgrade threshold; the target verified level configuration includes the target upgrade threshold and target upgrade type of the target verified level; The verifying the to-be-verified level configuration according to the judgment result further includes: If the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, then detecting whether the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats; If the data format of the upgrade condition period and the data format of the upgrade threshold are the preset formats, then detecting whether the name of the level to be verified is the same as the level name of the target verified level, detecting whether the upgrade threshold is greater than the target upgrade threshold, and detecting whether the upgrade condition type is the same as the target upgrade type; If the name of the level to be verified is the same as the level name of the target verified level, the upgrade threshold is greater than the target upgrade threshold, and the upgrade condition type is the same as the target upgrade type, it is determined that the configuration verification of the level to be verified has passed.
5. The method according to any one of claims 1 to 4, characterized in that: Before the receiving terminal sends the target user identification and the level configuration to be verified, the method further includes: receiving a level configuration request sent by a terminal, wherein the level configuration request carries a service scenario type; A level creation interface corresponding to the business scenario type is sent to the terminal according to the business scenario type.
6. The method according to claim 1, characterized in that The method further comprises: receiving a modification instruction for the newly added level information sent by the terminal; In response to the modification instruction, sending a level modification interface to the terminal; receiving the level modification information acquired by the terminal based on the level modification interface, and verifying the level modification information according to the verification database; If the verification is passed, the level modification information is added to the verification database, and a message indicating that the level information is successfully modified is sent to the terminal.
7. The method according to claim 6, characterized in that The newly added level information includes target level configuration and target rights and interests information, the level modification information includes rights and interests modification information and level modification configuration, and the verifying the level modification information according to the verification database includes: verifying the level modification configuration according to the verification database; If the verification passes, the target level configuration is marked as invalid, and the level modification configuration is marked as valid; Detect whether the equity modification information is successfully modified; If the rights modification information is modified successfully, it is determined that the level modification information verification has passed.
8. The method according to claim 7, characterized in that After detecting whether the equity modification information is successfully modified, the method further includes: If the modification of the equity modification information fails, the target level configuration is marked as valid, and the level modification configuration is marked as invalid; A message indicating that the level modification fails is sent to the terminal.
9. A member level configuration device, characterized in that: The device comprises: The first receiving module is used to receive the target user identification and the level configuration to be verified sent by the terminal; wherein the target user identification is a store identification or a platform identification of an e-commerce platform; the level configuration to be verified is a user input obtained by the terminal from a preset level creation interface; the level creation interface includes a basic information configuration control and a condition configuration control, and the condition configuration control includes at least one of an upgrade condition input control, a relegation condition input control, and a downgrade condition input control; the level configuration to be verified includes basic level information to be verified and level condition information to be verified, the basic level information to be verified includes a name of the level to be verified and a validity period of the level to be verified, and the level condition information to be verified includes at least one of upgrade condition information, relegation condition information, and downgrade condition information; A verification module, configured to verify the level configuration to be verified according to the target user identifier and a preset verification database; wherein the verification database includes verified level configurations corresponding to different user identifiers; the verification is to verify the data format of the level basic information to be verified and the level condition information to be verified, to verify whether the level basic information to be verified is repeated with the verified level configuration, and to verify whether the level condition information to be verified is repeated with the verified level configuration; A configuration module, configured to add the level configuration to be verified to the verification database if the verification is passed, and send a message of successful level configuration to the terminal; The verifying the level configuration to be verified according to the target user identifier and a preset verification database includes: Determining a target verified level configuration corresponding to the target user identifier from the verification database according to the target user identifier; wherein the target verified level configuration includes a level name of the target verified level and a target level validity period; Determine whether the data format of the name of the level to be verified is the same as the data format of the name of the target verified level, and determine whether the data format of the validity period of the level to be verified is the same as the data format of the validity period of the target level, and obtain a determination result, wherein the data format of the name of the target verified level includes the data length, whether it includes keywords, and is not empty, and the data format of the validity period of the target level includes the data length, the data sign is not negative, and is not empty; Verifying the level configuration to be verified according to the judgment result; The level creation interface also includes a rights input control, and the configuration module includes: An acquisition unit, configured to acquire the rights and interests information corresponding to the level configuration to be verified; wherein the rights and interests information is acquired based on the rights and interests input control; a configuration unit, configured to generate new level information according to the level configuration to be verified and the rights and interests information, and add the new level information to the verification database; A third receiving module is used to receive a deletion instruction for the newly added level information sent by the terminal; wherein the newly added level information includes a target level configuration and target rights and interests information; a marking module, configured to, in response to the deletion instruction, mark the target level configuration in the newly added level information as an invalid state, and detect whether the target rights and interests information in the newly added level information is deleted successfully; A second sending module, configured to send a message of successful deletion to the terminal if the target rights and interests information in the newly added level information is successfully deleted; The third sending module is used for marking the target level configuration in the newly added level information as a valid state if the target rights and interests information in the newly added level information fails to be deleted, and sending a message of deletion failure to the terminal.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Setting method for grade system and its system
CN101046857A
Commodity purchasing method and device based on member grade
CN109242530A
