Redemption code issuing method, preferential right exchange method, device and equipment

By reporting generated codes on the client side and binding them to redemption codes, the problem of invalid redemption codes was solved, resulting in a higher redemption success rate and system security, and adapting to the management of multiple product groups.

CN120912264APending Publication Date: 2025-11-07GUANGZHOU KUGOU COMP TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511068459.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

In existing technologies, redemption codes are prone to becoming invalid when redeeming discount benefits, especially after a user has already purchased the relevant goods and is unable to redeem the discount benefits again.

Method used

When the client reports the generated code, a binding relationship is established between the generated code and the redemption code based on the user's purchase information in the client. The server issues redemption codes according to the binding relationship, ensuring that redemption codes are only issued to users who have not purchased goods.

Benefits of technology

This avoids the expiration of redemption codes, increases the success rate of redemption, enhances the security and flexibility of the system, and adapts to the expansion needs of complex business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120912264A_ABST
    Figure CN120912264A_ABST
Patent Text Reader

Abstract

The invention discloses an exchange code issuing method, a preferential right exchange method, a preferential right exchange device and preferential right exchange equipment, and belongs to the field of in-application purchase. The method comprises the steps that an exchange code corresponding to each goods code in a plurality of goods codes is acquired, the goods codes are associated with goods in a client side, and the exchange codes corresponding to the goods codes are used for exchanging preferential rights and interests of the goods corresponding to the goods codes; under the condition that the client reports the generated code, a binding relationship between the generated code and the exchange code is established according to purchase information of a user account of the client in the client, the generated code is a code generated by the client or the server, and the purchase information is used for indicating purchased goods of the user account in the client; and under the condition that an exchange request sent by the client is received, issuing an exchange code to the client according to the generated code carried by the exchange request and the binding relationship. According to the invention, the condition of invalid exchange of the exchange code can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of in-app purchase, and in particular to a method for issuing a redemption code, a method and device for redeeming a preferential benefit. BACKGROUND

[0002] The client can provide a function of purchasing in-app goods, for example, a function of purchasing a membership in the client. In the process of purchasing the in-app goods in the client, a preferential benefit corresponding to the in-app goods can be used to realize preferential purchase of the in-app goods.

[0003] In the related art, a redemption code can be used to redeem a preferential benefit of in-app goods in a client. The redemption code is generated by an operating system operator of a terminal where the client is located, according to a goods code corresponding to the in-app goods in the client. A server sends the redemption code to the client by obtaining the redemption code corresponding to the goods code, so that a user account of the client can redeem the preferential benefit by using the redemption code corresponding to the goods code of the in-app goods when purchasing the in-app goods in the client.

[0004] In the above way, the redemption code can be issued, and in some cases, the redemption code can be invalid. For example, if a user account has purchased a certain in-app good in a client, the user account cannot redeem a preferential benefit by using a redemption code of the in-app good. SUMMARY

[0005] The present application provides a method for issuing a redemption code, a method and device for redeeming a preferential benefit, which can avoid the situation that the redemption code is invalid. The technical solution is as follows:

[0006] According to an aspect of the present application, a method for issuing a redemption code is provided, the method is applied to a server, and the method comprises:

[0007] Obtaining a redemption code corresponding to each goods code in a plurality of goods codes, the goods code is associated with in-app goods in a client, and the redemption code corresponding to the goods code is used to redeem a preferential benefit of the in-app goods corresponding to the goods code;

[0008] In a case where the client reports a generated code, establishing a binding relationship between the generated code and the redemption code according to purchase information of a user account of the client in the client, the generated code is a code generated by the client or the server, and the purchase information is used to indicate in-app goods that have been purchased by the user account in the client;

[0009] In a case where a redemption request sent by the client is received, issuing the redemption code to the client according to the generated code carried in the redemption request and the binding relationship.

[0010] According to another aspect of the present application, a method for exchanging a benefit is provided, the method is applied to a client, and the method comprises:

[0011] sending an exchange request to a server, the exchange request carrying a generated code, the generated code being a code generated by the client or the server;

[0012] receiving an exchange code sent by the server, the exchange code being determined according to the generated code and a binding relationship between the generated code and the exchange code, the binding relationship being established according to purchase information of a user account of the client in the client under the condition that the generated code is reported by the client, the purchase information being used to indicate purchased goods of the user account in the client;

[0013] exchanging a benefit according to the exchange code, the benefit being used to purchase goods in the client, the goods corresponding to the exchange code being associated with a goods code, and the exchange code corresponding to the goods code.

[0014] According to another aspect of the present application, a device for issuing an exchange code is provided, and the device comprises:

[0015] an obtaining module, configured to obtain an exchange code corresponding to each goods code in a plurality of goods codes, the goods code being associated with goods in a client, and the exchange code corresponding to the goods code being used to exchange a benefit of the goods corresponding to the goods code;

[0016] an establishing module, configured to establish a binding relationship between a generated code and an exchange code according to purchase information of a user account of the client in the client under the condition that the generated code is reported by the client, the generated code being a code generated by the client or the device, and the purchase information being used to indicate purchased goods of the user account in the client;

[0017] a sending module, configured to issue the exchange code to the client according to the generated code carried in an exchange request and the binding relationship under the condition that the exchange request sent by the client is received.

[0018] In an optional design, the establishing module is configured to:

[0019] receive report information sent by the client, the report information carrying the generated code;

[0020] determine a usable goods code corresponding to the user account of the client in the plurality of goods codes according to the purchase information;

[0021] establish a binding relationship between the exchange code corresponding to the usable goods code and the generated code.

[0022] In an optional design, the establishing module is configured to:

[0023] determine, according to the purchase information, an un-purchased product of the user account of the client in the client;

[0024] determine, in the plurality of product codes, a product code corresponding to the un-purchased product;

[0025] determine the product code corresponding to the un-purchased product as the available product code.

[0026] In an optional design, the reporting information is sent in a case where the client is started through a start link, and the start link is used to obtain the generated code.

[0027] In an optional design, the generated code and the start link are generated by the device.

[0028] In an optional design, the generated code is generated by the device through a key encryption, the reporting information further carries batch information, the batch information is obtained through the start link, and the batch information has a corresponding relationship with the key; the device further includes:

[0029] an obtaining module configured to obtain the key according to the batch information carried by the reporting information;

[0030] a decryption module configured to decrypt the generated code carried by the reporting information according to the key, so as to verify the generated code carried by the reporting information.

[0031] In an optional design, the reporting information further carries the user account of the client; and the establishing module is configured to:

[0032] bind the user account of the client with the generated code.

[0033] In an optional design, the establishing module is configured to:

[0034] re-establish the binding relationship between the generated code and the exchange code in a case where the purchase information changes.

[0035] According to another aspect of the present application, there is provided an exchange device of a preferential right and benefit, the device comprising:

[0036] a sending module configured to send an exchange request to a server, the exchange request carrying a generated code, the generated code being a code generated by the device or the server;

[0037] receive the exchange code sent by the server, the exchange code being determined according to the generated code and a binding relationship between the generated code and the exchange code, the binding relationship being established according to purchase information of a user account in the device in a case that the device reports the generated code, the purchase information being used to indicate purchased goods of the user account in the device;

[0038] exchange the exchange code to exchange the preferential right and interest, the preferential right and interest being used to purchase goods in the device, the goods corresponding to the exchange code being associated with a goods code, the exchange code corresponding to the goods code.

[0039] According to another aspect of the present application, a computer device is provided, the computer device comprising a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the exchange code issuing method or the preferential right and interest exchanging method according to the above aspects.

[0040] According to another aspect of the present application, a computer readable storage medium is provided, the readable storage medium storing at least one program, the at least one program being loaded and executed by a processor to implement the exchange code issuing method or the preferential right and interest exchanging method according to the above aspects.

[0041] According to another aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the exchange code issuing method or the preferential right and interest exchanging method provided in various optional implementations of the above aspects.

[0042] The technical solutions provided by the present application have at least the following beneficial effects:

[0043] By reporting the generated code on the client side, the binding relationship between the generated code and the exchange code is established according to the purchase information of the user account in the client side, so that when the exchange request is initiated on the client side, the corresponding exchange code is issued according to the generated code carried by the exchange request. Since the above binding relationship is established according to the purchase information of the user account, the exchange code corresponding to the goods purchased by the user account can be avoided to be issued to the client side, so that the situation that the exchange code is invalid can be avoided. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort based on these drawings.

[0045] Figure 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;

[0046] Figure 2 is a schematic diagram of a process of redeeming a promotional benefit provided by an exemplary embodiment of the present application;

[0047] Figure 3 is a flowchart of a method of issuing a redemption code provided by an exemplary embodiment of the present application;

[0048] Figure 4 is a flowchart of a method of redeeming a promotional benefit provided by an exemplary embodiment of the present application;

[0049] Figure 5 is a flowchart of a method of redeeming a promotional benefit provided by an exemplary embodiment of the present application;

[0050] Figure 6 is a schematic diagram of a process of generating a launch link provided by an exemplary embodiment of the present application;

[0051] Figure 7 is a schematic diagram of a process of binding a generation code provided by an exemplary embodiment of the present application;

[0052] Figure 8 is a schematic diagram of a process of issuing a redemption code provided by an exemplary embodiment of the present application;

[0053] Figure 9 is a schematic diagram of a process of redeeming a promotional benefit provided by an exemplary embodiment of the present application;

[0054] Figure 10 is a schematic diagram of a process of obtaining a generation code provided by an exemplary embodiment of the present application;

[0055] Figure 11 is a schematic diagram of a process of redeeming a member provided by an exemplary embodiment of the present application;

[0056] Figure 12 is a structural schematic diagram of an apparatus for issuing a redemption code provided by an exemplary embodiment of the present application;

[0057] Figure 13 is a structural schematic diagram of an apparatus for issuing a redemption code provided by an exemplary embodiment of the present application;

[0058] Figure 14 is a structural schematic diagram of a redemption device of a benefit provided by an exemplary embodiment of the present application;

[0059] Figure 15 is a structural schematic diagram of a terminal provided by an exemplary embodiment of the present application;

[0060] Figure 16 is a structural schematic diagram of a computer device provided by an exemplary embodiment of the present application.

[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application, together with the description. DETAILED DESCRIPTION

[0062] In order to make the objects, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0063] First, the terms involved in the present application are introduced:

[0064] In-App Purchase (IAP): IAP is a transaction mechanism that allows users to purchase virtual goods (products) or value-added services directly within an application, which can be supported by the payment system of the application store of the terminal operating system. IAP allows the developers of an application to sell digital content or services (such as game props, membership subscriptions, function unlocking, etc.) in the application, without the need for users to jump to an external platform to complete payment. The illustrative payment process is as follows: the user selects the goods → the application calls the payment interface of the application store → the third-party payment platform processes the transaction → the goods are delivered immediately after the transaction is successful. In some embodiments, the IAP supports the purchase of at least one of consumable goods, non-consumable goods, subscription renewal goods, and non-subscription renewal goods. Among them, consumable goods include goods that are used once and then become invalid, such as in-game currency, single-service, etc. Non-consumable goods include permanently valid goods, such as e-books, function unlocking in the application, advanced functions in the application, and permanent content in the application, etc. Subscription renewal goods include goods that are periodically charged and need to be manually canceled by the user, such as streaming media membership, cloud storage services, etc. Non-subscription renewal goods include services with a fixed time limit, which need to be purchased again after expiration, such as time-limited courses, seasonal content packages, etc.

[0065] Redemption code: Redemption code can also be called as coupon code, which is a tool provided by the operating system of the terminal for the developer to promote the in-app purchase of goods, allowing users to purchase goods in the application for free or at a discount price through a specified code. For example, the redemption code is a unique string code composed of letters and / or numbers, which is used to provide a service of free purchase of goods or discounted purchase of goods within a limited time, helping the developer to acquire new users, maintain existing users or win back lost users. It should be noted that for the IOS operating system, the redemption code can be called as Offer Codes.

[0066] Figure 1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application. The computer system 100 includes a terminal 110 and a server 120.

[0067] The terminal 110 is installed and runs an application 111 supporting in-app purchase, which means supporting the purchase of goods provided by the application 111 within the application 111. The application 111 includes any one of a song listening application, a song application, a singing application, a live broadcast application, a social application, an office application, a game application, a take-out application, an online shopping application, a video-on-demand application, a short video application, a financial application, a life service application, a navigation application, a medical application, a learning application, and a mini program. In some embodiments, the application 111 is a client. The terminal 110 is a terminal used by a user 112, and the user account of the user 112 can be logged in on the application 111. The terminal 110 can generally refer to one of a plurality of terminals. Optionally, the device type of the terminal 110 includes at least one of a smart phone, a tablet computer, a smart watch, an e-book reader, an MP3 player, an MP4 player, and a notebook computer.

[0068] The terminal 110 is connected to the server 120 through a wireless network or a wired network.

[0069] The server 120 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for the application 111 supporting in-app purchase. Optionally, the server 120 undertakes the main computing work, and the terminal 110 undertakes the secondary computing work; or the server 120 undertakes the secondary computing work, and the terminal 110 undertakes the main computing work; or the server 120 and the terminal 110 adopt a distributed computing architecture for collaborative computing.

[0070] In an illustrative example, the server 120 includes a processor 121, a user account database 122, an in-app purchase management module 123, and a user-oriented input / output interface (I / O interface) 124. The processor 121 is configured to load instructions stored in the server 120 and process data in the user account database 122 and the in-app purchase management module 123. The user account database 122 is configured to store data of user accounts used by the terminal 110 and other terminals, such as avatars of the user accounts, nicknames of the user accounts, groups to which the user accounts belong, and the like. The in-app purchase management module 123 is configured to provide services for in-app purchases of the application program 111. The user-oriented I / O interface 124 is configured to establish communication with the terminal 110 through a wireless network or a wired network and exchange data.

[0071] In combination with the foregoing introduction to the implementation environment related to the present application, the method provided by the embodiments of the present application will be described below.

[0072] Figure 2 is a schematic diagram of a process of redeeming a preferential right and interest provided by an example embodiment of the present application. As shown in Figure 2 The server obtains a redemption code 201 corresponding to each of a plurality of product codes. The product code is associated with a product in the client, and the redemption code 201 corresponding to the product code is used to redeem a preferential right and interest 205 of the product corresponding to the product code. For example, the redemption code corresponding to the product code of a member in the client is used to redeem a preferential purchase qualification of the member. In the case where the client reports a generated code 202, the server establishes a binding relationship 204 between the generated code 202 and the redemption code 201 according to purchase information 203 of a user account of the client in the client. The generated code 202 is a code generated by the client or the server, and the purchase information 203 can be used to indicate that the user account of the client has purchased or has not purchased a product in the client.

[0073] In some embodiments, the server establishes the binding relationship 204 between the redemption code 201 corresponding to the product code of the product not purchased by the user account of the client in the client and the generated code 202 according to the purchase information 203 of the user account of the client in the client. In some embodiments, the generated code 202 is generated by the server. The client sends the generated code 202 to the server through reporting information, and the reporting information is sent in the case where the client is started through a starting link. The starting link is used by the client to obtain the generated code 202, and the starting link is generated by the server. In some embodiments, the generated code 202 is generated by the server through encryption by a key. In the case where the client reports the generated code 202, the server decrypts the generated code 202 carried by the reporting information through a corresponding key to verify the generated code 202 carried by the reporting information.

[0074] After the binding relationship 204 is established, the client can send a redemption request to the server, and the redemption request carries the generated code 202. The server can issue a corresponding redemption code 201 to the client according to the generated code 202 carried by the redemption request and the binding relationship 204. After obtaining the redemption code 201, the client can redeem the corresponding preferential benefit 205 according to the redemption code 201.

[0075] By reporting the generated code on the client side, the binding relationship between the generated code and the redemption code is established according to the purchase information of the user account in the client side. Therefore, when the client initiates a redemption request, a corresponding redemption code is issued according to the generated code carried by the redemption request. Since the above binding relationship is established according to the purchase information of the user account, the client can be prevented from being issued a redemption code corresponding to a product that has been purchased by the user account, thereby avoiding the situation that the redemption code is invalid.

[0076] Figure 3 FIG. 1 is a flow diagram of a method for issuing a redemption code according to an example embodiment of the present application. The method can be used in a server, for example, in a server in the server shown in FIG. 2. As shown in FIG. 2, the method includes the following steps. Figure 1 Figure 3

[0077] Step 302: Obtain a redemption code corresponding to each of a plurality of product codes.

[0078] Each of the plurality of product codes is associated with a product in the client side. The product in the client side includes a product that can be purchased in the client side by using an in-application purchase method. Each product in the client side has an associated product code, and the product codes associated with different products in the client side are different. In some embodiments, a plurality of products are provided in the client side, and the plurality of product codes include product codes corresponding to all products in the client side, or product codes corresponding to products in one or more product groups in the client side. Each product group includes one or more products, and each product group corresponds to a group identifier (Group ID).

[0079] In some embodiments, the product in the client side includes at least one of a real product and a virtual product. In some embodiments, the product in the client side is a virtual product, which includes at least one of a consumable product, a non-consumable product, a subscription renewal product, and a non-subscription renewal product. The consumable product includes a product that is used once and then becomes invalid after being purchased. The non-consumable product includes a product that is valid permanently after being purchased. The subscription renewal product includes a product that is charged periodically. The non-subscription renewal product includes a product that has a fixed time limit. In some embodiments, the product in the example embodiments of the present application refers to a subscription renewal product, for example, a member in the client side.

[0080] ​​The exchange code corresponding to the product code is used to exchange the preferential right and interest of the product corresponding to the product code. Each product code corresponds to one or more exchange codes, that is, each product in the client corresponds to one or more exchange codes. The preferential right and interest of the product is used to purchase the product at a discount, at a preferential price, or for free according to the exchange code. In some embodiments, the exchange code corresponding to the product code is generated by an operating system operator corresponding to the client of the server according to the product code. Alternatively, the server stores the exchange code corresponding to the product code after obtaining the exchange code corresponding to the product code.

[0081] Step 304: In the case of reporting the generated code on the client, the binding relationship between the generated code and the exchange code is established according to the purchase information of the user account of the client in the client.

[0082] The generated code is an encoding generated by the client or the server, that is, the generated code can be generated by the client or the server, and each generated code exists uniquely in the client and the server. In some embodiments, the generated code is generated by key encryption, and the key used to generate the generated code can be a data encryption standard (DES) key. It should be noted that the present application does not limit the generation method of the generated code and the key used to generate the generated code.

[0083] The purchase information of the user account of the client in the client is used to indicate the purchased product of the user account in the client. The purchase information can also be used to indicate the un-purchased product of the user account in the client. The purchase information can also be used to indicate the purchased product and the un-purchased product of the user account in the client. It should be noted that in the case of the product in the present application is a subscription product, the purchased product refers to the product that the user account has subscribed or the subscription of which has not expired, and the un-purchased product refers to the product that the user account has not subscribed or the subscription of which has expired.

[0084] In some embodiments, the generated code is an encoding generated by the client. In this case, after the client reports the generated code, the server determines the un-purchased product of the user account in the client according to the purchase information of the user account, and binds the exchange code corresponding to the product code of the un-purchased product to the generated code reported by the client. Alternatively, in the process of binding the generated code and the exchange code, the server binds the exchange code corresponding to the product code of the un-purchased product of the user account to the generated code. Alternatively, in the case where the generation method of the generated code is indicated by the server, the server verifies the generated code according to the indicated generation method after receiving the generated code to determine whether the reported generated code passes the verification.

[0085] In some embodiments, the generated code is generated by the server. In this case, after the client reports the generated code, the server determines the un-purchased goods of the user account in the client according to the purchase information of the user account, and binds the exchange code corresponding to the goods code of the un-purchased goods with the generated code reported by the client. Optionally, in the process of binding the generated code and the exchange code, the server binds the exchange code corresponding to the goods code of the un-purchased goods for which the user account has a discount qualification with the generated code. Optionally, after receiving the generated code, the server verifies the generated code according to the generation method used when the generated code is generated, to determine whether the reported generated code passes the verification.

[0086] Step 306: In the case of receiving the exchange request sent by the client, the exchange code is issued to the client according to the generated code carried by the exchange request and the binding relationship.

[0087] After receiving the exchange request, the server queries the binding relationship stored in the server using the generated code carried by the exchange request, and issues the exchange code under the binding relationship of the generated code carried by the exchange request to the client (the user account of the client). In some embodiments, the exchange request is triggered and sent by the human-computer interaction operation in the client.

[0088] The exchange code issued by the server to the client is used to exchange the discount benefit of the goods corresponding to the exchange code in the client, and the goods corresponding to the exchange code is the goods corresponding to the goods code corresponding to the exchange code.

[0089] In summary, the method provided by the embodiment establishes the binding relationship between the generated generated code and the exchange code according to the purchase information of the user account in the client when the generated code is reported by the client, so that when the exchange request is initiated in the client, the corresponding exchange code is issued according to the generated code carried by the exchange request. Since the above binding relationship is established according to the purchase information of the user account, it can avoid issuing the exchange code corresponding to the goods purchased by the user account to the client, so as to avoid the situation that the exchange code is invalid.

[0090] Figure 4 is a flowchart of a discount benefit exchange method provided by an exemplary embodiment of the present application. The method can be used in a client, for example, in a client in a terminal as shown in Figure 1 As shown in Figure 4 , the method comprises:

[0091] Step 402: Send an exchange request to the server.

[0092] The exchange request carries a generated code, and the generated code is a code generated by the client or the server, and each generated code is unique in the client and the server. In some embodiments, the generated code is generated by encryption through a key, and the key used to generate the generated code can be a DES key. It should be noted that the embodiments of the present application do not limit the generation method of the generated code and the key used to generate the generated code. In some embodiments, the exchange request is triggered to be sent through a man-machine interaction operation in the client.

[0093] Step 404: receiving the exchange code sent by the server.

[0094] The exchange code sent by the server is determined by the server according to the generated code and the binding relationship between the generated code and the exchange code. Different binding relationships are used to bind different generated codes and different exchange codes. After receiving the exchange request, the server will query the binding relationship stored in the server using the generated code carried by the exchange request, and send the exchange code under the binding relationship of the generated code carried by the exchange request to the client.

[0095] The above binding relationship is established by the server according to the purchase information of the user account in the client in the client when the client reports the generated code to the server. The purchase information of the user account in the client is used to indicate the purchased goods of the user account in the client. The purchase information can also be used to indicate the non-purchased goods of the user account in the client. The purchase information can also be used to indicate the purchased goods and the non-purchased goods of the user account in the client. It should be noted that the establishment process of the binding relationship can refer to the related contents in other embodiments of the present application, and will not be repeated here.

[0096] Step 406: exchanging the preferential right and interest according to the exchange code.

[0097] The exchange code sent by the server to the client is used to exchange the preferential right and interest of the goods corresponding to the exchange code in the client. The goods corresponding to the exchange code are the goods corresponding to the goods code corresponding to the exchange code. The preferential right and interest is used to purchase the goods in the client. The preferential right and interest of the goods is used to purchase the goods at a discount, such as purchasing the goods at a discount corresponding to the exchange code, purchasing the goods at a preferential price corresponding to the exchange code, or purchasing the goods for free. In some embodiments, the preferential right and interest is exchanged through the application store of the operating system according to the exchange code. The goods corresponding to the exchange code sent by the server are associated with the goods code, and the exchange code corresponds to the goods code.

[0098] To sum up, the method provided in this embodiment establishes a binding relationship between the generated generated code and the exchange code according to the purchase information of the user account in the client under the condition that the generated code is reported on the client, so that the corresponding exchange code is issued according to the generated code carried by the exchange request when the exchange request is initiated on the client. Since the above binding relationship is established according to the purchase information of the user account, the exchange code corresponding to the goods purchased by the user account can be avoided to be issued to the client, so that the situation that the exchange code is invalid for exchange can be avoided.

[0099] Figure 5 is a flowchart of an exchange method of a preferential benefit provided in an example embodiment of the present application. The method can be used in the system shown in Figure 1 , and the method includes the following steps. Figure 5

[0100] Step 502: The server obtains the exchange code corresponding to each of the plurality of goods codes.

[0101] Each of the plurality of goods codes is associated with a goods in the client, and the goods in the client includes goods that can be purchased in the client by supporting in-application purchase. Each of the goods in the client has an associated goods code, and the goods codes associated with different goods in the client are different. In some embodiments, a plurality of goods are provided in the client, and the plurality of goods codes include the goods codes corresponding to all the goods in the client, or include the goods codes corresponding to the goods in one or more goods groups in the client, each of the goods groups includes one or more goods, and each of the goods groups corresponds to a group identifier (Group ID).

[0102] In some embodiments, the goods in the client include at least one of real goods and virtual goods. In some embodiments, the goods in the client are virtual goods, including at least one of consumable goods, non-consumable goods, subscription renewal goods, and non-subscription renewal goods. In some embodiments, the goods in the embodiments of the present application refer to subscription renewal goods, such as members in the client.

[0103] The exchange code corresponding to the goods code is used to exchange the preferential benefit of the goods corresponding to the goods code, and each of the goods codes corresponds to one or more exchange codes, i.e., each of the goods in the client corresponds to one or more exchange codes. The preferential benefit of the goods is used to purchase the goods at a discount, such as purchasing the goods at a discount corresponding to the exchange code, purchasing the goods at a preferential price corresponding to the exchange code, or purchasing the goods for free.

[0104] In some embodiments, the exchange code corresponding to the goods code is generated by the operating system operator according to the goods code by applying to the operating system operator corresponding to the server corresponding to the client. Alternatively, the server stores the exchange code corresponding to the goods code after obtaining the exchange code corresponding to the goods code.​

[0105] Step 504: In the case of the client reporting the generated code, the server establishes a binding relationship between the generated code and the exchange code according to the purchase information of the user account of the client in the client.

[0106] The generated code is an encoding generated by the client or the server, that is, the generated code can be generated by the client or the server, and each generated code exists uniquely in the client and the server. The purchase information of the user account of the client in the client is used to indicate the purchased goods of the user account in the client. The purchase information can also be used to indicate the non-purchased goods of the user account in the client. The purchase information can also be used to indicate the purchased goods and the non-purchased goods of the user account in the client. It should be noted that in the case of the goods in the embodiment of the present application being the goods of the subscription renewal type, the purchased goods refer to the goods that the user account has subscribed to or the goods that the subscription of which has not expired, and the non-purchased goods refer to the goods that the user account has not subscribed to or the goods that the subscription of which has expired.

[0107] In some embodiments, the server receives the reporting information sent by the client, and the reporting information carries the generated code. After receiving the reporting information, the server determines the available goods code corresponding to the user account in the above plurality of goods codes according to the purchase information of the user account, and establishes a binding relationship between the exchange code corresponding to the available goods code and the generated code. The available goods code includes the goods code corresponding to the goods that the user account can purchase in the client, or the goods code corresponding to the goods that the user account supports to purchase in the client. For example, the goods in the client include member 1, member 2 and member 3. Since the user account has subscribed to member 1, the available goods code corresponding to the user account includes the goods code corresponding to member 2 and the goods code corresponding to member 3.

[0108] The available product codes corresponding to the user account include one or more product codes. Optionally, in the case that the available product codes corresponding to the user account include multiple product codes, in the process of establishing the binding relationship between the exchange code corresponding to the available product code and the generated code, the server determines a target product code from the available product codes corresponding to the user account, thereby establishing the binding relationship between the exchange code corresponding to the target product code and the generated code. The target product code includes a product code corresponding to a product that the user account has not purchased in the client. Alternatively, the target product code is randomly determined by the server from the available product codes corresponding to the user account. Alternatively, the server calculates the similarity between the last n pieces of comment information of the user account in the client and each available product code, and determines the available product code with the highest similarity as the target product code. In the process of calculating the similarity corresponding to the ith available product code, the server calculates the similarity between each piece of comment information in the n pieces of comment information and the ith available product code, respectively, and determines the average value of the similarity corresponding to each piece of comment information as the similarity corresponding to the ith available product code. The n and i are positive integers.

[0109] Optionally, in the process of determining the available product codes corresponding to the user account, the server determines the products that the user account in the client has not purchased in the client according to the purchase information of the user account, and determines the product code corresponding to the product that has not been purchased from the multiple product codes, thereby determining the product code corresponding to the product that has not been purchased as the available product code.

[0110] In some embodiments, the report information is sent by the client in the case that the client is started through a start link, and the start link is used to obtain the generated code, and it can also be understood that the start link carries the generated code. The generated code and the start link are generated by the server. In some embodiments, the start link is obtained by the terminal where the client is located by scanning a two-dimensional code, and in the case that the two-dimensional code corresponding to the start link is scanned for the first time, the terminal obtains the start link by scanning the two-dimensional code, thereby starting the client through the obtained start link. After the client is started, the client sends the above report information to the server.

[0111] In some embodiments, the generated code is encrypted by the server using a key, which can be a DES key. The reported information also carries batch information, which is obtained through the launch link; in other words, the launch link carries batch information. There is a correspondence between the batch information and the key used to generate the generated code; different batches correspond to different keys. The batch information can be understood as indicating the activity batch for issuing redemption codes. Under different activity batches, the server will generate generated codes using corresponding keys to issue redemption codes. The batch information can be a batch identifier (batch ID). After receiving the reported information carrying batch information, the server will obtain the key corresponding to the batch information based on the batch information carried in the reported information, and decrypt the generated code carried in the reported information using the obtained key to verify the generated code carried in the reported information. If decryption is successful, the generated code carried in the reported information passes verification, and the server will execute the step of establishing a binding relationship; if decryption fails, the generated code carried in the reported information fails verification, and the server will not execute the step of establishing a binding relationship.

[0112] For example, Figure 6 This is a schematic diagram illustrating the process of generating a startup link according to an exemplary embodiment of this application. For example... Figure 6 As shown, in step A1, the server obtains the corresponding DES key based on the batch ID. In step A2, the server uses the DES key to generate an encrypted generation code. In step A3, the server enters the encrypted generation code into the database. In step A4, the server generates a Uniform Resource Locator (URL) carrying the encrypted generation code, i.e., the initiating link.

[0113] In some embodiments, the reported information also carries a timestamp and a verification code. The timestamp and verification code are obtained through the startup link, which can also be understood as the startup link carrying a timestamp and verification code. The timestamp indicates the generation time of the generated code, and the verification code corresponds to the generated code. The verification code is generated by the server and is uniquely stored on the server. After receiving the reported information carrying the timestamp and verification code, the server compares the timestamp and verification code carried in the reported information with the timestamp and verification code corresponding to the generated code stored on the server. If they match, the verification passes, and the server executes the step of establishing a binding relationship; if they do not match, the verification fails, and the server does not execute the step of establishing a binding relationship.

[0114] In some embodiments, the reporting information also carries a user account of the client, which is an account logged in the client, and can be an account registered through the client or an account registered through an operating system of a terminal where the client is located, and the embodiments of the present application do not limit this. After receiving the reporting information carrying the user account, the server binds the user account of the client with the generated code. It should be noted that one generated code only supports binding with one user account, so as to avoid the generated code being reused.

[0115] For example, Figure 7 is a schematic diagram of a binding process of the generated code provided by an exemplary embodiment of the present application. As shown in Figure 7 , in step B1, the server verifies the generated code reported by the client. In step B2, the server determines whether the generated code reported by the client is verified. In step B3, if the generated code is verified, the server determines whether the generated code is bound. In step B4, if the generated code is not bound, the server binds the generated code with the user account.

[0116] In some embodiments, in the case of a change in the purchase information, the server re-establishes the binding relationship between the generated code and the exchange code. Alternatively, the server re-determines the available product code corresponding to the user account of the client according to the changed purchase information, and obtains a new available product code. Then, the server establishes a binding relationship between the exchange code corresponding to the new available product code and the generated code, so as to re-establish the binding relationship between the generated code and the exchange code. For the process of determining the available product code and establishing the binding relationship, refer to the related content in the foregoing, which will not be described here.

[0117] Step 506: The client sends an exchange request to the server.

[0118] The exchange request carries the generated code, which is a code generated by the client or the server, and each generated code exists uniquely in the client and the server. In some embodiments, the exchange request is triggered and sent through a man-machine interaction operation in the client.

[0119] In some embodiments, the generated code is generated by the server through encryption of a key, which can be a DES key. The exchange request also carries batch information, which has a corresponding relationship with the key used to generate the generated code, and the keys corresponding to different batch information are different. The batch information can be a batch identifier (batch ID).

[0120] Step 508: The server issues an exchange code to the client according to the generated code carried by the exchange request and the binding relationship.

[0121] The exchange code sent by the server is determined by the server according to the generated code and the binding relationship between the generated code and the exchange code. Different binding relationships are used to bind different generated codes and different exchange codes. After receiving the exchange request, the server queries the binding relationship stored in the server using the generated code carried by the exchange request, and issues the exchange code under the binding relationship of the generated code carried by the exchange request to the client. For the introduction of the binding relationship, please refer to the related contents in the embodiments of the present application, which will not be repeated here.

[0122] In some embodiments, after receiving the exchange request carrying the batch information, the server obtains the key corresponding to the batch information according to the batch information carried by the exchange request, and decrypts the generated code carried by the exchange request according to the obtained key to verify the generated code carried by the exchange request. If the decryption is successful, the generated code carried by the exchange request is verified, and the server will execute the step of issuing the exchange code; if the decryption fails, the generated code carried by the exchange request is not verified, and the server will not execute the step of issuing the exchange code.

[0123] For example, Figure 8 is a schematic diagram of the exchange code issuing process provided by an exemplary embodiment of the present application. As Figure 8 shown, in step C1, the server verifies the generated code carried by the exchange request of the client. In step C2, the server judges whether the generated code has been bound. In step C3, if the generated code has not been bound, the binding process of the generated code is executed. In step C4, the server queries the historical signed goods codes of the user account. In step C5, the server judges whether the historical signed goods codes of the user account match the generated code successfully. In step C6, if the matching is successful, the server will issue the plaintext exchange code. In step C7, the server binds the exchange code with the generated code.

[0124] In some embodiments, the exchange code issued by the server to the client is an encrypted exchange code, and the server encrypts the exchange code through the login password of the user account of the client. After receiving the encrypted exchange code sent by the server, the client will display a password input interface. In the case that the password input through the password input interface is consistent with the login password of the user account, the client will decrypt the encrypted exchange code through the login password of the user account, thereby obtaining the decrypted exchange code.

[0125] In some embodiments, the exchange code issued by the server to the client is an encrypted exchange code, and the server encrypts the issued exchange code through the generated code, thereby obtaining the encrypted exchange code and sending it to the client. After receiving the encrypted exchange code sent by the server, the client will decrypt the encrypted exchange code through the generated code carried by the exchange request, thereby obtaining the decrypted exchange code.

[0126] Step 510: The client exchanges the discount code for the discount benefit.

[0127] The discount code issued by the server to the client is used to exchange the discount benefit of the product corresponding to the discount code in the client. The product corresponding to the discount code is the product corresponding to the product code corresponding to the discount code. The discount benefit is used to purchase the product in the client. The discount benefit of the product is used to purchase the product at a discount, for example, to purchase the product at a discount corresponding to the discount code, to purchase the product at a preferential price corresponding to the discount code, or to purchase the product for free. In some embodiments, the discount benefit is exchanged through the application store of the operating system according to the discount code. The product corresponding to the discount code issued by the server is associated with the product code, and the discount code corresponds to the product code.

[0128] For example, Figure 9 is a schematic diagram of the exchange discount benefit process provided by an exemplary embodiment of the present application. As Figure 9 shown, in step D1, the user of the client initiates an exchange request by generating a code. In step D2, the client sends an exchange request carrying a user account to the server. In step D3, the server verifies the legality of the exchange request. In step D4, if the exchange request is verified, the server issues a discount code to the client. In step D5, the client initiates an exchange to a third-party server, such as the server of the operating system operator, through the discount code. In step D6, the third-party server returns an exchange result to the server. In step D7, the server determines to issue a discount benefit for the user. In step D8, the server issues the discount benefit to the client.

[0129] In summary, the method provided by the present embodiment establishes a binding relationship between the generated code and the discount code according to the purchase information of the user account in the client when the client reports the generation of the code, so that the corresponding discount code is issued according to the generated code carried by the exchange request when the exchange request is initiated in the client. Since the above-mentioned binding relationship is established according to the purchase information of the user account, it can avoid issuing the discount code corresponding to the product purchased by the user account to the client, thereby avoiding the situation that the discount code is invalid.

[0130] The method provided in the embodiment can also determine the available product code according to the purchase information of the user account, and establish a binding relationship between the exchange code corresponding to the available product code and the generated code, thereby avoiding issuing the exchange code corresponding to the product purchased by the user account to the client, and avoiding the situation that the exchange code is invalid. By determining the available product code according to the purchase information, the product code corresponding to the product not purchased by the user account can be accurately determined. By starting the link to issue the generated code generated by the server, a flexible way of issuing the generated code is provided. By encrypting the generated code and checking the generated code carried by the reporting information according to the key corresponding to the batch information, the leakage and misuse of the generated code can be avoided. By binding the generated code to the user account, the generated code can be avoided from being reused. By re-establishing the binding relationship when the purchase information of the user account changes, it can be ensured that the valid exchange code is always issued to the user account.

[0131] Taking the method provided in the embodiment of the application for issuing the exchange code (Offer Codes) of the IOS operating system as an example, the method provided in the embodiment of the application provides an exchange code issuing scheme based on DES encryption and dynamic matching, and the contents are as follows:

[0132] Step 1: Application of the exchange code in plaintext.

[0133] Applying for a new exchange code to the IOS operating system operator according to different product groups (GroupID).

[0134] Entering the exchange code in plaintext into the business database.

[0135] Step 2: Generation of the encrypted generated code.

[0136] Allocating an independent DES key for each batch of exchange codes in plaintext.

[0137] Generating the encrypted generated code using the DES key.

[0138] Distributing the encrypted generated code to the user.

[0139] Step 3: Real-time query of the user's subscription state.

[0140] After the user obtains the encrypted generated code, the client reports the user's unique identifier to the server when the client is opened for the first time through the application link (start link).

[0141] The server uses the key corresponding to the batch of generated codes to verify the legality and intercept the encrypted generated code carried by the request, and extracts the timestamp, batch ID and other information.

[0142] After verification, the server binds the encrypted generated code to the user account of the user.

[0143] • The generated code is bound and cannot be reused after generation, preventing the user's generated code from being stolen by others if the user's generated code is leaked.

[0144] Step 4: Dynamic binding of plaintext exchange code.

[0145] • The server queries the available product code group for the user and selects an unused plaintext exchange code.

[0146] • The plaintext exchange code is bound to the user's encrypted generated code.

[0147] Step 5: Distribution of plaintext exchange code and client verification.

[0148] • When the client initiates an exchange request, the generated code is uploaded to the server.

[0149] • The server decrypts and verifies using the corresponding key, and distributes the plaintext exchange code that has been bound.

[0150] • The client obtains the plaintext exchange code that meets the IAP payment conditions and performs the exchange of rights.

[0151] Exception handling mechanism.

[0152] • If the user's subscription product group changes (such as refunding resulting in invalid group permissions), the server updates the available product group list in real time and rejects invalid exchange requests.

[0153] • If decryption fails or the product group does not match, return an error code and guide the user to reacquire a valid exchange code.

[0154] The method provided by the embodiments of the application achieves the following:

[0155] 1. Dynamic matching mechanism: based on the user's real-time subscription status, the exchange code of the corresponding product group is selected, avoiding repeated subscription charges due to the IAP multi-product code group mechanism.

[0156] 2. Hierarchical encryption and verification: encryption isolation is achieved through different batches of DES key pairs, ensuring that even if a single key is leaked, the overall security is not affected.

[0157] 3. Double anti-tampering: the encrypted content contains batch ID and timestamp, preventing cross-batch misuse and reuse of expired generated codes.

[0158] 4. Low maintenance cost: when adding a new product group, only the binding relationship of the plaintext exchange code needs to be extended, without modifying the core distribution logic.

[0159] 5. Privacy compliance: user subscription information is verified through official interfaces or local desensitization data, and sensitive payment information is not stored.

[0160] Take the member exchange of the song client as an example, Figure 10 is a schematic diagram of the generation of the encoding process provided by an example embodiment of the present application, Figure 11 is a schematic diagram of the exchange member process provided by an example embodiment of the present application. As Figure 10 and Figure 11 As shown in the drawings, the user scans the two-dimensional code 101 placed by the offline store through the terminal, thereby triggering the display of the check-in interface 1002, and the successful display of the check-in interface 1003 through the check-in interface 1002, which can trigger the display of the link interface 1004 of the exchange link (start link) received by the user. By copying the exchange link in the link interface 1004 and opening the exchange link through the browser 1005, the song client can be started and the activity interface 1006 can be displayed. At this time, the server has bound the exchange code according to the generation code carried by the exchange link, and the exchange code is used to exchange a free member for one month. Through the get button in the activity interface 1006, the exchange request can be triggered, so as to jump to the exchange interface 1007 of the application store. Through the exchange interface 1007, the exchange benefit can be triggered to jump to the subscription interface 1008 of the application store. After completing the exchange of the member through the subscription interface 1008, the exchange success interface 1009 can be displayed. Through the exchange success interface 1009, the member interface 1010 in the client can be jumped to, and the member exchanged by the user can be displayed.

[0161] The method provided by the example embodiment of the present application at least includes the following beneficial effects:

[0162] Improve the exchange success rate: the dynamic matching mechanism ensures that the exchange code issued meets the user's rights.

[0163] Enhance security: DES encryption prevents tampering and theft, and key grouping isolation reduces risk diffusion.

[0164] Flexible expansion: support for parallel management of multiple goods groups, suitable for complex business scenarios.

[0165] Compatibility: seamless docking with official IAP interface, no need to modify the payment process.

[0166] It should be noted that the application can display a prompt interface, a pop-up window or output voice prompt information before and during the collection of relevant data of the user, the prompt interface, the pop-up window or the voice prompt information is used to prompt the user that the relevant data of the user is currently being collected, so that the application only starts to perform the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation of the user to the prompt interface or the pop-up window, otherwise (i.e. without obtaining the confirmation operation of the user to the prompt interface or the pop-up window), ending the relevant steps of obtaining the relevant data of the user, that is, not obtaining the relevant data of the user. In other words, all the user data collected by the application is collected with the consent and authorization of the user, and the collection, use and processing of the relevant user data need to comply with the relevant laws, regulations and standards of the country and region.

[0167] It should be noted that the order of the method steps provided by the embodiments of the application can be adjusted appropriately, and the steps can be increased or decreased accordingly. Any person skilled in the art can easily think of changes within the technical range disclosed in the application, which should be covered within the protection scope of the application, therefore, it will not be repeated here.

[0168] Figure 12 is a structural schematic diagram of a redemption code issuing device provided by an exemplary embodiment of the application. As shown in Figure 12 , the device comprises:

[0169] The obtaining module 1201 is configured to obtain a redemption code corresponding to each of a plurality of product codes, the product code being associated with a product in a client, and the redemption code corresponding to the product code being used to redeem a preferential benefit of the product corresponding to the product code.

[0170] The establishing module 1202 is configured to, in a case where a generated code is reported and generated on the client, establish a binding relationship between the generated code and the redemption code according to purchase information of a user account of the client in the client, the generated code being a code generated by the client or the device, and the purchase information being used to indicate a purchased product of the user account in the client.

[0171] The sending module 1203 is configured to, in a case where a redemption request is received from the client, issue the redemption code to the client according to the generated code carried in the redemption request and the binding relationship.

[0172] In an optional design, the establishing module 1202 is configured to:

[0173] receive the reporting information sent by the client, the reporting information carrying the generated code;

[0174] determine, according to the purchase information, a user account of the client in the plurality of product codes corresponding to the available product code;

[0175] establish a binding relationship between the available product code corresponding to the exchange code and the generated code.

[0176] In an optional design, the establishing module 1202 is configured to:

[0177] determine, according to the purchase information, an un-purchased product of the client in the client;

[0178] determine, in the plurality of product codes, a product code corresponding to the un-purchased product;

[0179] determine the product code corresponding to the un-purchased product as the available product code.

[0180] In an optional design, the report information is sent in a case where the client is started through a start link, and the start link is used to obtain the generated code.

[0181] The generated code and the start link are generated by the device.

[0182] In an optional design, the generated code is generated by the device through a key encryption, the report information further carries batch information, the batch information is obtained through the start link, and the batch information has a corresponding relationship with the key. Figure 13 As shown in the figure, the device further includes:

[0183] The obtaining module 1201 is configured to obtain the key according to the batch information carried by the report information.

[0184] The decryption module 1204 is configured to decrypt the generated code carried by the report information according to the key, so as to verify the generated code carried by the report information.

[0185] In an optional design, the report information further carries a user account of the client; and the establishing module 1202 is configured to:

[0186] bind the user account of the client with the generated code.

[0187] In an optional design, the establishing module 1202 is configured to:

[0188] In a case where the purchase information changes, re-establish a binding relationship between the generated code and the exchange code.

[0189] Figure 14is a structural schematic diagram of a discount benefit exchange device provided by an example embodiment of the present application. As shown in Figure 14 The device includes:

[0190] The sending module 1401 is configured to send an exchange request to a server, the exchange request carrying a generated code, the generated code being a code generated by the device or the server;

[0191] The receiving module 1402 is configured to receive an exchange code sent by the server, the exchange code being determined according to the generated code and a binding relationship between the generated code and the exchange code, the binding relationship being established according to purchase information of a user account of the device in the device under the condition that the device reports the generated code, the purchase information being used to indicate purchased goods of the user account in the device;

[0192] The exchange module 1403 is configured to exchange a discount benefit according to the exchange code, the discount benefit being used to purchase goods in the device, the goods corresponding to the exchange code being associated with a goods code, and the exchange code corresponding to the goods code.

[0193] It should be noted that the exchange code issuing device provided by the above embodiment is only exemplified by the division of the above functional modules, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the exchange code issuing device and the exchange code issuing method provided by the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0194] Similarly, the discount benefit exchange device provided by the above embodiment is only exemplified by the division of the above functional modules, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the discount benefit exchange device and the discount benefit exchange method provided by the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0195] The embodiments of the present application also provide a computer device, which comprises a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the exchange code issuing method or the discount benefit exchange method provided by the above method embodiments.

[0196] In some embodiments, the computer device is a terminal. For example, Figure 15 FIG. 1 is a schematic diagram of a structure of a terminal according to an example embodiment of the present application.

[0197] Generally, the terminal 1500 includes a processor 1501 and a memory 1502.

[0198] The processor 1501 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 can be implemented in the form of at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1501 can also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 can be integrated with a GPU (Graphics Processing Unit) that is responsible for rendering and drawing of content to be displayed on a display screen. In some embodiments, the processor 1501 can further include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.

[0199] The memory 1502 can include one or more computer-readable storage media that can be non-transitory. The memory 1502 can also include a high-speed random access memory, and a non-volatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction for being executed by the processor 1501 to implement the redemption method of the promotional benefit according to the method embodiments of the present application.

[0200] In some embodiments, terminal 1500 can also optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1503 through a bus, a signal line or a circuit board. Specifically, the peripheral devices include at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507 and a power supply 1508.

[0201] The peripheral device interface 1503 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502 and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502 and the peripheral device interface 1503 can be implemented on a separate chip or circuit board, and the embodiments of the present application do not limit this.

[0202] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1504 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1504 can also include NFC (Near Field Communication) related circuitry, and the present application does not limit this.

[0203] The display screen 1505 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 is further configured to capture touch signals on or above the surface of the display screen 1505. The touch signals can be input to the processor 1501 as control signals for processing. In this case, the display screen 1505 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1505 can be one, arranged on the front panel of the terminal 1500; in other embodiments, the display screen 1505 can be at least two, arranged on different surfaces of the terminal 1500 or in a folding design; in still other embodiments, the display screen 1505 can be a flexible display screen, arranged on a curved surface or a folding surface of the terminal 1500. Even, the display screen 1505 can also be arranged in an irregular shape other than a rectangle, i.e., a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0204] The camera assembly 1506 is configured to capture images or videos. Optionally, the camera assembly 1506 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is arranged on the front panel of the terminal 1500, and the rear-facing camera is arranged on the back of the terminal. In some embodiments, the rear-facing camera is at least two, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, to realize the background blur function by fusing the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1506 can further include a flash. The flash can be a single-color-temperature flash or a dual-color-temperature flash. The dual-color-temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0205] The audio circuit 1507 can include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into an electrical signal input to the processor 1501 for processing, or input to the radio frequency circuit 1504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal 1500. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert the electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker can be a conventional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can it convert electrical signals into sound waves that humans can hear, but it can also convert electrical signals into sound waves that humans cannot hear for ranging purposes. In some embodiments, the audio circuit 1507 can also include a headphone jack.

[0206] The power supply 1508 is used to supply power to each component in the terminal 1500. The power supply 1508 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1508 includes a rechargeable battery, the rechargeable battery can be a wired charging battery or a wireless charging battery. The wired charging battery is a battery charged through a wired line, and the wireless charging battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0207] In some embodiments, the terminal 1500 further includes one or more sensors 1509. The one or more sensors 1509 include, but are not limited to, an acceleration sensor 1510, a gyroscope sensor 1511, a pressure sensor 1512, an optical sensor 1513, and a proximity sensor 1514.

[0208] The acceleration sensor 1510 can detect the acceleration magnitude in three coordinate axes of the coordinate system established by the terminal 1500. For example, the acceleration sensor 1510 can be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1501 can control the touch display screen 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1510. The acceleration sensor 1510 can also be used for game or user motion data collection.

[0209] The gyroscope sensor 1511 can detect the body orientation and rotation angle of the terminal 1500, and the gyroscope sensor 1511 can collect 3D actions of the user on the terminal 1500 in cooperation with the acceleration sensor 1510. The processor 1501 can realize the following functions according to the data collected by the gyroscope sensor 1511: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.

[0210] The pressure sensor 1512 can be disposed at the side frame of the terminal 1500 and / or the lower layer of the touch display screen 1505. When the pressure sensor 1512 is disposed at the side frame of the terminal 1500, the holding signal of the user to the terminal 1500 can be detected, and the left-hand or right-hand recognition or shortcut operation can be performed by the processor 1501 according to the holding signal collected by the pressure sensor 1512. When the pressure sensor 1512 is disposed at the lower layer of the touch display screen 1505, the operable control on the UI interface can be controlled by the processor 1501 according to the pressure operation of the user to the touch display screen 1505. The operable control includes at least one of the button control, the scroll bar control, the icon control and the menu control.

[0211] The optical sensor 1513 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the touch display screen 1505 according to the ambient light intensity collected by the optical sensor 1513. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is decreased. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameter of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1513.

[0212] The proximity sensor 1514, also called distance sensor, is usually disposed at the front panel of the terminal 1500. The proximity sensor 1514 is used to collect the distance between the user and the front of the terminal 1500. In one embodiment, when the proximity sensor 1514 detects that the distance between the user and the front of the terminal 1500 gradually decreases, the processor 1501 controls the touch display screen 1505 to switch from the bright screen state to the off-screen state; when the proximity sensor 1514 detects that the distance between the user and the front of the terminal 1500 gradually increases, the processor 1501 controls the touch display screen 1505 to switch from the off-screen state to the bright screen state.

[0213] Those skilled in the art can understand that the structure shown in the above embodiments does not constitute a limitation on the terminal 1500, and the terminal 1500 can include more or less components than those shown in the figures, or combine certain components, or adopt different component arrangements. Figure 15 Those skilled in the art can understand that the structure shown in the above embodiments does not constitute a limitation on the terminal 1500, and the terminal 1500 can include more or less components than those shown in the figures, or combine certain components, or adopt different component arrangements.

[0214] In some embodiments, the above computer device is a server. For example, the computer device shown in FIG. 1 can be a server. Figure 16 FIG. 1 is a structural schematic diagram of a computer device provided by an exemplary embodiment of the present application, which can be implemented as a server.

[0215] The computer device 1600 includes a central processing unit (CPU) 1601, a system memory 1604, including a random access memory (RAM) 1602 and a read-only memory (ROM) 1603, and a system bus 1605 that couples the system memory 1604 to the central processing unit 1601. The computer device 1600 also includes a basic input / output system (I / O) 1606 that helps transfer information between elements within the computer device, and a mass storage device 1607 for storing an operating system 1613, application programs 1614, and other program modules 1615.

[0216] The basic input / output system 1606 includes a display 1608 for displaying information and an input device 1609, such as a mouse, keyboard, or the like, for inputting information into the computer device. The display 1608 and input device 1609 are connected to the central processing unit 1601 through the input / output controller 1610 that is connected to the system bus 1605. The basic input / output system 1606 can also include the input / output controller 1610 for receiving and processing input from a number of other devices, including a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1610 provides output to a display screen, printer, or other type of output device.

[0217] The mass storage device 1607 is connected to the central processing unit 1601 through a mass storage controller (not shown) that is connected to the system bus 1605. The mass storage device 1607 and its associated computer-readable storage media provide non-volatile storage for the computer device 1600. That is, the mass storage device 1607 can include a computer-readable storage medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.

[0218] Without loss of generality, the computer readable storage medium can include computer storage medium and communication medium. The computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable storage instructions, data structures, program modules or other data. The computer storage medium includes RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid state storage device, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device. Of course, those skilled in the art can know that the computer storage medium is not limited to the above several. The system memory 1604 and the mass storage device 1607 described above can be collectively referred to as memory.

[0219] The memory stores one or more programs configured to be executed by the one or more central processing units 1601, and the one or more programs contain instructions for implementing the above method embodiments, and the central processing unit 1601 executes the one or more programs to implement the method provided by each of the above method embodiments.

[0220] According to various embodiments of the present application, the computer device 1600 can also be connected to a remote computer device on a network through a network such as the Internet. That is, the computer device 1600 can be connected to a network 1612 through a network interface unit 1611 connected to the system bus 1605, or can be connected to other types of network or remote computer device systems (not shown) using the network interface unit 1611.

[0221] The memory also includes one or more programs stored in the memory, and the one or more programs contain steps performed by the computer device in the method provided by the embodiments of the present application.

[0222] The embodiments of the present application also provide a computer readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. When the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor of the computer device, the method for issuing the exchange code or the method for exchanging the preferential right provided by each of the above method embodiments is implemented.

[0223] The application further provides a computer program product or computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the exchange code issuing method or the discount benefit exchanging method provided by the above-mentioned method embodiments.

[0224] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by program instructing relevant hardware to complete, and the program can be stored in a computer readable storage medium. The readable storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0225] The above-mentioned is only optional embodiment of the application, and does not limit the application. Any modification, equivalent switching, improvement, etc. made within the spirit and principle of the application shall be included in the protection scope of the application.

Claims

1. A method of issuing a redemption code, characterized by, The method is applied to a server, and the method comprises: Obtaining an exchange code corresponding to each of a plurality of goods codes, the goods codes being associated with goods in a client, the exchange code corresponding to the goods code being used to exchange a preferential benefit of the goods corresponding to the goods code; In the case that a generation code is reported by the client, establishing a binding relationship between the generation code and the exchange code according to purchase information of a user account of the client in the client, the generation code being a code generated by the client or the server, and the purchase information being used to indicate purchased goods of the user account in the client; In the case that a redemption request is received from the client, issuing the exchange code to the client according to the generation code carried by the redemption request and the binding relationship.

2. The method of claim 1, wherein, The method further comprises: Re-establishing the binding relationship between the generation code and the exchange code in the case that the purchase information changes. The method is applied to a client, and the method comprises: Sending a redemption request to a server, the redemption request carrying a generation code, the generation code being a code generated by the client or the server; 3. The method of claim 2, wherein, ​ ​ ​ ​ 4. The method according to claim 2 or 3, characterized in that, ​ ​ 5. The method of claim 4, wherein, ​ ​ ​ 6. The method according to claim 2 or 3, characterized in that, ​ ​ 7. The method according to any one of claims 1 to 3, characterized in that, ​ ​ 8. A method of redeeming a promotional benefit, characterized by, ​ ​ receive the exchange code sent by the server, the exchange code being determined according to the generated code and a binding relationship between the generated code and the exchange code, the binding relationship being established according to purchase information of a user account of the client in the client under the condition that the client reports the generated code, the purchase information being used to indicate purchased goods of the user account in the client; exchange a preferential right and interest according to the exchange code, the preferential right and interest being used to purchase goods in the client, the goods corresponding to the exchange code being associated with a goods code, the exchange code corresponding to the goods code.

9. A device for issuing redemption codes, characterized in that, The apparatus comprises: an obtaining module, configured to obtain an exchange code corresponding to each goods code in a plurality of goods codes, the goods code being associated with goods in a client, the exchange code corresponding to the goods code being used to exchange a preferential right and interest of the goods corresponding to the goods code; an establishing module, configured to establish a binding relationship between a generated code and the exchange code according to purchase information of a user account of the client in the client under the condition that the client reports the generated code, the generated code being a code generated by the client or the apparatus, the purchase information being used to indicate purchased goods of the user account in the client; a sending module, configured to issue the exchange code to the client according to the generated code carried in the exchange request and the binding relationship under the condition that the exchange request sent by the client is received.

10. A device for redeeming a promotional benefit, characterized by The apparatus comprises: a sending module, configured to send an exchange request to a server, the exchange request carrying a generated code, the generated code being a code generated by the apparatus or the server; a receiving module, configured to receive an exchange code sent by the server, the exchange code being determined according to the generated code and a binding relationship between the generated code and the exchange code, the binding relationship being established according to purchase information of a user account of the apparatus in the apparatus under the condition that the apparatus reports the generated code, the purchase information being used to indicate purchased goods of the user account in the apparatus; an exchanging module, configured to exchange a preferential right and interest according to the exchange code, the preferential right and interest being used to purchase goods in the apparatus, the goods corresponding to the exchange code being associated with a goods code, the exchange code corresponding to the goods code.

11. A computer device, comprising: The computer device comprises a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the exchange code issuing method according to any one of claims 1 to 7 or the preferential right and interest exchanging method according to claim 8.

12. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one program, the at least one program being loaded and executed by the processor to implement the exchange code issuing method according to any one of claims 1 to 7 or the preferential right and interest exchanging method according to claim 8.

13. A computer program product, characterised in that, The computer program product comprises computer instructions stored in a computer readable storage medium, a processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for issuing a redemption code according to any one of claims 1 to 7, or the method for redeeming a benefit according to claim 8.