Rights processing method and apparatus

By deploying a program container in the application, a data channel is established between the third-party subprogram and the server. The code value and store identifier mapping table is used to query and display store benefits information, which solves the problem of complexity in connecting the third-party subprogram and the server, and achieves efficient and secure display of benefits information.

CN116051180BActive Publication Date: 2026-03-10ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-12
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, the data integration process between third-party subroutines and the server is complex, resulting in high R&D costs and poor real-time response, making it difficult to efficiently display the rights and benefits information of offline stores.

Method used

By deploying a program container in the application, a data channel is established between the third-party subprogram and the server. The program container is used to upload and decode the code value of the store service code, and the code value is combined with the store identifier mapping table to query the rights and benefits information of the target store. The program container is then sent to the subprogram for display.

Benefits of technology

It reduces the development costs of connecting third-party subprograms with the server, improves the real-time responsiveness of benefits services and the effectiveness and security of data, and ensures the timely display of store benefits information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051180B_ABST
    Figure CN116051180B_ABST
Patent Text Reader

Abstract

This specification provides a method and apparatus for processing rights and interests. One method includes: obtaining the code value of a store service code uploaded by a program container deployed by an application carrying a subroutine; the code value is obtained by the subroutine collecting and decoding the store service code; querying a store identifier mapped to the code value in a code value-store identifier mapping table; determining the rights and interests information of the target store corresponding to the store identifier and sending it to the program container, so that the program container can send the rights and interests information to the subroutine for display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a method and apparatus for processing rights. Background Technology

[0002] With the development of internet technology and the popularization of mobile terminals, more and more services are extending to online scenarios. This has led to the emergence of application platform software that can carry multiple application subroutines. This avoids users installing different types of applications on their mobile terminals. Instead, they can use the application subroutines built into the application platform software to complete the service. At the same time, the application subroutines can also make full use of the application platform software's abundant user traffic, thereby helping to improve the service of the application subroutines. Summary of the Invention

[0003] This specification provides one or more embodiments of a rights processing method, comprising: obtaining the code value of a store service code uploaded by a program container deployed by an application carrying a subroutine. The code value is obtained by the subroutine collecting and decoding the store service code. A store identifier mapped to the code value is queried in a code value-to-store identifier mapping table. The rights information of the target store corresponding to the store identifier is determined and sent to the program container, so that the rights information is sent to the subroutine and displayed through the program container.

[0004] This specification provides one or more embodiments of another rights processing method, including: a subroutine collecting a store service code and decoding the store service code to obtain a code value. If the subroutine generates a code value, the code value is sent to a program container deployed by the application, so as to be uploaded to the server through the program container. The rights information received by the program container from the server is sent to the subroutine, and the rights are displayed in the subroutine. The rights information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value.

[0005] This specification provides one or more embodiments of a rights processing apparatus, including: a code value acquisition module configured to acquire the code value of a store service code uploaded by a program container deployed by an application carrying a subroutine. The code value is obtained by the subroutine collecting and decoding the store service code. A store identifier query module configured to query a store identifier mapped to the code value in a code value-to-store identifier mapping table. A rights information determination module configured to determine the rights information of the target store corresponding to the store identifier and send it to the program container, so that the rights information can be sent to the subroutine and displayed through the program container.

[0006] This specification provides one or more embodiments of another rights processing apparatus, including: a service code acquisition module, configured as a subroutine to acquire store service codes and decode the store service codes to obtain code values; a code value sending module, configured to, if the subroutine generates a code value, send the code value to a program container deployed by the application, so as to upload it to the server through the program container; and a rights information display module, configured to send the rights information received by the program container from the server to the subroutine and display the rights in the subroutine. The rights information is determined after querying the code value to the store identifier mapped in a code value to store identifier mapping table.

[0007] This specification provides one or more embodiments of a rights processing device, including: a processor; and a memory configured to store computer-executable instructions, which, when executed, cause the processor to: acquire the code value of a store service code uploaded by a program container deployed by an application carrying a subroutine. The code value is obtained by the subroutine collecting and decoding the store service code. The processor queries a code value-to-store identifier mapping table for a store identifier mapped to the code value. The processor determines the rights information of the target store corresponding to the store identifier and sends it to the program container, so that the program container can send the rights information to the subroutine for display.

[0008] This specification provides one or more embodiments of another rights processing device, including: a processor; and a memory configured to store computer-executable instructions, which, when executed, cause the processor to: 1) collect a store service code and decode the store service code to obtain a code value. 2) If the subroutine generates a code value, send the code value to a program container deployed by the application to upload it to a server through the program container. 3) Send rights information received by the program container from the server to the subroutine and display the rights within the subroutine. The rights information is determined after querying a code value-to-store identifier mapping table to find the store identifier mapped to the code value.

[0009] This specification provides one or more embodiments of a storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process: obtaining the code value of a store service code uploaded by a program container deployed by an application carrying a subroutine. The code value is obtained by the subroutine collecting and decoding the store service code. A store identifier mapped to the code value is queried in a code value-to-store identifier mapping table. The benefits information of the target store corresponding to the store identifier is determined and sent to the program container, so that the benefits information is sent to the subroutine and displayed through the program container.

[0010] This specification provides one or more embodiments of another storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process: a subroutine collects a store service code and decodes the store service code to obtain a code value. If the subroutine generates a code value, the code value is sent to a program container deployed by the application, so that it can be uploaded to the server through the program container. The program container receives the benefits information issued by the server and sends it to the subroutine, and the benefits are displayed in the subroutine. The benefits information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in one or more embodiments of this specification or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating a rights processing method provided in one or more embodiments of this specification;

[0013] Figure 2 A timing diagram illustrating a rights processing method applied to offline store scenarios, provided by one or more embodiments of this specification.

[0014] Figure 3 A flowchart illustrating another method for handling rights provided in one or more embodiments of this specification;

[0015] Figure 4 A schematic diagram of a rights processing apparatus provided for one or more embodiments of this specification;

[0016] Figure 5 A schematic diagram of another rights processing apparatus provided for one or more embodiments of this specification;

[0017] Figure 6 A schematic diagram of the structure of a rights processing device provided in one or more embodiments of this specification;

[0018] Figure 7 This is a schematic diagram of another rights processing device provided in one or more embodiments of this specification. Detailed Implementation

[0019] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0020] This specification provides an example of a rights handling method:

[0021] The rights processing method provided in this application, based on the deployment of a program container in the application, involves a subroutine collecting and decoding a store service code to obtain the corresponding code value. The program container then uploads the decoded code value obtained by the subroutine to the program container. Next, it queries a pre-built mapping relationship between code values ​​and store identifiers to determine the store identifier mapped to the current code value. This determines which store the store service code collected by the subroutine belongs to. Finally, it identifies the rights information of the target store corresponding to the store identifier and sends it to the subroutine via the program container. The subroutine then displays the rights information of the current store. This method enables the display of the current store's rights information after scanning the store service code. Furthermore, the use of a program container for data transmission not only improves the efficiency of data transmission, thereby enhancing the real-time display of the current store's rights information after scanning the store service code, but also ensures the validity and security of data transmission.

[0022] Step S102: Obtain the code value of the store service code uploaded by the application container deployed by the application carrying the subroutine.

[0023] The subroutines described in this embodiment include program function modules or application components mounted on the host application (application), or program function modules or application components loaded and installed by the host application, such as mini-programs within the application. From a service perspective, the subroutines have the ability to independently provide self-closing services, such as mini-programs running within the application that have a self-closing capability for visiting stores and placing orders for store services. The subroutines can be third-party subroutines. Optionally, the subroutines include at least one of the following: subroutines provided by the service platform where the store is registered, subroutines of the store itself, and institutional subroutines of the organization to which the store belongs.

[0024] The program container provides a runtime framework or engine for loading and running subroutines in an application. By installing the program container in an application, the application can access the subroutines.

[0025] The store service code refers to a material code for an offline store. This material code provides users with access to the store's services. For example, a restaurant's service QR code allows users to order food or pay by scanning it via a mini-program. Similarly, a retail store's service QR code allows users to access the store's product list, select items, or proceed to checkout for purchased goods. Optionally, the code value is obtained by the subroutine collecting and decoding the store service code. The code value can be in the form of a URL (Uniform Resource Locator) or a data sequence composed of specific data.

[0026] In this embodiment, the application container is used to connect the subroutine with the server executing the rights processing method, thus establishing a data channel between the third-party subroutine and the server. This allows the server to provide the corresponding rights services to the third-party subroutine without requiring the subroutine to interface with the server through its own service backend. This reduces the development costs and modification pressure associated with the subroutine's own interface. Furthermore, compared to the method where the subroutine interfaces with the server through its own service backend, this method avoids the complex network conversion between the subroutine's service backend and the server, improving the real-time response of rights services provided to the third-party subroutine and ensuring the validity and security of the data involved in the rights services.

[0027] In practical implementation, a detection interface can be deployed to detect the scanning behavior of the subroutine. After detecting that the subroutine has collected the store service code and decoded it to generate a code value, the code value is sent to the program container, thereby responding to the subroutine's scanning behavior in real time. It should be noted that the detection interface, as the program body for detecting the subroutine's scanning behavior, can respond to the subroutine's calls to detect its scanning behavior, or it can detect the subroutine's scanning behavior at a specific detection cycle during the subroutine application's loading and running process. Optionally, the store service code value is sent to the program container after the detection interface detects that the subroutine has generated the code value.

[0028] Step S104: Query the store identifier that is mapped to the code value in the code value and store identifier mapping table.

[0029] The code value to store identifier mapping table described in this embodiment refers to a data table that records the mapping relationship between the code value of a store service code and the store identifier. By maintaining the code value to store identifier mapping table, the store currently performing the scanning action can be determined based on the code value of the store service code, thereby helping to achieve store location as quickly as possible.

[0030] In practical implementation, this embodiment constructs and maintains the code value-store identifier mapping table from a big data perspective. Specifically, it constructs the mapping table by cleaning a large number of scanning records and store data, thereby improving the data comprehensiveness of the code value-store identifier mapping relationship and thus increasing the success rate of store location based on code values. In one optional implementation of this embodiment, the code value-store identifier mapping table is constructed as follows: obtaining a store dataset and historical user scanning records; cleaning the code value-store identifier relationship of the store dataset and the scanning records; and constructing the code value-store identifier mapping table based on the cleaned code value-store identifier relationship.

[0031] As described above, this embodiment constructs a mapping table between code values ​​and store identifiers from a big data perspective. Therefore, to improve the efficiency of constructing the mapping table, during the process of cleaning the relationship between code values ​​and store identifiers in the store dataset and scanning records, data clustering is used to clean the relationship between code values ​​and store identifiers. Specifically, in an optional implementation of this embodiment, the cleaning of the relationship between code values ​​and store identifiers in the store dataset and scanning records includes:

[0032] Extract the store identifiers and corresponding store location information contained in the store dataset, and extract the code values ​​and corresponding scanning location information carried in the scan records;

[0033] The extracted store location information and the extracted QR code location information are clustered to obtain candidate store location information and candidate QR code location information corresponding to the same geographical location, and a mapping relationship is established between the store identifier corresponding to the candidate store location information and the code value corresponding to the candidate QR code location information.

[0034] Optionally, the scanning location information carried in the scanning record is collected after the authorization process for the historical user to collect the scanning location.

[0035] In one optional implementation of this embodiment, the extracted store location information and extracted QR code location information are clustered to obtain candidate store location information and candidate QR code location information corresponding to the same geographical location, including:

[0036] Calculate the location distance between each store location information and each QR code location information, and cluster the store location information and QR code location information whose location distance meets the clustering conditions into the same cluster;

[0037] Store location information and QR code scanning location information belonging to the same cluster are identified as candidate store location information and candidate QR code scanning location information corresponding to the same geographical location.

[0038] Among them, the store location information and QR code location information that meet the clustering conditions can be store location information and QR code location information with a location distance less than a preset distance threshold, or store location information and QR code location information with the smallest location distance, or store location information and QR code location information with the smallest location distance and a location distance within a preset distance range.

[0039] In addition, deduplication rules can be added during the clustering process. For example, if multiple scan records have the same location distance as the store location information corresponding to any store identifier, it's possible that multiple users scanned the code at the same store. Only one scan record is needed to establish a mapping between the store's service code and the store identifier. In this case, deduplication can be performed on the scan location information corresponding to multiple scan records. Alternatively, deduplication can be performed on the clustering results after clustering.

[0040] For example, the distance between the latitude and longitude of each store ID (Identity Document) in the store dataset and the latitude and longitude of each scanned record is calculated. Then, the store latitude and longitude and the scanned latitude and longitude are clustered according to the distance. The store latitude and longitude and the scanned latitude and longitude that are less than the preset distance threshold are clustered into the same cluster. Finally, the mapping relationship between the store ID corresponding to the store latitude and longitude and the code value corresponding to the scanned latitude and longitude is established under the same cluster, so as to obtain the code value and store identifier mapping table.

[0041] Step S106: Determine the rights and benefits information of the target store corresponding to the store identifier and send it to the program container so that the rights and benefits information can be sent to the subroutine and displayed through the program container.

[0042] After finding the store identifier mapped to the code value in the code value and store identifier mapping table, in this step, the benefits information of the target store corresponding to the store identifier is first determined, and the benefits information is sent to the program container so that the benefits information is sent to the subroutine through the program container, and the benefits information is displayed in the subroutine.

[0043] In specific implementation, during the process of determining the rights and interests information of the target store corresponding to the store identifier, the store rights and interests information of the target store can be directly read as the rights and interests information. In addition, in practice, there may be cases where the target store is a branch of a chain store. In this case, as one of the chain stores, the target store's marketing activities and / or rights and interests offerings may be consistent with other stores in the chain, and these activities and / or rights and interests offerings may be uniformly formulated by the chain store. To address this, in an optional implementation method provided in this embodiment, determining the rights and interests information of the target store corresponding to the store identifier includes: determining the institution to which the target store belongs, and querying the institution's institutional rights and interests information. Furthermore, the store rights and interests information of the target store and the institutional rights and interests information of the institution to which the target store belongs can be read simultaneously as the rights and interests information.

[0044] In the specific execution process, after the rights and interests information is sent to the subroutine via the program container, in an optional implementation of this embodiment, the subroutine displays the rights and interests information in the following manner: a rights and interests layer is obtained by rendering the rights and interests information; the rights and interests layer is displayed above the layer on the subroutine page.

[0045] The implementation process of the above-described rights processing method can be executed by the server. The implementation process of the other rights processing method provided in the following method embodiments can be executed by the application. The two cooperate with each other during execution. Therefore, the above implementation process can be read with reference to the corresponding content of the following method embodiments. Similarly, the following implementation process can also be read with reference to the corresponding content of the above method embodiments.

[0046] The following example illustrates the application of a rights processing method provided in this embodiment in an offline store scenario. Figure 2 The rights processing method provided in this embodiment will be further explained below. See [link to relevant documentation]. Figure 2 The rights and interests handling method applied to offline store scenarios includes the following steps.

[0047] Step S208: Receive the store service code value uploaded by the application container deployed by the application carrying the subroutine.

[0048] The code value is obtained by the subroutine collecting and decoding the material codes from offline stores.

[0049] Step S210: Query the store ID that is mapped to the code value in the code value and store ID mapping table.

[0050] Step S212: Determine the discount information of the offline store corresponding to the store ID.

[0051] Step S214: Send the discount information of offline stores to the program container so that the discount information can be sent to the subprogram and displayed through the program container.

[0052] The steps S208 to S214 provided in this embodiment are executed by the server. It should be noted that the server's execution of the above steps S208 to S214 can cooperate with the execution of steps S202 to S206 and steps S216 to S220 by the application in the following embodiment. Therefore, when reading this embodiment, please refer to the corresponding content of steps S202 to S206 and steps S216 to S220 provided in the following method embodiment.

[0053] Another embodiment of the rights handling method provided in this specification:

[0054] In step S302, the subroutine collects the store service code and decodes the store service code to obtain the code value.

[0055] The subroutines described in this embodiment include program function modules or application components mounted on the host application (application), or program function modules or application components loaded and installed by the host application, such as mini-programs within the application. From a service perspective, the subroutines have the ability to independently provide self-closing services, such as mini-programs running within the application that have a self-closing capability for visiting stores and placing orders for store services. The subroutines can be third-party subroutines. Optionally, the subroutines include at least one of the following: subroutines provided by the service platform where the store is registered, subroutines of the store itself, and institutional subroutines of the organization to which the store belongs.

[0056] The store service code refers to a material code for an offline store. This material code provides users with access to the store's services. For example, a restaurant's service QR code allows users to order food or pay by scanning it via a mini-program. Similarly, a retail store's service QR code allows users to access the store's product list, select items, or proceed to checkout for purchased goods by scanning it via a mini-program. Optionally, the code value is obtained by the subroutine collecting and decoding the store service code. The code value can be in the form of a URL (Uniform Resource Locator) or a data sequence composed of specific data.

[0057] Step S304: If the code value generated by the subroutine is detected, the code value is sent to the program container deployed by the application so as to be uploaded to the server through the program container.

[0058] The program container provides a runtime framework or engine for loading and running subroutines in an application. By installing the program container in an application, the application can access the subroutines.

[0059] In this embodiment, the application container is used to connect the subroutine with the server executing the aforementioned rights processing method, thus establishing a data channel between the third-party subroutine and the server. This allows the server to provide corresponding rights services to the third-party subroutine without requiring the subroutine to interface with the server through its own service backend. This reduces the development costs and modification pressure associated with the subroutine's own interface. Furthermore, compared to the subroutine's own service backend interface, this method avoids the complex network conversion between the subroutine's service backend and the server, improving the real-time response of rights services provided to the third-party subroutine while ensuring the validity and security of the data involved in the rights services.

[0060] In practical implementation, a detection interface can be deployed to detect the scanning behavior of the subroutine. After detecting that the subroutine has collected the store service code and decoded it to generate a code value, the code value is sent to the program container, thereby responding to the subroutine's scanning behavior in real time. It should be noted that the detection interface, as the program body for detecting the subroutine's scanning behavior, can respond to the subroutine's calls to detect its scanning behavior, or it can detect the subroutine's scanning behavior at a specific detection cycle during the subroutine application's loading and running process. Optionally, the store service code value is sent to the program container after the detection interface detects that the subroutine has generated the code value.

[0061] Step S306: The program container sends the rights information received from the server to the subroutine, and displays the rights in the subroutine.

[0062] After the code value obtained by decoding the store service code is uploaded to the server by the program container deployed on the application, the server queries the pre-built code value and store identifier mapping table to locate the store identifier that the received code value is mapped to, so as to locate the target store for the subroutine to scan the store service code. Based on locating the target store for the current store service code scanning, the server determines the rights and interests information of the target store corresponding to the store identifier, and finally sends the determined rights and interests information of the target store to the program container.

[0063] Accordingly, after the target store's benefits information is sent to the program container, the program container sends the benefits information sent by the server to the subroutine, and the benefits are displayed in the subroutine. In an optional implementation of this embodiment, the display of benefits in the subroutine includes: obtaining a benefits layer by rendering a layer based on the benefits information; and displaying the benefits layer above the layer on the subroutine page.

[0064] Optionally, the rights and benefits information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value. In this embodiment, the code value and store identifier mapping table refers to a data table that records the mapping relationship between the code value of a store service code and a store identifier. By maintaining the code value and store identifier mapping table, the store currently performing the scanning action can be determined based on the code value of the store service code, thereby helping to achieve store location as quickly as possible.

[0065] In practical implementation, this embodiment constructs and maintains the code value-store identifier mapping table from a big data perspective. Specifically, it constructs the mapping table by cleaning a large number of scanning records and store data, thereby improving the data comprehensiveness of the code value-store identifier mapping relationship and thus increasing the success rate of store location based on code values. In one optional implementation of this embodiment, the code value-store identifier mapping table is constructed as follows: obtaining a store dataset and historical user scanning records; cleaning the code value-store identifier relationship of the store dataset and the scanning records; and constructing the code value-store identifier mapping table based on the cleaned code value-store identifier relationship.

[0066] As described above, this embodiment constructs a mapping table between code values ​​and store identifiers from a big data perspective. Therefore, to improve the efficiency of constructing the mapping table, during the process of cleaning the relationship between code values ​​and store identifiers in the store dataset and scanning records, data clustering is used to clean the relationship between code values ​​and store identifiers. Specifically, in an optional implementation of this embodiment, the cleaning of the relationship between code values ​​and store identifiers in the store dataset and scanning records includes:

[0067] Extract the store identifiers and corresponding store location information contained in the store dataset, and extract the code values ​​and corresponding scanning location information carried in the scan records;

[0068] The extracted store location information and the extracted QR code location information are clustered to obtain candidate store location information and candidate QR code location information corresponding to the same geographical location, and a mapping relationship is established between the store identifier corresponding to the candidate store location information and the code value corresponding to the candidate QR code location information.

[0069] Optionally, the scanning location information carried in the scanning record is collected after the authorization process for the historical user to collect the scanning location.

[0070] In one optional implementation of this embodiment, the extracted store location information and extracted QR code location information are clustered to obtain candidate store location information and candidate QR code location information corresponding to the same geographical location, including:

[0071] Calculate the location distance between each store location information and each QR code location information, and cluster the store location information and QR code location information whose location distance meets the clustering conditions into the same cluster;

[0072] Store location information and QR code scanning location information belonging to the same cluster are identified as candidate store location information and candidate QR code scanning location information corresponding to the same geographical location.

[0073] Among them, the store location information and QR code location information that meet the clustering conditions can be store location information and QR code location information with a location distance less than a preset distance threshold, or store location information and QR code location information with the smallest location distance, or store location information and QR code location information with the smallest location distance and a location distance within a preset distance range.

[0074] In addition, deduplication rules can be added during the clustering process. For example, if multiple scan records have the same location distance as the store location information corresponding to any store identifier, it's possible that multiple users scanned the code at the same store. Only one scan record is needed to establish a mapping between the store's service code and the store identifier. In this case, deduplication can be performed on the scan location information corresponding to multiple scan records. Alternatively, deduplication can be performed on the clustering results after clustering.

[0075] For example, the distance between the latitude and longitude of each store ID (Identity Document) in the store dataset and the latitude and longitude of each scanned record is calculated. Then, the store latitude and longitude and the scanned latitude and longitude are clustered according to the distance. The store latitude and longitude and the scanned latitude and longitude that are less than the preset distance threshold are clustered into the same cluster. Finally, the mapping relationship between the store ID corresponding to the store latitude and longitude and the code value corresponding to the scanned latitude and longitude is established under the same cluster, so as to obtain the code value and store identifier mapping table.

[0076] The following example illustrates the application of a rights processing method provided in this embodiment in an offline store scenario. Figure 2 The rights processing method provided in this embodiment will be further explained below. See [link to relevant documentation]. Figure 2 The rights and interests handling method applied to offline store scenarios includes the following steps.

[0077] Step S202: The subroutine collects the material codes from offline stores.

[0078] Step S204: Decode the material code to obtain the code value.

[0079] Step S206: If a code value generated by a subroutine is detected, the code value is sent to the application container deployed by the application so that it can be uploaded to the server through the application container.

[0080] Step S216: Send the offline store discount information received by the program container from the server to the subroutine.

[0081] Step S218: Render the layer based on the discount information to obtain the discount display layer.

[0082] Step S220: Display the discount display layer above the layer on the subroutine page.

[0083] The following is an embodiment of a rights processing device provided in this specification:

[0084] In the above embodiments, a rights processing method is provided, and correspondingly, a rights processing apparatus is also provided, which will be described below with reference to the accompanying drawings.

[0085] Reference Figure 4 The diagram shows a rights processing device provided in this embodiment.

[0086] Since the apparatus embodiments correspond to the method embodiments, the descriptions are relatively simple. For relevant parts, please refer to the corresponding descriptions of the method embodiments provided above. The apparatus embodiments described below are merely illustrative.

[0087] This embodiment provides a rights processing device, including:

[0088] The code value acquisition module 402 is configured to acquire the code value of the store service code uploaded by the application container deployed by the application carrying the subroutine; the code value is obtained by the subroutine collecting the store service code and decoding it;

[0089] The store identifier query module 404 is configured to query the store identifier that is mapped to the code value in the code value to store identifier mapping table;

[0090] The rights and benefits information determination module 406 is configured to determine the rights and benefits information of the target store corresponding to the store identifier and send it to the program container so that the rights and benefits information can be sent to the subroutine and displayed through the program container.

[0091] Another embodiment of the rights processing device provided in this specification is as follows:

[0092] In the above embodiments, another rights processing method is provided, and correspondingly, another rights processing apparatus is also provided, which will be described below with reference to the accompanying drawings.

[0093] Reference Figure 5 The diagram shows a rights processing device provided in this embodiment.

[0094] Since the apparatus embodiments correspond to the method embodiments, the descriptions are relatively simple. For relevant parts, please refer to the corresponding descriptions of the method embodiments provided above. The apparatus embodiments described below are merely illustrative.

[0095] This embodiment provides a rights processing device, including:

[0096] The service code acquisition module 502 is configured as a subroutine to collect store service codes and decode the store service codes to obtain code values;

[0097] The code value sending module 504 is configured to send the code value to the program container deployed by the application if the code value generated by the subroutine is detected, so as to upload it to the server through the program container;

[0098] The rights and benefits information display module 506 is configured to send the rights and benefits information received by the program container from the server to the subroutine, and display the rights and benefits in the subroutine; the rights and benefits information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value.

[0099] The following is an embodiment of a rights processing device provided in this specification:

[0100] Corresponding to the rights processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a rights processing device, which is used to execute the rights processing method provided above. Figure 6 This is a schematic diagram of the structure of a rights processing device provided for one or more embodiments of this specification.

[0101] This embodiment provides a rights processing device, including:

[0102] like Figure 6As shown, the rights processing device can vary considerably due to differences in configuration or performance. It may include one or more processors 601 and memory 602, and the memory 602 may store one or more application programs or data. The memory 602 may be temporary or persistent storage. The application programs stored in the memory 602 may include one or more modules (not shown), each module may include a series of computer-executable instructions in the rights processing device. Furthermore, the processor 601 may be configured to communicate with the memory 602 and execute the series of computer-executable instructions in the memory 602 on the rights processing device. The rights processing device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input / output interfaces 605, one or more keyboards 606, etc.

[0103] In one specific embodiment, the rights processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the rights processing device, and is configured to be executed by one or more processors. The one or more programs include computer-executable instructions for performing the following:

[0104] The code value of the store service code uploaded by the application container deployed by the application carrying the subroutine is obtained; the code value is obtained by the subroutine collecting the store service code and decoding it.

[0105] Query the store identifier that is mapped to the code value in the code value to store identifier mapping table;

[0106] The rights and benefits information of the target store corresponding to the store identifier is determined and sent to the program container, so that the rights and benefits information can be sent to the subroutine and displayed through the program container.

[0107] Another embodiment of the rights processing device provided in this specification is as follows:

[0108] Corresponding to the other rights processing method described above, based on the same technical concept, one or more embodiments of this specification also provide another rights processing apparatus, which is used to execute the rights processing method provided above. Figure 7 This is a schematic diagram of another rights processing device provided in one or more embodiments of this specification.

[0109] This embodiment provides a rights processing device, including:

[0110] like Figure 7As shown, the rights processing device can vary considerably due to differences in configuration or performance. It may include one or more processors 701 and memory 702, and the memory 702 may store one or more application programs or data. The memory 702 may be temporary or persistent storage. The application programs stored in the memory 702 may include one or more modules (not shown), each module may include a series of computer-executable instructions in the rights processing device. Furthermore, the processor 701 may be configured to communicate with the memory 702 and execute the series of computer-executable instructions in the memory 702 on the rights processing device. The rights processing device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input / output interfaces 705, one or more keyboards 706, etc.

[0111] In one specific embodiment, the rights processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the rights processing device, and is configured to be executed by one or more processors. The one or more programs include computer-executable instructions for performing the following:

[0112] The subroutine collects the store service code and decodes the store service code to obtain the code value;

[0113] If the code value generated by the subroutine is detected, the code value is sent to the application container deployed by the application so that it can be uploaded to the server through the application container;

[0114] The program container receives the rights information issued by the server and sends it to the subroutine, and displays the rights in the subroutine; the rights information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value.

[0115] This specification provides an example of a storage medium as follows:

[0116] Corresponding to the rights processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.

[0117] The storage medium provided in this embodiment is used to store computer-executable instructions, which, when executed by a processor, implement the following process:

[0118] The code value of the store service code uploaded by the application container deployed by the application carrying the subroutine is obtained; the code value is obtained by the subroutine collecting the store service code and decoding it.

[0119] Query the store identifier that is mapped to the code value in the code value to store identifier mapping table;

[0120] The rights and benefits information of the target store corresponding to the store identifier is determined and sent to the program container, so that the rights and benefits information can be sent to the subroutine and displayed through the program container.

[0121] It should be noted that the embodiments of a storage medium described in this specification and the embodiments of a method for processing rights described in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can be referred to the implementation of the corresponding method described above, and the repeated parts will not be described again.

[0122] Another embodiment of the storage medium provided in this specification is as follows:

[0123] In response to the other rights processing method described above, based on the same technical concept, one or more embodiments of this specification also provide another storage medium.

[0124] The storage medium provided in this embodiment is used to store computer-executable instructions, which, when executed by a processor, implement the following process:

[0125] The subroutine collects the store service code and decodes the store service code to obtain the code value;

[0126] If the code value generated by the subroutine is detected, the code value is sent to the application container deployed by the application so that it can be uploaded to the server through the application container;

[0127] The program container receives the rights information issued by the server and sends it to the subroutine, and displays the rights in the subroutine; the rights information is determined after querying the code value and store identifier mapping table to find the store identifier mapped to the code value.

[0128] It should be noted that the embodiments of another storage medium in this specification and the embodiments of another rights processing method in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can be referred to the implementation of the corresponding method described above, and the repeated parts will not be described again.

[0129] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0130] In the 1930s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many improvements to the methodology today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that an improvement to the methodology cannot be implemented using a hardware physical module. For example, a Programmable Logic Device (PLD) (e.g., a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0131] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0132] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0133] For ease of description, the above apparatus is described by dividing it into various functional units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in one or more software and / or hardware.

[0134] Those skilled in the art will understand that one or more embodiments of this specification can be provided as a method, system, or computer program product. Therefore, one or more embodiments of this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0135] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0136] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0137] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0138] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0139] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0140] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0141] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0142] One or more embodiments of this specification can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a particular task or implement a particular abstract data type. One or more embodiments of this specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0143] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0144] The above description is merely an embodiment of this document and is not intended to limit the scope of this document. Various modifications and variations can be made to this document by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this document should be included within the scope of the claims of this document.

Claims

1. A benefit processing method, comprising: acquiring a code value of a store service code uploaded by a program container of an application program deployment carrying a subprogram; the code value being obtained by the subprogram collecting the store service code and decoding; detecting an interface detecting that the subprogram generates the code value and sending the code value to the program container; inquiring a store identification mapped with the code value in a code value and store identification mapping table; the code value and store identification mapping table being constructed by data cleaning on an acquired store data set and historical user's scan code records and obtaining a code value and store identification relationship; determining benefit information of a target store corresponding to the store identification and issuing to the program container to send the benefit information to the subprogram and display through the program container.

2. The benefit processing method of claim 1, the code value and store identification mapping table being constructed in the following manner: acquiring a store data set and historical user's scan code records; cleaning a code value and store identification relationship of the store data set and the scan code records, and constructing the code value and store identification mapping table according to the cleaned code value and store identification relationship.

3. The benefit processing method of claim 2, the cleaning of the code value and store identification relationship of the store data set and the scan code records comprising: extracting each store identification and corresponding store location information included in the store data set, and extracting code value and corresponding scan location information carried by the scan code records; clustering the extracted store location information and the extracted scan location information to obtain candidate store location information and candidate scan location information corresponding to the same geographical location, and establishing a mapping relationship between the store identification corresponding to the candidate store location information and the code value corresponding to the candidate scan location information.

4. The benefit processing method of claim 3, the clustering of the extracted store location information and the extracted scan location information to obtain candidate store location information and candidate scan location information corresponding to the same geographical location comprising: calculating the location distance of each store location information and each scan location information, and clustering the store location information and the scan location information whose location distance satisfies the clustering condition to the same cluster; determining the store location information and the scan location information in the same cluster as the candidate store location information and the candidate scan location information corresponding to the same geographical location.

5. The benefit processing method of claim 3, the scan location information carried by the scan code records being collected after the historical user's authorization processing of scan location collection.

6. The benefit processing method of claim 1, the subprogram receiving the benefit information and displaying in the following manner: rendering a benefit layer based on the benefit information; displaying the benefit layer above the layer of the subprogram page.

7. The benefit processing method of claim 1, the code value of the store service code being sent to the program container after the detection interface detects that the subprogram generates the code value.

8. The benefit processing method of claim 1, wherein the determining of the benefit information of the target store corresponding to the store identifier comprises: reading the store benefit information of the target store according to the store identifier; and / or determining an organization to which the target store belongs according to the store identifier, and querying the organization benefit information of the organization.

9. The benefit processing method of claim 1, wherein the subprogram comprises at least one of a subprogram provided by a service platform in which the store is located, a subprogram of the store, and an organization subprogram of an organization to which the store belongs.

10. A benefit processing method, comprising: a subprogram collecting a store service code and decoding the store service code to obtain a code value; if a detection interface detects that the subprogram generates the code value, sending the code value to a program container deployed by an application program, so as to upload the code value to a server through the program container; sending the benefit information sent by the server to the program container to the subprogram, and performing benefit display on the subprogram; the benefit information is determined after the store identifier mapped by the code value is queried in a code value and store identifier mapping table; the code value and store identifier mapping table is constructed by data cleaning of obtained store data set and historical user scanning code records and the code value and store identifier relationship obtained.

11. The benefit processing method of claim 10, wherein the performing of the benefit display on the subprogram comprises: performing layer rendering based on the benefit information to obtain a benefit layer; and displaying the benefit layer above the layer of the subprogram page.

12. The benefit processing method of claim 10, wherein the code value and store identifier mapping table is constructed in the following manner: obtaining a store data set and historical user scanning code records; cleaning the code value and store identifier relationship of the store data set and the scanning code records, and constructing the code value and store identifier mapping table according to the code value and store identifier relationship obtained by cleaning.

13. The benefit processing method of claim 12, wherein the cleaning of the code value and store identifier relationship of the store data set and the scanning code records comprises: extracting each store identifier and corresponding store location information included in the store data set, and extracting code values and corresponding scanning location information carried by the scanning code records; clustering the extracted store location information and the extracted scanning location information to obtain candidate store location information and candidate scanning location information corresponding to the same geographical location, and establishing a mapping relationship between the store identifier corresponding to the candidate store location information and the code value corresponding to the candidate scanning location information.

14. The benefit processing method of claim 13, wherein the clustering of the extracted store location information and the extracted scanning location information to obtain candidate store location information and candidate scanning location information corresponding to the same geographical location comprises: calculating the location distance of each store location information and each scanning location information, and clustering the store location information and the scanning location information whose location distance satisfies the clustering condition to the same cluster. ​ The store location information and the scanning code location information in the same cluster are determined as the candidate store location information and the candidate scanning code location information corresponding to the same geographical position.

15. The benefit processing method and the subprogram according to claim 10, wherein the subprogram comprises at least one of a subprogram of a service platform in which the store is located, a subprogram of the store, and a subprogram of an organization to which the store belongs.

16. A benefit processing apparatus, comprising: a code value acquisition module configured to acquire a code value of a store service code uploaded by a program container of an application program deployed with a subprogram; the code value is obtained by the subprogram collecting and decoding the store service code; and the code value is sent to the program container after the detection interface detects that the subprogram generates the code value; a store identification query module configured to query a store identification mapped with the code value in a code value and store identification mapping table; the code value and store identification mapping table is constructed by data cleaning on an obtained store data set and scanning code records of historical users and obtaining a code value and store identification relationship; a benefit information determination module configured to determine benefit information of a target store corresponding to the store identification and issue the benefit information to the program container, so as to send the benefit information to the subprogram through the program container and display the benefit information.

17. A benefit processing apparatus, comprising: a service code acquisition module configured to collect a store service code by a subprogram and decode the store service code to obtain a code value; a code value sending module configured to send the code value to a program container of an application program deployed with the subprogram if a detection interface detects that the subprogram generates the code value, so as to upload the code value to a server through the program container; a benefit information display module configured to send benefit information issued by the server to the subprogram through the program container and display the benefit information in the subprogram; the benefit information is determined after a store identification mapped with the code value is queried in a code value and store identification mapping table; the code value and store identification mapping table is constructed by data cleaning on an obtained store data set and scanning code records of historical users and obtaining a code value and store identification relationship.

18. A benefit processing apparatus, comprising: a processor; and a memory configured to store computer executable instructions which, when executed, cause the processor to: acquire a code value of a store service code uploaded by a program container of an application program deployed with a subprogram; the code value is obtained by the subprogram collecting and decoding the store service code; send the code value to the program container after a detection interface detects that the subprogram generates the code value; query a store identification mapped with the code value in a code value and store identification mapping table; the code value and store identification mapping table is constructed by data cleaning on an obtained store data set and scanning code records of historical users and obtaining a code value and store identification relationship; determine benefit information of a target store corresponding to the store identification and issue the benefit information to the program container, so as to send the benefit information to the subprogram through the program container and display the benefit information.

19. A benefit processing apparatus, comprising: A processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: The subprogram collects the store service code and decodes the store service code to obtain the code value; If the detection interface detects that the subprogram generates the code value, the code value is sent to the program container deployed by the application program to upload to the server through the program container; The program container receives the benefit information issued by the server and sends it to the subprogram, and the subprogram displays the benefit; The benefit information is determined after the store identification mapped by the code value is queried in the code value and store identification mapping table; The code value and store identification mapping table is constructed by data cleaning and obtaining the code value and store identification relationship of the obtained store data set and historical user code scanning records.

20. A storage medium for storing computer executable instructions, which, when executed by a processor, implement the following processes: The code value of the store service code uploaded by the program container of the application program deployment of the mounted subprogram is acquired; the code value is obtained by the subprogram collecting and decoding the store service code; The detection interface detects that the subprogram generates the code value and sends the code value to the program container; In the code value and store identification mapping table, the store identification mapped by the code value is queried; The code value and store identification mapping table is constructed by data cleaning and obtaining the code value and store identification relationship of the obtained store data set and historical user code scanning records; Determine the benefit information of the target store corresponding to the store identification and issue it to the program container to send the benefit information to the subprogram through the program container and display it.

21. A storage medium for storing computer executable instructions, which, when executed by a processor, implement the following processes: The subprogram collects the store service code and decodes the store service code to obtain the code value; If the detection interface detects that the subprogram generates the code value, the code value is sent to the program container deployed by the application program to upload to the server through the program container; The program container receives the benefit information issued by the server and sends it to the subprogram, and the subprogram displays the benefit; The benefit information is determined after the store identification mapped by the code value is queried in the code value and store identification mapping table; The code value and store identification mapping table is constructed by data cleaning and obtaining the code value and store identification relationship of the obtained store data set and historical user code scanning records.

Citation Information

Patent Citations

  • Method and device for identifying store on basis of user positioning information

    CN107844547A

  • Application program page processing method and device

    CN108108205A

  • Electronic coupon issuing method, device and equipment

    CN114661775A