Adaptive management method, device and equipment for right distribution, medium and product
By receiving the target activity identifier of the client and obtaining the pre-stored equity identifier, and generating and running the target business code to obtain the activity content and equity content, the problem of low reusability of the business code in the prior art is solved, and the efficiency of the activity going online is improved.
Patent Information
- Application Number
- CN202411542630.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the business code for newly created activities needs to be re-written according to the new code parameters, resulting in low reusability of the business code and low efficiency of the activity going online.
By receiving the target activity identifier sent by the client, obtaining the pre-stored stake identification, adding it to the initial business code, generating the target business code, running the code to obtain the activity content and stake content, and stake distribution is made based on these contents.
It improves the reusability of the business code of the event, reduces the need for developers to rewrite business code, and improves the efficiency of the event's online operation.
Smart Images

Figure CN119536716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an adaptation management method, device, equipment, medium and product for rights issuance. Background Art
[0002] In order to attract users to participate in the company's online activities, the company's operating staff will set the rights and interests corresponding to the activity when creating the activity. When users participate in the activity, the rights and interests corresponding to the activity can be issued to users. For example, when users participate in a questionnaire survey online, the company's server will issue points to the accounts of users who have completed the questionnaire. Among them, the content of online activities can include the activity name, activity copy, etc. When setting the rights and interests corresponding to the activity, the rights and interests category, the stock of rights and interests, etc. can be set.
[0003] In the prior art, for each activity, developers write business codes based on the activity content of the activity and the rights and interests corresponding to the activity. Among them, the business code contains a first code for running the activity, a second code for determining the rights and interests, and a third code for issuing the rights and interests. When a user participates in an activity on the client, the server can display the activity page on the client based on the first code; when the user completes the activity on the client, the server can determine whether the user can obtain the rights and interests based on the second code, and determine the rights and interests obtained for the user who can obtain the rights and interests; after determining the rights and interests obtained for the user, the server can interact with the management end that provides the rights and interests based on the third code to complete the rights and interests issuance (for example, when a user obtains 100 points, the server interacts with the management end that manages the points data, makes modifications in the database of the management end, and adds 100 points to the user's points data).
[0004] The business code also contains code parameters that support code execution (e.g., the activity name and activity text in the activity content, the set equity inventory, equity winning rate, etc.). For example, the code part used to implement the running of the activity contains the activity title and activity text. When this part of the code is run, the activity page containing the activity title and activity text can be displayed on the client; the code part used to implement the determination of equity contains the equity inventory. When this part of the code is run, if the equity inventory is not 0, it is determined that the user can obtain the equity.
[0005] However, if the code parameters in the business code of the newly created activity are different from the code parameters in the business code of the existing activity, the developer needs to write each code statement containing the code parameters according to the code parameters of the newly created activity to obtain the business code of the created activity. In other words, the reusability of the business code of the activity created in the prior art is not high, and the efficiency of the online operation of the activity is low. For example, if the equity category corresponding to the newly created activity is the same as the equity category corresponding to the existing activity (for example, the equity category of the newly created activity and the existing activity are both: 10 points), but the equity winning rate in the newly created activity is different from that of the existing activity (for example, the winning rate of 10 points in the newly created activity is 1%; the winning rate of 10 points in the existing activity is 3%), the developer needs to write the business code of the newly created activity according to the equity winning rate of the newly created activity. Summary of the invention
[0006] The purpose of the embodiments of the present invention is to provide a method, device, equipment, medium and product for managing the adaptation of rights issuance, so as to improve the reusability of the business code of the activity and improve the efficiency of the online operation of the activity. The specific technical solution is as follows:
[0007] In a first aspect, an embodiment of the present invention provides an adaptation management method for equity issuance, which is applied to a server, and the method includes:
[0008] When receiving a page display request sent by a client and carrying a target activity identifier of a target activity, obtaining a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier;
[0009] The target activity identifier and the target equity identifier are added to the initial business code to obtain the target business code of the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code;
[0010] Run the target business code to obtain the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client;
[0011] When a request for determining rights and interests sent by the client is received, content for determining rights and interests is obtained from the pre-stored rights and interests content indicated by the target rights and interests identifier, and rights and interests are issued based on the obtained content.
[0012] Optionally, the target activity identifier, the activity content indicated by the target activity identifier, and the target benefit identifier are stored in the same row of a preset activity configuration table; the target benefit identifier and the indicated benefit content are stored in the same row of a preset benefit configuration table;
[0013] The obtaining of the pre-stored benefit identifier indicated by the target activity identifier as the target benefit identifier includes:
[0014] Determine a row containing the target activity identifier from the preset activity configuration table;
[0015] Obtain the equity identifier recorded in the determined row as the target equity identifier;
[0016] The running of the target business code to obtain the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed on the page from the rights and interests content indicated by the target rights and interests identifier includes:
[0017] Running the target business code to determine a row containing the target activity identifier from the preset activity configuration table;
[0018] Selecting the first sub-page content to be displayed on the page from the activity content recorded in the determined row;
[0019] Determine a row containing the target equity identifier from the preset equity configuration table;
[0020] Selecting the second sub-page content to be displayed on the page from the equity content recorded in the determined row;
[0021] Combine the first sub-page content and the second sub-page content to obtain page content that needs to be displayed on the page;
[0022] When receiving the rights determination request sent by the client, obtaining the content used for determining the rights from the pre-stored rights content indicated by the target rights identifier, including:
[0023] When receiving the request for determining the rights and interests sent by the client, determining the row containing the target rights and interests identifier from the preset rights and interests configuration table;
[0024] Contents for determining the equity are selected from the equity contents recorded in the determined row.
[0025] Optionally, the activity content indicated by the target activity identifier includes: the activity name, activity copy, activity validity period, activity form and activity picture of the target activity; the first sub-page content includes at least one of the following: the activity name, activity copy, activity validity period and activity picture of the target activity;
[0026] The rights and interests content indicated by the target rights and interests identifier includes: the rights and interests identifier of the target rights and interests, the inventory of the target rights and interests, the winning rate of the target rights and interests, and the icon image of the target rights and interests; the second sub-page content includes the icon image of the target rights and interests.
[0027] Optionally, the content used to determine the equity includes: the inventory and / or winning rate of the target equity;
[0028] The issuing of rights and interests based on the acquired content includes:
[0029] Based on the inventory and / or winning rate of the target equity, the target equity is issued to the account logged in by the client.
[0030] Optionally, the initial business code includes a calling code for calling a rights issuance interface, wherein an interactive function is defined in the rights issuance interface;
[0031] The issuing of the target equity to the account logged in by the client based on the inventory and / or winning rate of the target equity includes:
[0032] Based on the inventory and / or winning rate of the target equity, determine the equity to be issued to the account logged in by the client as the equity to be issued;
[0033] The rights issuance interface is called to generate a rights issuance request including the rights identifier of the rights to be issued and the account identifier of the account through the interactive function, and the request is sent to a rights management terminal for managing the rights to be issued, so that the rights management terminal issues the rights to be issued to the account.
[0034] Optionally, a generation function is also defined in the equity issuance interface;
[0035] The method further comprises:
[0036] Calling the rights issuance interface to generate a winning record identifier through the generation function, and storing the winning record identifier, the rights identifier of the rights to be issued, and the account identifier in association with each other;
[0037] Optionally, the method further includes:
[0038] After determining the rights to be issued, sending a pre-stored jump link corresponding to the rights category of the rights to be issued to the client, so that the client accesses the management end through the jump link, so that the management end sends the page content of the management page of the rights to be issued to the client, so that the client displays the management page of the rights to be issued;
[0039] or,
[0040] After determining the rights to be issued, a pre-stored jump link corresponding to the rights category of the rights to be issued is sent to the client, so that the client accesses the introduction page of the rights to be issued through the jump link.
[0041] Optionally, the activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier are stored in the following manner:
[0042] Obtaining target activity content of the target activity entered by the activity creator in the configuration page of the server;
[0043] In response to a benefit selection operation triggered by the activity creator in the configuration page, determining a benefit category of the benefit corresponding to the target activity from various preset benefit categories as a target benefit category;
[0044] For each target benefit category, obtaining the benefit content of the target benefit belonging to the target benefit category entered by the activity creator in the configuration page as the target benefit content;
[0045] The target activity content, the target activity identifier of the target activity and the target benefit identifier of the target benefit are recorded in the same row of the preset activity configuration table, and the target benefit identifier and the target benefit content are recorded in the same row of the preset benefit configuration table.
[0046] In a second aspect, an embodiment of the present invention provides an adaptation management device for rights issuance, which is applied to a server, and the device includes:
[0047] A first acquisition module is used to, when receiving a page display request sent by a client and carrying a target activity identifier of a target activity, acquire a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier;
[0048] An adding module, used for adding the target activity identifier and the target equity identifier to the initial business code to obtain the target business code of the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code;
[0049] A second acquisition module is used to run the target business code to acquire the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client;
[0050] The issuing module is used to obtain the content used to determine the rights and interests from the pre-stored rights and interests content indicated by the target rights and interests identifier when receiving the rights and interests determination request sent by the client, and to issue the rights and interests based on the obtained content.
[0051] An embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0052] Memory, used to store computer programs;
[0053] The processor is used to implement the aforementioned adaptation management method for equity issuance when executing the program stored in the memory.
[0054] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the aforementioned adaptation management method for equity issuance is implemented.
[0055] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the aforementioned adaptation management method for equity issuance when executed by a processor.
[0056] Beneficial effects of the embodiments of the present invention:
[0057] An adaptation management method for rights issuance provided by an embodiment of the present invention is applied to a server. When a page display request carrying a target activity identifier of a target activity is received from a client, the server obtains a rights identifier indicated by a pre-stored target activity identifier as a target rights identifier; the target activity identifier and the target rights identifier are added to an initial business code to obtain a target business code for the target activity; the target business code is run to obtain the activity content indicated by the pre-stored target activity identifier and the page content that needs to be displayed in the page from the rights content indicated by the target rights identifier, and sends them to the client; when a request to determine rights is received from the client, the server obtains the content used to determine rights from the rights content indicated by the pre-stored target rights identifier, and issues rights based on the obtained content. Among them, the initial business code is used to implement an activity and the issuance of rights and interests corresponding to the activity. The reference right category corresponding to the initial business code indicates: the category of rights and interests corresponding to the activity to be implemented by the initial business code. The number of rights and interests of each reference right category corresponding to the initial business code indicates: the number of rights and interests belonging to the reference right category corresponding to the activity to be implemented by the initial business code. The reference right category corresponding to the initial business code is the same as the target right category of the target right represented by the target right identifier, and the number of rights and interests of each reference right category corresponding to the initial business code is the same as the number of rights and interests of the target right category corresponding to the reference right category.
[0058] In the embodiment of the present invention, the category of the rights and interests corresponding to the activities to be implemented in the initial business code is the same as the category of the rights and interests corresponding to the target activity, the number of rights and interests corresponding to the activities to be implemented in the initial business code is the same as the number of rights and interests corresponding to the target activity, and the rights and interests belong to the same category of rights and interests; thus, the business logic of issuing rights and interests in the initial business code is the same as the business logic of issuing rights and interests corresponding to the target activity. Therefore, it is only necessary to add the target activity identifier of the target activity and the target rights and interests identifier of the rights and interests corresponding to the target activity as code parameters to the initial business code to obtain the target business code. During the operation of the target business code, the activity content indicated by the target activity identifier and the activity content indicated by the target rights and interests identifier can be obtained. For example, if the equity category corresponding to the newly created activity is the same as the equity category corresponding to the existing activity, but the equity winning rate in the newly created activity is different from that of the existing activity, there is no need for developers to write the business code for the newly created activity according to the equity winning rate of the newly created activity. They only need to add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code. When the target business code is running, it can obtain the target activity identifier and the activity content and equity content indicated by the target equity identifier, which can avoid developers rewriting the business code according to the activity content of the target activity and the equity content of the corresponding equity, thereby improving the reusability of the business code of the activity and improving the efficiency of the online operation of the activity.
[0059] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0061] Figure 1 A flowchart of a first method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0062] Figure 2 A flow chart of a second method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0063] Figure 3 A flowchart of a third method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0064] Figure 4 A flowchart of a fourth method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0065] Figure 5 A flowchart of a fifth method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0066] Figure 6 A flowchart of a sixth method for managing the adaptation of rights issuance provided by an embodiment of the present invention;
[0067] Figure 7 A flow chart of a method for storing the activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier provided in an embodiment of the present invention;
[0068] Figure 8 A schematic diagram of a flow chart of a method for storing configuration information of each preset equity category provided in an embodiment of the present invention;
[0069] Fig. 9 A schematic diagram of the principle of an adaptation management method for rights issuance provided by an embodiment of the present invention;
[0070] Fig.10 A schematic diagram of the structure of an adaptation management device for rights issuance provided by an embodiment of the present invention;
[0071] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.
[0073] In order to increase the activity of old users and attract more new users, companies usually set up a variety of benefits for online activities. For example, securities companies can combine various benefits such as discounts, benefits or rewards with marketing or product marketing activities, and implement activities and corresponding benefits through digital channels such as Internet platforms to attract investors' attention, improve customer stickiness, and promote business growth.
[0074] In the prior art, for each activity, business personnel determine the rights and interests to be issued, the rights and interests categories, and the rules for issuing rights and interests (for example, when the inventory is not 0, the rights and interests are issued) according to actual needs. Developers write business codes based on the activity content of the activity and the rights and interests content of the rights and interests corresponding to the activity. That is, business codes are written according to the business scenarios determined by business personnel, and the entire process from user winning to prize distribution is implemented through business codes. In order to realize the issuance of rights and interests, the business code also needs to be provided with code that interfaces with the management end that manages rights and interests. Specifically, the business code needs to specify the specific access interface calling method, and the access interface needs to be tested (that is, docking and joint debugging) to ensure the smoothness and correctness of the access link to the access management end.
[0075] However, if the code parameters in the business code of the newly created activity are different from those in the business code of the existing activity, the developer needs to write each code statement containing the code parameters according to the code parameters of the newly created activity to obtain the business code of the created activity. In other words, the parameters in the code for implementing the distribution of rights and interests and the code for implementing the operation of the activity in the prior art depend on the code of the business logic, the reusability of the business code is not high, the efficiency of developers in creating activities is low, and the efficiency of the online operation of activities is low.
[0076] In addition, in order to achieve docking with the management side, it is necessary to develop code for completing the rights issuance according to the interaction method with each management side. There is too much code in the business code, the processing logic is complex, and the code scalability is low. It takes a lot of time and human resources to write business codes, and the development efficiency is low.
[0077] It can be seen that how to improve the reusability of the business code of the activity and improve the efficiency of the online operation of the activity is an urgent problem to be solved.
[0078] In order to improve the reusability of the business code of the activity and enhance the efficiency of the online operation of the activity, the embodiment of the present invention provides an adaptation management method, device, equipment, medium and product for the issuance of rights and interests.
[0079] The adaptation management method for equity issuance provided by the embodiment of the present invention can be applied to the server. The server can display the front-end page so that the activity creator can perform configuration operations in the front-end page; the server can also interact with the client to provide services for the account logged in to the client.
[0080] Among them, an adaptation management method for equity issuance provided by an embodiment of the present invention may include the following steps:
[0081] When receiving a page display request sent by a client and carrying a target activity identifier of a target activity, obtaining a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier;
[0082] Add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code for the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code;
[0083] Run the target business code to obtain the activity content indicated by the pre-stored target activity identifier and the page content that needs to be displayed on the page from the equity content indicated by the target equity identifier, and send them to the client;
[0084] When a request for determining rights is received from a client, the content for determining rights is obtained from the rights content indicated by the pre-stored target rights identifier, and rights are issued based on the obtained content.
[0085] In the embodiment of the present invention, the category of the rights and interests corresponding to the activities to be implemented in the initial business code is the same as the category of the rights and interests corresponding to the target activity, the number of rights and interests corresponding to the activities to be implemented in the initial business code is the same as the number of rights and interests corresponding to the target activity, and the rights and interests belong to the same category of rights and interests; thus, the business logic of issuing rights and interests in the initial business code is the same as the business logic of issuing rights and interests corresponding to the target activity. Therefore, it is only necessary to add the target activity identifier of the target activity and the target rights and interests identifier of the rights and interests corresponding to the target activity as code parameters to the initial business code to obtain the target business code. During the operation of the target business code, the activity content indicated by the target activity identifier and the activity content indicated by the target rights and interests identifier can be obtained. For example, if the equity category corresponding to the newly created activity is the same as the equity category corresponding to the existing activity, but the equity winning rate in the newly created activity is different from that of the existing activity, there is no need for developers to write the business code for the newly created activity according to the equity winning rate of the newly created activity. They only need to add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code. When the target business code is running, it can obtain the target activity identifier and the activity content and equity content indicated by the target equity identifier, which can avoid developers rewriting the business code according to the activity content of the target activity and the equity content of the corresponding equity, thereby improving the reusability of the business code of the activity and improving the efficiency of the online operation of the activity.
[0086] The following describes an adaptation management method for equity issuance provided by an embodiment of the present invention in conjunction with the accompanying drawings. Figure 1 , Figure 1 A flowchart of an adaptation management method for rights issuance provided by an embodiment of the present invention, the method may include steps S101-S104.
[0087] S101, when a page display request carrying a target activity identifier of a target activity is received from a client, a benefit identifier indicated by the pre-stored target activity identifier is obtained as a target benefit identifier.
[0088] It is understandable that the client can provide the user with an activity link for each activity, and when the user triggers the activity link of the activity, for example, when the user clicks the activity link, the client can send a page display request to the server. Specifically, the activity link has a target activity identifier of the target activity, and when the user clicks the activity link of the target activity, the client can generate a page display request carrying the target activity identifier of the target activity and send it to the server.
[0089] Exemplarily, the client can display activity promotion pictures for each activity on the client's page. Each activity promotion picture is accompanied by an activity link for the activity. When a user clicks on an activity promotion picture for an activity on the client's page, the activity link for the activity can be triggered. The form of the activity link in the client is merely provided as an example without specific limitation.
[0090] The activity content of the target activity and the rights and interests content corresponding to the target activity may be pre-stored, and when storing the activity content and the rights and interests content, the target activity identifier of the target activity may be used as an indication of the storage location of the activity content and the rights and interests identifier of the rights and interests corresponding to the target activity, and the rights and interests identifier may be used as an indication of the storage location of the rights and interests content. Exemplarily, the target activity identifier of the target activity, the activity content of the target activity, and the rights and interests identifier of the rights and interests corresponding to the target activity may be stored in the same row of the data table, and by searching for the target activity identifier, the row of the activity content of the target activity and the rights and interests identifier of the rights and interests corresponding to the target activity in the data table may be determined; the rights and interests identifier of the rights and interests corresponding to the target activity and the rights and interests content of the rights and interests corresponding to the target activity may be stored in the same row of the data table, and by searching for the rights and interests identifier, the row of the rights and interests content of the rights and interests corresponding to the target activity in the data table may be determined. Optionally, in another implementation, the activity identifier of the target activity is not stored in the data table, and the rights identifier of the right corresponding to the target activity may be stored together with the row number of the activity content of the target activity in the data table, and the target activity identifier of the target activity; the row number of the rights and interests content of the right corresponding to the target activity in the data table is stored together with the row number of the activity content of the target activity in the data table, and the target activity identifier of the target activity; the row number of the rights and interests content of the right corresponding to the target activity in the data table is stored together with the rights and interests identifier; the row number of the rights and interests identifier is determined by searching the rights and interests identifier, and the row number is obtained by searching the rights and interests identifier, and the rights and interests content of the right corresponding to the target activity is obtained at the position in the data table indicated by the determined row number.
[0091] It is understandable that after receiving the page display request, the server can determine the position in the data table indicated by the target activity identifier in the page display request, obtain the equity identifier from the position, and use the obtained equity identifier as the target equity identifier.
[0092] S102, adding the target activity identifier and the target equity identifier to the initial business code to obtain the target business code of the target activity.
[0093] Among them, the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code.
[0094] It is understandable that developers can pre-write the initial business code according to the business logic of an activity and the business logic of the issuance of rights and interests corresponding to the activity. The rights and interests category to which the rights and interests corresponding to the activity belong is the reference rights and interests category. The reference rights and interests category is the same as the target rights and interests category to which the rights and interests corresponding to the target activity belong, and the number of rights and interests in each reference rights and interests category is the same as the number of rights and interests in the target rights and interests category. In other words, the number of rights and interests in the pre-written initial business code is the same as the number of rights and interests corresponding to the target activity, and the category of rights and interests in the initial business code is the same as the category of rights and interests corresponding to the target activity. Based on the same rights and interests category and the same number of rights and interests, the business logic of the activity implemented by the initial business code is the same as that of the target activity. Thus, the initial business code can be used as a template to obtain the target business code corresponding to the target activity.
[0095] For example, the target rights and interests category of the rights and interests corresponding to the target activity is points, and there are three rights and interests belonging to the points category; there are also three rights and interests corresponding to the activities implemented by the initial business code, and these three rights and interests all belong to the points category, that is, the preset rights and interests category of the rights and interests corresponding to the activities implemented by the initial business code is also points.
[0096] Optionally, the developer can pre-write multiple different initial business codes, and the equity category and equity quantity of each initial business code are different from the equity category and equity quantity of other initial business codes. The initial business code with the same equity quantity and equity category as the target activity corresponding to the target activity can be selected as the initial business code for the target activity identifier and target equity identifier to be added.
[0097] It should be noted that the initial business code may include codes for implementing operational activities and equity issuance. The codes for implementing operational activities and equity issuance do not include the parameters required for code operation. The target activity identifier and target equity identifier may be added to the initial business code as code parameters. There is an acquisition function in the initial business code, through which data may be obtained from the location in the data table indicated by the target activity identifier and the target equity identifier.
[0098] Optionally, in an implementation, the activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier are stored by following steps A1-A4:
[0099] A1, obtaining the target activity content of the target activity entered by the activity creator in the configuration page of the server.
[0100] It is understandable that the activity content and rights content required for the activity can be configured on the server side, and the activity content and rights content can be stored in the local database of the server side. When the server side runs the target business code, the data can be directly obtained from the local database, saving the traffic and time required for data interaction and improving the operating efficiency of the target business code. Alternatively, the configured activity content and rights content can be stored in other devices to save local storage resources on the server side; when the server side runs the target business code, data can be obtained from the device storing the activity content and rights content of the target activity. In this regard, the embodiments of the present invention are only used as examples and are not specifically limited.
[0101] The configuration page on the server side displays the components required for activity configuration, such as selection buttons and input boxes. The activity creator can enter the target activity content of the target activity on the configuration page, such as entering the activity name, activity rule copy, activity form, etc. in the input box on the configuration page, and select the activity validity period in the date selection button on the configuration page. The server side can obtain the input target activity content.
[0102] A2, in response to the benefit selection operation triggered by the activity creator in the configuration page, determining the benefit category of the benefit corresponding to the target activity from various preset benefit categories as the target benefit category.
[0103] The event creator can trigger a benefit selection operation in the configuration page. Exemplarily, there is a drop-down box for benefit category selection in the configuration page, and there are multiple preset benefit categories in the drop-down box. The benefit selection operation can be to select a benefit category in the drop-down box. The server can respond to the benefit selection operation triggered by the event creator, and determine the benefit category of the benefit corresponding to the target activity in each preset benefit category as the target benefit category. Among them, the preset benefit category is the benefit category of the benefit that the company can provide. For example, the preset benefit category can be points, coupons, and reward beans.
[0104] A3, for each target benefit category, obtain the benefit content of the target benefit belonging to the target benefit category entered by the activity creator in the configuration page as the target benefit content.
[0105] The activity creator can input the equity content of the equity of each target equity category on the configuration page. Exemplarily, after the activity creator selects a target equity category, the configuration page will pop up a configuration window for the equity content of the equity of the target equity category. There is an input box in the configuration window. The activity creator can enter the equity content of the equity belonging to the target equity category in the input box of the configuration window. For example, in the input box of the configuration window, enter the equity identifier of the equity, the inventory of the equity, and the winning rate of the equity. You can also upload the icon image of the equity in the input box. Optionally, there is also a new button in the configuration window of each target equity category. After the activity creator clicks the new button, a new input box can appear in the configuration window. In the new input box, the activity creator can enter the equity content of a new equity belonging to the target equity category to configure multiple equity of the target equity category. The server can respond to the activity creator inputting the equity content of the target equity category as the target equity content.
[0106] A4, record the target activity content, the target activity identifier of the target activity, and the target benefit identifier of the target benefit in the same row of the preset activity configuration table, and record the target benefit identifier and the target benefit content in the same row of the preset benefit configuration table.
[0107] After obtaining the target activity content and the target equity content, the server can store the target activity content and the target equity content in different data tables to reduce the coupling degree between the activity content and the equity content.
[0108] The server can store the target activity content and the target rights content in association. Specifically, the target activity content, the target activity identifier of the target activity, and the target rights identifier of the target rights can be recorded in the same row of the preset activity configuration table, and the target rights identifier and the target rights content can be recorded in the same row of the preset rights configuration table. The server stores the target activity content and the target rights content in different data tables, avoiding storing the rights content and activity content of the target activity in the same row for each target activity, and ensuring that the rights content of each right can be reused in different activities.
[0109] Generally speaking, if the activity content or rights content in an existing activity is changed, there are many parts in the business code that need to use the activity content or rights content. Developers do not replace the activity content or rights content in one or two places in the business code of the existing activity, but need to rewrite the business code according to the changed activity content or rights content, which is a heavy workload for developers. In the business code of the existing activity created by the solution provided by the embodiment of the present invention, there are no specific code parameters for the rights content or activity content. It is only necessary to use the above steps A1-A4 to store the modified rights content and activity content, and change the activity identifier and rights identifier in the business code of the existing activity to the modified rights and rights identifier and activity identifier of the activity. The business code of the existing activity can be reused, avoiding the developer from rewriting the business code according to the changed activity content or rights content, and improving the efficiency of the online operation of the activity.
[0110] S103, running the target business code to obtain the activity content indicated by the pre-stored target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client.
[0111] When the target business code is running, the target business code contains a target activity identifier and a target equity identifier. Through the access function, the activity content indicated by the target activity identifier and the equity content indicated by the target equity identifier can be obtained. Exemplarily, the target activity identifier can be used as the attribute of the activity object in the target business code, and the activity content indicated by the target activity identifier can be obtained through the acquisition function of the activity object; the target equity identifier can be used as the attribute of the equity object in the target business code, and the equity content indicated by the target equity identifier can be obtained through the acquisition function of the equity object.
[0112] It is understandable that in order to respond to the page display request, the activity content and equity content that need to be displayed on the page can be obtained during the execution of the target business code. Specifically, the activity content required for page display can be selected from the activity content indicated by the target activity identifier, and the equity content required for page display can be selected from the equity content indicated by the target equity identifier. The acquired equity content and activity content are issued to the client so that the client displays the activity page of the target activity.
[0113] S104, when receiving a request for determining rights sent by the client, obtaining content for determining rights from the rights content indicated by the pre-stored target rights identifier, and issuing rights based on the obtained content.
[0114] It can be understood that the client can receive the page content sent by the server and display the activity page of the target activity based on the page content. If the user triggers the rights issuance operation of the target activity on the client, for example, the rights issuance operation can be when the user watches the video on the activity page or clicks the lottery button on the activity page, the client will generate a request to determine the rights and send it to the server.
[0115] When the server receives a request to determine the rights, it can obtain the content used to determine the rights in the rights content indicated by the target rights identifier, and issue the rights based on the obtained content. For example, when there is only one right corresponding to the target activity, the server can obtain the stock of the right corresponding to the target activity. If the stock is not 0, it is determined that the right is issued to the user.
[0116] In the embodiment of the present invention, the category of the rights and interests corresponding to the activities to be implemented in the initial business code is the same as the category of the rights and interests corresponding to the target activity, the number of rights and interests corresponding to the activities to be implemented in the initial business code is the same as the number of rights and interests corresponding to the target activity, and the rights and interests belong to the same category of rights and interests; thus, the business logic of issuing rights and interests in the initial business code is the same as the business logic of issuing rights and interests corresponding to the target activity. Therefore, it is only necessary to add the target activity identifier of the target activity and the target rights and interests identifier of the rights and interests corresponding to the target activity as code parameters to the initial business code to obtain the target business code. During the operation of the target business code, the activity content indicated by the target activity identifier and the activity content indicated by the target rights and interests identifier can be obtained. For example, if the equity category corresponding to the newly created activity is the same as the equity category corresponding to the existing activity, but the equity winning rate in the newly created activity is different from that of the existing activity, there is no need for developers to write the business code for the newly created activity according to the equity winning rate of the newly created activity. They only need to add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code. When the target business code is running, it can obtain the target activity identifier and the activity content and equity content indicated by the target equity identifier, which can avoid developers rewriting the business code according to the activity content of the target activity and the equity content of the corresponding equity, thereby improving the reusability of the business code of the activity and improving the efficiency of the online operation of the activity.
[0117] Optionally, in one embodiment, Figure 1 Based on the adaptive management method for equity issuance shown in FIG, the target activity identifier, the activity content indicated by the target activity identifier, and the target equity identifier are stored in the same row of the preset activity configuration table; the target equity identifier and the indicated equity content are stored in the same row of the preset equity configuration table; Figure 2As shown, step S101 includes steps S1011-S1012, step S103 includes steps S1031-1035, and step S104 includes steps S1041-S1042.
[0118] S1011, when a page display request carrying a target activity identifier of a target activity is received from a client, a row containing the target activity identifier is determined from a preset activity configuration table.
[0119] S1012, obtaining the equity identifier recorded in the determined row as the target equity identifier.
[0120] It can be understood that when the server receives a page display request carrying a target activity identifier, it can determine the row where the target activity identifier is located in the preset activity configuration table; the row where the target activity identifier is located also stores the activity content and the rights and interests identifier, and the rights and interests identifier recorded in the row where the target activity identifier is located can be obtained as the target rights and interests identifier.
[0121] S1031, running the target business code to determine a row containing a target activity identifier from a preset activity configuration table;
[0122] S1032, selecting the first sub-page content to be displayed on the page from the activity content recorded in the determined row;
[0123] S1033, determining a row containing a target equity identifier from a preset equity configuration table;
[0124] S1034, selecting the second sub-page content to be displayed on the page from the equity content recorded in the determined row;
[0125] S1035: Combine the first sub-page content and the second sub-page content to obtain page content that needs to be displayed on the page.
[0126] It is understandable that, in the process of running the target business code, the first sub-page content to be displayed on the page can be obtained from the activity content recorded in the row where the target activity identifier is located in the preset activity configuration table; the second sub-page content to be displayed on the page can be obtained from the equity content recorded in the row where the target equity identifier is located in the preset equity configuration table. The first sub-page content and the second sub-page content are used as the page content to be displayed on the page.
[0127] Optionally, the activity content indicated by the target activity identifier includes: the activity name, activity copy, activity validity period, activity form and activity picture of the target activity; the first sub-page content includes at least one of the following: the activity name, activity copy, activity validity period and activity picture of the target activity;
[0128] The rights and interests content indicated by the target rights and interests logo includes: the rights and interests logo of the target rights and interests, the inventory of the target rights and interests, the winning rate of the target rights and interests and the icon image of the target rights and interests; the second sub-page content includes the icon image of the target rights and interests.
[0129] It is understandable that during the display of the activity page of the target activity, the activity name, activity copy, activity validity period and activity picture of the target activity, as well as the icon image of the target rights and interests can be displayed.
[0130] Activity content and rights content include multiple items. When obtaining part of the activity content or part of the rights content, it can be obtained through the instance of the object. Specifically, for the instance of the activity content of the activity object, the attribute of the instance includes the target activity identifier and the identifier of the part of the activity content to be found. The row where the activity content is located in the preset activity configuration table can be determined by the target activity identifier, and then the part of the activity content to be found can be found in the determined row according to the identifier of the part of the activity content as the activity content that needs to be displayed on the page; for example, the activity name can be obtained in the row containing the target activity identifier in the preset activity configuration table through the attribute of the activity name of the activity object instance. For the instance of the rights content of the rights object, the attribute of the instance includes the target rights identifier and the identifier of the part of the rights content to be found. The row where the rights content is located in the preset rights configuration table can be determined by the target rights identifier, and then the part of the rights content to be found can be found in the determined row according to the identifier of the part of the rights content as the rights content that needs to be displayed on the page; for example, the rights icon image can be obtained in the row containing the target rights identifier in the preset rights configuration table through the attribute of the rights icon image of the rights object instance.
[0131] S1041, when receiving a request for determining rights and interests sent by a client, determining a row containing a target rights and interests identifier from a preset rights and interests configuration table.
[0132] S1042: Select content for determining the rights and interests from the rights and interests content recorded in the determined row.
[0133] It is understandable that, when receiving the request for determining the rights and interests sent by the client, the server can determine the row containing the target rights and interests identifier in the preset rights and interests configuration table, and then select the content used to determine the rights and interests from the rights and interests content recorded in the determined row. The content used to determine the rights and interests can be the stock of rights and interests and / or the winning rate of rights and interests, etc.
[0134] In the embodiment of the present invention, the target activity identifier, the activity content indicated by the target activity identifier, and the target equity identifier can be stored in the same row of the preset activity configuration table, and the target equity identifier and the indicated equity content can be stored in the same row of the preset equity configuration table. That is to say, in the embodiment of the present invention, the activity content and the equity content are stored in separate tables in association with each other, so as to avoid storing the activity content and the equity content of each activity in the same row of the same table, so that the equity content of each equity can be applied to different activities, thereby improving the reusability of the preset equity configuration table and reducing the coupling between the equity content and the activity content.
[0135] Furthermore, when there are changes to the rights and interests content or the activity content, that is, when there are changes to the activity rules or the rights and interests issuance strategy, the rights and interests content and the activity content can be changed directly, the data in the preset rights and interests configuration table and the preset activity configuration table can be changed, and the rights and interests identifier indicating the position in the preset rights and interests identifier in the preset activity configuration table can be added to the initial business code. There is no need to modify the code for running activities and issuing rights and interests in the initial business code, which can reduce code changes at the business logic level, avoid frequent modifications to business codes running in the actual business environment and after testing, reduce the uncertainty of business code operation, and improve the flexibility and configurability of the system for running activities.
[0136] Optionally, in one embodiment, the content used to determine the equity includes: the inventory and / or winning rate of the target equity; Figure 3 As shown, step S104 includes step S1043.
[0137] S1043, when receiving a request for determining benefits sent by the client, obtain the content for determining benefits from the benefits content indicated by the pre-stored target benefits identifier, and issue the target benefits to the account logged in by the client based on the inventory and / or winning rate of the target benefits.
[0138] It is understandable that the server can determine whether the account logged into the client can obtain the target benefit and the specific target benefit that the account can obtain based on the inventory and / or winning rate of the target benefit.
[0139] For example, if there is only one target benefit, if the inventory of the target benefit is not 0, it can be determined that the target benefit is a benefit to be issued; if the inventory of the target benefit is 0, it can be determined that the account logged in to the client has not won the prize.
[0140] In the case where there is only one target equity, the inventory of the target equity is not 0. If the random number generated by the server is within the numerical range of the winning rate of the target equity, it can be determined that the target equity is the equity to be issued; if the random number is not within the numerical range of the winning rate of the target equity, it can be determined that the account logged in to the client has not won the prize.
[0141] It is understandable that the numerical range of the random number and the numerical range of the winning rate of the target equity can be set. The ratio of the numerical range of the winning rate to the numerical range of the random number is the winning rate. When determining whether a prize can be won, a random number can be generated. If the random number is within the numerical range of the winning rate, it can be determined that the prize has been won, and the target equity is the equity to be issued; if the random number is not within the numerical range of the winning rate, it can be determined that the prize has not been won. For example, the winning rate is 10%, and the numerical range of the winning rate is 1-10. A random number between 1-100 is generated. If the generated random number is less than or equal to 10, it is a win.
[0142] In the case where there are multiple target rights, if the inventory of each target right is not 0, one target right is selected from the multiple target rights as the right to be issued; if the inventory of each target right is 0, it can be determined that the account logged in to the client has not won the prize.
[0143] In the case where there are multiple target rights, the inventory of each target right is not 0. If the random number is within the numerical range of the winning rate of a certain target right, it can be determined that the target right is the right to be issued; if the random number is not within the numerical range of the winning rate of any target right, it can be determined that the account logged in to the client has not won the prize.
[0144] It is understandable that the numerical range of the random number and the numerical range of the winning rate of each target equity can be set. The ratio of the numerical range of the winning rate of each target equity to the numerical range of the random number is the winning rate of each target equity. When determining whether a prize can be won, a random number can be generated. If the random number is within the numerical range of the winning rate of a certain target equity, it can be determined that the prize is won, and the target equity is the equity to be issued; if the random number is not within the numerical range of the winning rate of any target equity, it can be determined that the prize is not won. For example, the winning rate of target equity a is 5%, the winning rate of target equity a is in the range of 1-5, the winning rate of target equity b is 10%, and the winning rate of target equity a is in the range of 6-15. A random number between 1-100 is generated; if the generated random number is less than or equal to 5, it can be determined that the prize is won, and the target equity a is the equity to be issued; if the generated random number is between 6-15, it can be determined that the prize is won, and the target equity b is the equity to be issued; if the generated random number is greater than 15, it can be determined that the prize is not won.
[0145] In the embodiment of the present invention, since the rights and interests category corresponding to the initial business code is the same as the rights and interests category corresponding to the target activity, and the rights and interests number corresponding to the initial business code is the same as the rights and interests number corresponding to the target activity, the code for determining whether a prize has been won and the rights and interests won can be reused. In the process of obtaining the rights and interests content indicated by the target rights and interests identifier, and determining whether a prize has been won and the rights and interests won based on the obtained rights and interests content, the code for determining whether a prize has been won and the rights and interests won are all written into the initial business code. It is sufficient to obtain the rights and interests content through the target rights and interests identifier, and there is no need to process the code for determining whether a prize has been won and the rights and interests won. This can improve the efficiency of the business code for creating activities and improve the efficiency of online operation of activities.
[0146] Optionally, in one embodiment, Figure 3 Based on the adaptation management method of the equity issuance shown, the initial business code includes a calling code for calling the equity issuance interface, and the equity issuance interface defines an interactive function;
[0147] like Figure 4 As shown, step S1043 includes steps S10431-S10432.
[0148] S10431, based on the inventory and / or winning rate of the target equity, determine the equity that needs to be issued to the account logged in by the client as the equity to be issued.
[0149] S10432, calling the equity issuance interface to generate an equity issuance request including the equity identifier of the equity to be issued and the account identifier of the account through an interactive function, and sending it to the equity management end for managing the equity to be issued, so that the equity management end issues the equity to be issued to the account.
[0150] It is understandable that the rights to be issued can be determined by implementing the code for determining whether a prize is won and the rights to be won, as well as the inventory and / or winning rate of the target rights. During the operation of the target business code, the calling code for calling the rights issuance interface can be run, and through the interactive function defined in the rights issuance interface, a rights issuance request including the rights identifier of the rights to be issued and the account identifier of the account is generated, and the rights issuance request is sent to the rights management end.
[0151] Among them, developers can use the template mode to define the equity interaction standard class, encapsulate the general function in the equity interaction standard class, and realize that when issuing equity, various processing can be performed through the general function. The equity issuance interface can contain various general functions. General functions can implement specific functions. For example, general functions can be interaction functions for interacting with the management end; general functions can be generation functions for generating the identification of winning records; general functions can be functions for querying equity for querying equity on the management end; general functions can be reissue functions for reissuing equity when equity issuance fails. Different equity contents and equity issuance methods can be mapped to the code of the same structured framework.
[0152] The parameters in each general function are in a unified parameter format. For example, for general parameters (such as mobile phone numbers, financial accounts, etc.), the general parameters themselves are used as parameters in general functions. For custom parameters (such as equity identifiers), a data structure in the form of a collection class Map is used to save, with custom parameters as keys and unified identification parameters as values. This unifies the parameter format in general functions as a whole and is compatible with parameter differences between different equity interests.
[0153] Optionally, there is a rule engine unit on the server side, through which the specific rights issuance rules of the request can be automatically judged and decided based on the unified format parameters. Developers can pre-configure the unified format of each rights rule information in the configuration file, such as a unified parameter format and the required general functions, etc. By maintaining the configuration file, the changes to the business code can be reduced. In the process of issuing rights, the rights category of the rights to be issued is automatically hit according to the configuration file, the rights identifier of the rights to be issued, and the account identifier, and the reflection mechanism is used to construct an instance for issuing the rights to be issued. During the execution of the constructed instance, a rights issuance request for accessing the management end corresponding to the rights to be issued is generated, and the rights issuance request is sent to the management end.
[0154] In the embodiment of the present invention, general functions are abstracted, the form of parameters in the functions is unified, and the rights of different rights and interests categories are uniformly mapped into the code of the structured framework, which is compatible with the docking mode of interacting with the management end of rights and interests of multiple rights and interests categories, and realizes the docking configuration of different third-party rights and interests management systems, avoiding the writing of docking code for interacting with the management end when writing business code, saving the time consumption of docking code writing, so that developers can focus on the development of business logic. When expanding new rights and interests, it is possible to avoid docking with the management end that manages the rights and interests, and developers only need to focus on the actual interaction logic, which enhances the scalability of the activity operation system.
[0155] Optionally, in one embodiment, as Figure 5 As shown, in Figure 4Based on the adaptation management method of the equity issuance shown, a generation function is also defined in the equity issuance interface;
[0156] The adaptation management method for rights issuance also includes step S501.
[0157] S501, calling the rights issuance interface to generate a winning record identifier through a generation function, and storing the winning record identifier, the rights identifier of the rights to be issued, and the account identifier in association.
[0158] It is understandable that during the operation of the target business code, the winning record identifier can be generated by using the generation function by calling the operation of the code, and then the winning record identifier, the equity identifier of the equity to be issued, and the account identifier are associated and stored. Specifically, after issuing a benefit to an account, the winning record identifier of this winning, the equity identifier of the equity to be issued, and the account identifier can be stored in the same row in the winning record table. Optionally, data such as the equity identifier of the equity to be issued, the inventory of the equity after the equity to be issued, and the issuance time of the equity to be issued can also be recorded in the equity consumption table.
[0159] In the embodiment of the present invention, a record of a benefit issuance can be represented by a unique winning record identifier, a benefit identifier of the benefit to be issued, and an account identifier, thereby realizing a record of benefit issuance during the activity operation, so as to facilitate subsequent query of benefit issuance status.
[0160] Optionally, in another embodiment, Figure 6 As shown, in Figure 4 Based on the adaptation management method of rights issuance shown, steps S601-S602 are also included.
[0161] S601, after determining the rights to be issued, sending a pre-stored jump link corresponding to the rights category of the rights to be issued to the client, so that the client can access the management end through the jump link, so that the management end sends the page content of the management page of the rights to be issued to the client, so that the client can display the management page of the rights to be issued.
[0162] S602, after determining the rights to be issued, sending a pre-stored jump link corresponding to the rights category of the rights to be issued to the client, so that the client can access the introduction page of the rights to be issued through the jump link.
[0163] It is understandable that after determining the rights to be issued, the server can send a jump link to the client so that the user can understand the status of the rights issuance on the client.
[0164] The server may pre-store a rights template table, in which each preset rights category, rights source, and jump link are stored. The preset rights category may be points, reward beans, and reward coupons, etc., and the rights source may indicate that the rights are provided by the original company that holds the event or that the rights are provided by a third-party company. For example, the same row of the rights template table stores the points category, the original company, and the jump link of the management end that manages the points.
[0165] According to the equity category of the equity to be issued, you can determine whether the equity source is the original company or a third-party company, as well as the jump link in the equity template table. When the equity source is the original company, the management page of the equity to be issued can be displayed through the jump link; when the equity source is a third-party company, the introduction page of the equity to be issued can be displayed through the jump link.
[0166] When the rights to be issued are provided by the native company, execute step S601 to send a jump link that can interact with the management end to the client. The client accesses the management end through the jump link, so that the management end sends the page content of the management page of the rights to be issued to the client, so that the client displays the management page of the rights to be issued.
[0167] When the rights to be issued are provided by a third-party company, step S602 is executed to send a jump link that can display the rights introduction content to the client, and the client accesses the introduction page of the rights to be issued through the jump link.
[0168] Optionally, in one implementation, the rights and interests template table also stores the rights and interests status of each preset rights and interests category. Exemplarily, the rights and interests status can be set according to whether the preset rights and interests category continues to be issued. For example, if the points stop being issued, the rights and interests status corresponding to the points category in the rights and interests template table can be set to unavailable. When the rights and interests status is unavailable, if there is only one rights and interests in the target activity, no rights and interests issuance request will be issued to the management end, and no jump link will be sent to the client. Instead, a page link for displaying the content of unavailable rights and interests will be sent to the client, so that the client can display the unavailable rights and interests through the page link; when the rights and interests status is unavailable, if the target activity corresponds to multiple rights and interests, the rights and interests to be issued will be re-determined.
[0169] In the embodiment of the present invention, a jump link can be sent to the client so that the client can display the rights issuance status, thereby ensuring that users participating in the activity understand the rights issuance status and improving the user experience.
[0170] Optionally, in one embodiment, Figure 7 It is a flowchart of the storage method of the activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier.
[0171] like Figure 7As shown, in the process of configuring the basic information of the activity, the target activity content of the target activity entered by the activity creator in the configuration page of the server can be obtained. The target activity content may include: activity name, activity form, activity validity period, activity rule copy, etc.
[0172] In the process of configuring rights and interests information, in response to the rights and interests selection operation triggered by the activity creator in the configuration page, the rights and interests category corresponding to the target activity can be determined from the preset rights and interests categories as the target rights and interests category; for each target rights and interests category, the rights and interests content of the target rights and interests belonging to the target rights and interests category entered by the activity creator in the configuration page is obtained as the target rights and interests content.
[0173] In the process of saving relevant configurations, the target activity content, the target activity identifier of the target activity, and the target benefit identifier of the target benefit can be recorded in the same row of the preset activity configuration table, and the target benefit identifier and the target benefit content can be recorded in the same row of the preset benefit configuration table; that is, the activity content is stored in the activity configuration table, the benefit content is stored in the benefit configuration table, and the benefit content is associated with the activity content and stored.
[0174] In addition, an identifier representing a record of the configuration activity can be generated (i.e., an activity configuration record is generated), and the identifier of the configuration activity record, the target activity identifier of the target activity, and the activity status are stored in the activity configuration record table. That is, the relevant configuration is saved and an activity configuration record is generated. Among them, the activity status can be enabled or disabled. Developers can edit or view the data in the activity configuration record table. If the activity status is enabled, when receiving a page display request, they can first check the activity status in the activity configuration record table. If the activity status of the target activity is enabled, the target business code can be run for subsequent processing; if the activity status of the target activity is disabled, a page link showing the disabled activity is sent to the client, and the client can display the content of the disabled activity through the page link.
[0175] During the operation of the target business code, the operation of the activity and the issuance of benefits can be realized through the corresponding configurations issued in advance, such as the unified parameter format set in the configuration file, that is, the activity can be realized through the corresponding configuration.
[0176] Optionally, in one embodiment, Figure 8 It is a flowchart of the storage method of the configuration information of each preset equity category.
[0177] like Figure 8 As shown, configuration information of each preset equity category can be created, that is, equity information can be created. The configuration information of each preset equity category can include: the preset equity category, the equity source, the jump link and the equity status of the preset equity category.
[0178] In the process of saving the rights configuration information, the configuration information of each preset rights category can be stored in the rights template table. The rights template table also stores the rights status of each preset rights category, which can be enabled or disabled. Developers can edit or view the rights template table. When the rights status is unavailable, if there is only one rights in the target activity, no rights issuance request will be issued to the management end, and no jump link will be sent to the client. Instead, a page link for displaying the content of unavailable rights will be sent to the client, so that the client can display the unavailable rights through the page link; when the rights status is unavailable, if the target activity corresponds to multiple rights, the rights to be issued will be re-determined.
[0179] According to the preset equity categories in the equity template table, the preset equity categories selectable in the configuration page are updated. Exemplarily, each preset equity category in the drop-down list box for equity selection displayed in the configuration page is updated. That is, the equity selection list is updated synchronously.
[0180] Optionally, in one embodiment, Fig. 9 A flowchart of an adaptation management method for equity issuance is shown below. Fig. 9 As shown, after determining the rights to be issued, the rule engine unit can determine the rights category of the rights to be issued through the rights identifier of the rights to be issued; based on the interaction function of the pre-configured rights interaction standard class, generate a rights issuance request including the rights identifier of the rights to be issued and the account identifier of the account according to the parameter format defined in the configuration file, and send it to the rights management end for managing the rights to be issued to interact with the management end, that is, execute the corresponding rights interaction behavior.
[0181] Optionally, in one embodiment, as Fig.10 As shown, the embodiment of the present invention also provides an adaptation management device for equity issuance, which is applied to a server, and the device includes:
[0182] The first acquisition module 1010 is used to, when receiving a page display request sent by a client and carrying a target activity identifier of a target activity, acquire a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier;
[0183] An adding module 1020 is used to add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code of the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code;
[0184] The second acquisition module 1030 is used to run the target business code to obtain the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client;
[0185] The issuing module 1040 is used to obtain the content used to determine the rights from the pre-stored rights content indicated by the target rights identifier when receiving the rights determination request sent by the client, and issue the rights based on the obtained content.
[0186] Optionally, the target activity identifier, the activity content indicated by the target activity identifier, and the target benefit identifier are stored in the same row of a preset activity configuration table; the target benefit identifier and the indicated benefit content are stored in the same row of a preset benefit configuration table;
[0187] The first acquisition module 1010 includes:
[0188] A first determining unit, configured to determine a row containing the target activity identifier from the preset activity configuration table;
[0189] A first acquisition unit is used to acquire the equity identifier recorded in the determined row as a target equity identifier;
[0190] The second acquisition module 1030 includes:
[0191] A second determination unit, configured to run the target business code to determine a row containing the target activity identifier from the preset activity configuration table;
[0192] A first selection unit, used to select a first sub-page content to be displayed on the page from the activity content recorded in the determined row;
[0193] A second determining unit, configured to determine a row containing the target equity identifier from the preset equity configuration table;
[0194] A second selection unit, used to select second sub-page content to be displayed on the page from the equity content recorded in the determined row;
[0195] A combining unit, used for combining the first sub-page content and the second sub-page content to obtain page content to be displayed on the page;
[0196] The issuing module 1040 includes:
[0197] A third determining unit, configured to determine a row containing the target equity identifier from the preset equity configuration table when receiving the equity determination request sent by the client;
[0198] The third selection unit is used to select content for determining the rights and interests from the rights and interests content recorded in the determined row.
[0199] Optionally, the activity content indicated by the target activity identifier includes: the activity name, activity copy, activity validity period, activity form and activity picture of the target activity; the first sub-page content includes at least one of the following: the activity name, activity copy, activity validity period and activity picture of the target activity;
[0200] The rights and interests content indicated by the target rights and interests identifier includes: the rights and interests identifier of the target rights and interests, the inventory of the target rights and interests, the winning rate of the target rights and interests, and the icon image of the target rights and interests; the second sub-page content includes the icon image of the target rights and interests.
[0201] Optionally, the content used to determine the equity includes: the inventory and / or winning rate of the target equity;
[0202] The issuing module 1040 includes:
[0203] The issuing unit is used to issue the target equity to the account logged in by the client based on the inventory and / or winning rate of the target equity.
[0204] Optionally, the initial business code includes a calling code for calling a rights issuance interface, wherein an interactive function is defined in the rights issuance interface;
[0205] The issuing unit is specifically configured to determine the rights and interests to be issued to the account logged in by the client as the rights and interests to be issued based on the inventory and / or winning rate of the target rights and interests;
[0206] The rights issuance interface is called to generate a rights issuance request including the rights identifier of the rights to be issued and the account identifier of the account through the interactive function, and the request is sent to a rights management terminal for managing the rights to be issued, so that the rights management terminal issues the rights to be issued to the account.
[0207] Optionally, a generation function is also defined in the equity issuance interface;
[0208] The device also includes:
[0209] A recording module, used to call the rights issuance interface to generate a winning record identifier through the generation function, and store the winning record identifier, the rights identifier of the rights to be issued, and the account identifier in association;
[0210] Optionally, the device further comprises:
[0211] A jump module, configured to, after determining the rights to be issued, send a pre-stored jump link corresponding to the rights category of the rights to be issued to the client, so that the client accesses the management end through the jump link, so that the management end sends the page content of the management page of the rights to be issued to the client, so that the client displays the management page of the rights to be issued;
[0212] or,
[0213] After determining the rights to be issued, a pre-stored jump link corresponding to the rights category of the rights to be issued is sent to the client, so that the client accesses the introduction page of the rights to be issued through the jump link.
[0214] Optionally, the activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier are stored in the following manner:
[0215] Obtaining target activity content of the target activity entered by the activity creator in the configuration page of the server;
[0216] In response to a benefit selection operation triggered by the activity creator in the configuration page, determining a benefit category of the benefit corresponding to the target activity from various preset benefit categories as a target benefit category;
[0217] For each target benefit category, obtaining the benefit content of the target benefit belonging to the target benefit category entered by the activity creator in the configuration page as the target benefit content;
[0218] The target activity content, the target activity identifier of the target activity and the target benefit identifier of the target benefit are recorded in the same row of the preset activity configuration table, and the target benefit identifier and the target benefit content are recorded in the same row of the preset benefit configuration table.
[0219] In the embodiment of the present invention, the category of the rights and interests corresponding to the activities to be implemented in the initial business code is the same as the category of the rights and interests corresponding to the target activity, the number of rights and interests corresponding to the activities to be implemented in the initial business code is the same as the number of rights and interests corresponding to the target activity, and the rights and interests belong to the same category of rights and interests; thus, the business logic of issuing rights and interests in the initial business code is the same as the business logic of issuing rights and interests corresponding to the target activity. Therefore, it is only necessary to add the target activity identifier of the target activity and the target rights and interests identifier of the rights and interests corresponding to the target activity as code parameters to the initial business code to obtain the target business code. During the operation of the target business code, the activity content indicated by the target activity identifier and the activity content indicated by the target rights and interests identifier can be obtained. For example, if the equity category corresponding to the newly created activity is the same as the equity category corresponding to the existing activity, but the equity winning rate in the newly created activity is different from that of the existing activity, there is no need for developers to write the business code for the newly created activity according to the equity winning rate of the newly created activity. They only need to add the target activity identifier and the target equity identifier to the initial business code to obtain the target business code. When the target business code is running, it can obtain the target activity identifier and the activity content and equity content indicated by the target equity identifier, which can avoid developers rewriting the business code according to the activity content of the target activity and the equity content of the corresponding equity, thereby improving the reusability of the business code of the activity and improving the efficiency of the online operation of the activity.
[0220] The embodiment of the present invention further provides an electronic device, such as Fig.11 As shown, it includes a processor 1101 , a communication interface 1102 , a memory 1103 and a communication bus 1104 , wherein the processor 1101 , the communication interface 1102 , and the memory 1103 communicate with each other via the communication bus 1104 .
[0221] Memory 1103, used for storing computer programs;
[0222] The processor 1101 is used to implement the aforementioned adaptation management method for equity issuance when executing the program stored in the memory 1103.
[0223] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0224] The communication interface is used for communication between the above electronic device and other devices.
[0225] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0226] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0227] In another embodiment provided by the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned adaptation management methods for equity issuance are implemented.
[0228] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the adaptation management methods for equity issuance in the above embodiments.
[0229] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0230] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0231] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0232] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for managing the adaptation of rights issuance, characterized in that: Applied to the server, the method includes: When receiving a page display request sent by a client and carrying a target activity identifier of a target activity, obtaining a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier; The target activity identifier and the target equity identifier are added to the initial business code to obtain the target business code of the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code; Run the target business code to obtain the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client; When a request for determining rights and interests sent by the client is received, content for determining rights and interests is obtained from the pre-stored rights and interests content indicated by the target rights and interests identifier, and rights and interests are issued based on the obtained content.
2. The method according to claim 1, characterized in that The target activity identifier, the activity content indicated by the target activity identifier, and the target benefit identifier are stored in the same row of the preset activity configuration table; the target benefit identifier and the indicated benefit content are stored in the same row of the preset benefit configuration table; The obtaining of the pre-stored benefit identifier indicated by the target activity identifier as the target benefit identifier includes: Determine a row containing the target activity identifier from the preset activity configuration table; Obtain the equity identifier recorded in the determined row as the target equity identifier; The running of the target business code to obtain the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed on the page from the rights and interests content indicated by the target rights and interests identifier includes: Running the target business code to determine a row containing the target activity identifier from the preset activity configuration table; Selecting the first sub-page content to be displayed on the page from the activity content recorded in the determined row; Determine a row containing the target equity identifier from the preset equity configuration table; Selecting the second sub-page content to be displayed on the page from the equity content recorded in the determined row; Combine the first sub-page content and the second sub-page content to obtain page content that needs to be displayed on the page; When receiving the rights determination request sent by the client, obtaining the content used for determining the rights from the pre-stored rights content indicated by the target rights identifier, including: When receiving the request for determining the rights and interests sent by the client, determining the row containing the target rights and interests identifier from the preset rights and interests configuration table; Selecting the content used to determine the equity from the equity content recorded in the determined row; The activity content indicated by the target activity identifier includes: the activity name, activity copy, activity validity period, activity form and activity picture of the target activity; the first sub-page content includes at least one of the following: the activity name, activity copy, activity validity period and activity picture of the target activity; The rights and interests content indicated by the target rights and interests identifier includes: the rights and interests identifier of the target rights and interests, the inventory of the target rights and interests, the winning rate of the target rights and interests, and the icon image of the target rights and interests; the second sub-page content includes the icon image of the target rights and interests.
3. The method according to claim 2, characterized in that The content used to determine the equity includes: the inventory and / or winning rate of the target equity; The issuing of rights and interests based on the acquired content includes: Based on the inventory and / or winning rate of the target equity, the target equity is issued to the account logged in by the client.
4. The method according to claim 3, characterized in that The initial business code includes a calling code for calling a rights issuance interface, wherein the rights issuance interface defines an interaction function and a generation function; The issuing of the target equity to the account logged in by the client based on the inventory and / or winning rate of the target equity includes: Based on the inventory and / or winning rate of the target equity, determine the equity to be issued to the account logged in by the client as the equity to be issued; Calling the equity issuance interface to generate an equity issuance request including the equity identifier of the equity to be issued and the account identifier of the account through the interactive function, and sending the request to the equity management terminal for managing the equity to be issued, so that the equity management terminal issues the equity to be issued to the account; The rights issuance interface is called to generate a winning record identifier through the generation function, and the winning record identifier, the rights identifier of the rights to be issued, and the account identifier are associated and stored.
5. The method according to claim 4, characterized in that The method further comprises: After determining the rights to be issued, sending a pre-stored jump link corresponding to the rights category of the rights to be issued to the client, so that the client accesses the management end through the jump link, so that the management end sends the page content of the management page of the rights to be issued to the client, so that the client displays the management page of the rights to be issued; or, After determining the rights to be issued, a pre-stored jump link corresponding to the rights category of the rights to be issued is sent to the client, so that the client accesses the introduction page of the rights to be issued through the jump link.
6. The method according to any one of claims 1 to 5, characterized in that: The activity content indicated by the target activity identifier and the rights and interests content indicated by the target rights and interests identifier are stored in the following manner: Obtaining target activity content of the target activity entered by the activity creator in the configuration page of the server; In response to a benefit selection operation triggered by the activity creator in the configuration page, determining a benefit category of the benefit corresponding to the target activity from various preset benefit categories as a target benefit category; For each target benefit category, obtaining the benefit content of the target benefit belonging to the target benefit category entered by the activity creator in the configuration page as the target benefit content; The target activity content, the target activity identifier of the target activity and the target benefit identifier of the target benefit are recorded in the same row of the preset activity configuration table, and the target benefit identifier and the target benefit content are recorded in the same row of the preset benefit configuration table.
7. An adaptation management device for rights issuance, characterized in that: Applied to the server, the device comprises: A first acquisition module is used to, when receiving a page display request sent by a client and carrying a target activity identifier of a target activity, acquire a pre-stored benefit identifier indicated by the target activity identifier as a target benefit identifier; An adding module, used for adding the target activity identifier and the target equity identifier to the initial business code to obtain the target business code of the target activity; wherein the reference equity category corresponding to the initial business code is the same as the target equity category of the target equity represented by the target equity identifier, and the equity quantity of each reference equity category corresponding to the initial business code is the same as the equity quantity of the target equity category corresponding to the reference equity category; the initial business code is used to implement an activity and the issuance of the equity corresponding to the activity; the reference equity category corresponding to the initial business code indicates: the category of the equity corresponding to the activity to be implemented by the initial business code; the equity quantity of each reference equity category corresponding to the initial business code indicates: the quantity of the equity belonging to the reference equity category corresponding to the activity to be implemented by the initial business code; A second acquisition module is used to run the target business code to acquire the pre-stored activity content indicated by the target activity identifier and the page content that needs to be displayed in the page from the rights and interests content indicated by the target rights and interests identifier, and send them to the client; The issuing module is used to obtain the content used to determine the rights and interests from the pre-stored rights and interests content indicated by the target rights and interests identifier when receiving the rights and interests determination request sent by the client, and to issue the rights and interests based on the obtained content.
8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when executed by a processor.