Coupon code generation method and device of battery changing coupon, and medium

By obtaining the target information of battery swap coupons, designing the coupon code format, generating coupon codes that match the target, and establishing a management system, the problem of the traditional coupon code generation method being disconnected from the battery swap scenario is solved, and efficient and accurate coupon code management and use is achieved.

CN120278760APending Publication Date: 2025-07-08AULTON NEW ENERGY AUTOMOBILE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311867113.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The traditional method of generating coupon codes for battery swap coupons lacks correlation with battery swap scenarios, which leads to problems in the management and use of coupons and affects the consumer's experience.

Method used

By obtaining the issuance target information of the battery swap coupon, designing the coupon code format, generating coupon codes that match the issuance target, and establishing a coupon code library for management, including real-time monitoring and supplementation, setting limits on the number of times of use of coupon codes, etc.

Benefits of technology

It achieves the matching of coupon codes with actual application scenarios, improves generation efficiency and accuracy, reduces manual intervention, ensures the uniqueness of coupon codes and the degree of automation of the system, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120278760A_ABST
    Figure CN120278760A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a coupon code generation method and device for a power conversion coupon, and a medium, and relates to the technical field of power conversion coupons, and the method comprises the steps: obtaining the coupon issuing target information of the power conversion coupon, the discount coupon issuing target information comprises any one or more of a specified battery swap station, a target consumer group and a target use time period; according to the discount coupon issuing target information of the power conversion discount coupon, performing coupon code format design on the power conversion discount coupon to determine a current coupon code format corresponding to the power conversion discount coupon; through the preset coupon code generation mode, the coupon codes are automatically generated according to the current coupon code format so as to determine multiple current coupon codes corresponding to the battery changing coupon, the use requirements of multiple scene dimensions such as coupon use places, use groups and use time are met, the scene relevance of generated coupon codes and coupon code uniqueness are ensured, and the coupon code generation efficiency is improved. And various issuing requirements of the battery replacement coupons can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the technical field of battery replacement coupons, and particularly to a method, device, and medium for generating coupon codes for battery replacement coupons. Background Art

[0002] New energy vehicles are favored by more and more people due to their environmental protection, energy conservation and other advantages. However, problems such as long charging time and insufficient charging facilities of new energy vehicles limit their popularization. To solve these problems, the battery replacement technology has emerged. The battery replacement technology refers to replacing the power battery of an electric vehicle with a pre-charged power battery to achieve the purpose of rapid charging. To encourage consumers to use the battery replacement service, some enterprises will launch battery replacement coupons.

[0003] When generating battery replacement coupons in batches, the generated coupon codes have no relevance to the battery replacement usage scenario by means of a Universally Unique Identifier (UUID) or a database auto-increment primary key, resulting in problems in the issuance, management, and use of battery replacement coupons. For example, the usage conditions of the battery replacement coupons are not clear, or the usage method is too complex, making it difficult for consumers to understand and use. Therefore, the traditional coupon code generation method does not establish a connection with the battery replacement scenario, resulting in problems in coupon management and affecting the usage experience of consumers. Summary of the Invention

[0004] One or more embodiments of this specification provide a method, device, and medium for generating coupon codes for battery replacement coupons to solve the following technical problems: The traditional coupon code generation method does not establish a connection with the battery replacement scenario, resulting in problems in coupon management and affecting the usage experience of consumers.

[0005] One or more embodiments of this specification adopt the following technical solutions:

[0006] One or more embodiments of this specification provide a method for generating coupon codes for battery replacement coupons. The method includes: obtaining the coupon issuance target information of the battery replacement coupon, where the coupon issuance target information includes any one or more of a specified battery replacement station, a target consumer group, and a target usage time period; designing the coupon code format for the battery replacement coupon according to the coupon issuance target information of the battery replacement coupon to determine the current coupon code format corresponding to the battery replacement coupon; and automatically generating coupon codes according to the current coupon code format through a preset coupon code generation method to determine multiple current coupon codes corresponding to the battery replacement coupon.

[0007] Through the above technical solution, the issuance target of the battery replacement coupon is described in the form of the issuance target information of the coupon, realizing the usage requirements in multiple scenario dimensions such as the usage place, usage group, and usage time of the coupon; by setting the corresponding coupon code format according to the issuance target of the coupon, the association relationship between the actual application scenario of the coupon and the coupon code is established, ensuring the matching of the coupon and the actual application scenario; the coupon code is automatically generated according to the current coupon code format, ensuring the scenario relevance of the generated coupon code and the uniqueness of the coupon code encoding, which can meet various issuance requirements of the battery replacement coupon. Through the automated encoding process, manual intervention is reduced, the automation degree is improved, which helps to improve work efficiency and reduce the error rate.

[0008] Further, after determining multiple current coupon codes corresponding to the battery replacement coupon, the method further includes: storing the multiple current coupon codes into a pre-constructed matching coupon code library; receiving a coupon code acquisition request, and based on the coupon code acquisition request, obtaining a specified coupon code in the matching coupon code library, deleting the specified coupon code in the matching coupon code library, and generating a deletion archive log; monitoring the number of coupon codes in the matching coupon code library in real time, and when the number of coupon codes in the matching coupon code library is lower than a pre-set coupon code quantity threshold, replenishing the coupon codes in the matching coupon code library.

[0009] Through the above technical solution, through the pre-constructed matching coupon code library, the coupon code acquisition request can be quickly responded to, avoiding the cumbersome process of having to regenerate or search for coupon codes each time, and improving the processing efficiency; by obtaining the specified coupon code in the matching coupon code library and deleting the coupon code, the uniqueness of each coupon code can be ensured, avoiding the situation of repeated use or repeated issuance; by generating a deletion archive log, the usage situation of each coupon code can be recorded, facilitating the tracking and management of the usage situation of the coupon; when the number of coupon codes in the matching coupon code library is lower than the pre-set threshold, the system can automatically replenish the coupon codes, ensuring the continuous supply and issuance of the coupon; by monitoring the number of coupon codes in the matching coupon code library in real time, the insufficient coupon codes can be discovered and replenished in time, avoiding the waste and shortage of resources.

[0010] Further, according to the coupon issuance target information of the battery swapping coupon, the coupon code format of the battery swapping coupon is designed to determine the current coupon code format corresponding to the battery swapping coupon, which specifically includes: determining at least one target dimension of the coupon issuance target information of the battery swapping coupon, where the target dimension includes any one or more of the battery swapping station dimension, the consumer group dimension, and the usage time dimension; determining the length of the target coupon code for issuing the battery swapping coupon through the number of dimensions of the target dimension of the coupon issuance target information; allocating the coupon code length to each target dimension according to the length of the issued target coupon code and the number of dimensions of the target dimension to determine the dimension coding length corresponding to each target dimension; arranging the multiple dimension coding lengths according to the preset arrangement of the multiple target dimensions to generate the issued target coupon code template corresponding to the coupon issuance target information; determining the current coupon code format corresponding to the battery swapping coupon through the issued target coupon code template corresponding to the coupon issuance target information and the preset random number coding information, where the random number coding information includes the random number coding method, the random number coding length, and the random number coding position.

[0011] Through the above technical solution, by analyzing the dimensions of the coupon issuance target information, generating an issued target coupon code template for the target dimension of the coupon issuance target information, and designing a flexible coupon code format, it can be customized and extended according to different issuance targets and scenarios, meeting the needs of different users, and improving the applicability and flexibility of the coupon; ensuring the uniqueness of the coupon code for each coupon through the random number coding information; determining the current coupon code format corresponding to the battery swapping coupon through the issued target coupon code template corresponding to the coupon issuance target information and the preset random number coding information, the coupon code format is designed reasonably, concisely, and intuitively, making the coupon code easy to identify and scan, and improving the usage efficiency; in addition, providing clear prompts and guidance, enabling the quick and accurate use of the coupon, and making the management of the coupon more convenient.

[0012] Further, through a preset coupon code generation method, automatic generation of coupon codes is performed according to the current coupon code format to determine multiple current coupon codes corresponding to the battery swapping coupon. Specifically, it includes: obtaining the issuance target coupon code template and the random number coding information in the current coupon code format, where the issuance target coupon code template includes multiple dimension names corresponding to the coupon issuance target information, the dimension coding length corresponding to each dimension name, and the dimension position of each dimension name; determining the issuance target coupon code according to the issuance target coupon code template and the coupon issuance target information; generating multiple random number codings with a specified coding length through the random number coding method and the random number coding length in the random number coding information; arranging the multiple random number codings and the issuance target coupon code according to the random number coding position in the random number coding information to generate multiple current coupon codes corresponding to the battery swapping coupon.

[0013] Through the above technical solution, a connection with the coupon issuance target information is established through the issuance target coupon code to meet the requirements of different coupon issuance scenarios. Random number codings are generated by means of random number coding to meet the uniqueness requirement of coupon codes, ensuring the scenario relevance and the uniqueness of coupon code encoding of the generated coupon codes, and can meet various issuance requirements of the battery swapping coupon.

[0014] Further, determining the issuance target coupon code according to the issuance target coupon code template and the coupon issuance target information specifically includes: determining the matching coding method corresponding to each dimension name, where the coding method includes any one or more of digital coding, text coding, and letter coding; performing target value positioning on the coupon issuance target information through multiple dimension names in the issuance target coupon code template to determine the dimension target information corresponding to each dimension name; encoding each attribute target value according to the matching coding method and the attribute target value corresponding to each dimension name to generate the target attribute coding corresponding to each dimension name; filling the issuance target coupon code template according to the dimension position of each dimension name and the target attribute coding corresponding to each dimension name to determine the issuance target coupon code corresponding to the issuance target coupon code template.

[0015] Through the above technical solution, the matching coding method corresponding to each dimension name can be determined, and fast and accurate coding can be performed according to different attribute target values, avoiding the cumbersome and error-prone manual coding; using multiple coding methods such as digital coding, text coding, and letter coding can make the coding results clearer, easier to understand and maintain; at the same time, for the target values of different attributes, different coding methods can be adopted to make the coding results more flexible and diverse; locating the target value in the coupon issuance target information can more accurately determine the dimension target information corresponding to each dimension name, which helps to improve the accuracy and pertinence of coupon issuance; according to the dimension position and target attribute coding of each dimension name, the issued target coupon code template can be filled quickly and accurately, avoiding the cumbersome and error-prone manual filling; through the automated coding and template filling process, manual intervention can be reduced, the automation degree of the system can be improved, which helps to improve work efficiency and reduce the error rate.

[0016] Further, based on the coupon code acquisition request, after obtaining the specified coupon code in the matching coupon code library, the method further includes: obtaining the coupon code usage information in the coupon code acquisition request, so as to set a coupon code usage times limit identifier at a specified position of each of the current coupon codes based on the coupon code usage information.

[0017] Through the above technical solution, by setting the coupon code usage times limit identifier, the usage times of each coupon code can be restricted, preventing the same coupon code from being used multiple times and ensuring the uniqueness and effectiveness of coupon usage; precise control can be set in the coupon code usage times limit identifier according to business requirements and marketing strategies, such as each user can only use it once, twice or a specific number of times, etc., to achieve fine control of coupon usage; by setting restrictions in the coupon code usage times limit identifier, the processing efficiency of the system can be improved to a certain extent. For example, when the system receives a coupon code that has been used or exceeds the usage times, it can quickly identify that the code is invalid without additional processing and verification; in addition, by setting reasonable restrictions in the coupon code usage times limit identifier, the situation where users encounter errors or invalidity when repeatedly trying to use the same coupon code can be avoided, improving the user experience and satisfaction.

[0018] Further, the coupon code library is replenished with coupon codes, which specifically includes: obtaining multiple deleted coupon codes in the deletion archive log, and determining the specified number of coupon codes corresponding to the deleted coupon codes; analyzing each of the deleted coupon codes to determine the current random number code and the current issued target coupon code corresponding to each of the deleted coupon codes; generating the specified number of supplementary random number codes according to each of the current random number codes; determining a plurality of coupon codes to be replenished according to the current issued target coupon code and the specified number of supplementary random number codes; replenishing the plurality of coupon codes to be replenished into the matching coupon code library, and formatting the deletion archive log to facilitate the storage of subsequent deleted coupon codes.

[0019] Through the above technical solution, by obtaining the deleted coupon codes in the deletion archive log, the system can automatically replenish the corresponding number of coupon codes into the matching coupon code library to ensure that the number of coupon codes in the library always meets the requirements; according to the current random number code and the current issued target coupon code corresponding to each deleted coupon code, new supplementary random number codes and coupon codes to be replenished are generated, which can ensure that the newly replenished coupon codes have the same or similar attributes and characteristics as the deleted coupon codes, maintaining the consistency of the coupon codes in the library; by formatting the deletion archive log, the log can be made clearer, easier to understand and store, and helps the administrator to quickly view and analyze the log to understand the deletion and replenishment of coupon codes.

[0020] Further, after storing the plurality of current coupon codes into the pre-constructed matching coupon code library, the method further includes: dividing storage areas in the matching coupon code library according to a preset coupon code storage rule to generate a plurality of coupon code storage areas, where the coupon code storage rule includes any one of the coupon code storage for the battery swap station and the coupon code storage for the consumer group; classifying the plurality of coupon codes corresponding to the plurality of coupon issuance target information according to the coupon code storage rule, so as to store each of the coupon codes into the corresponding coupon code storage area of the matching coupon code library.

[0021] Through the above technical solutions, by classifying and storing different coupon codes according to specific storage rules, it is possible to make the search and retrieval of specific types of coupons more efficient, without having to search the entire matching coupon code library; by storing different types of coupon codes in different storage areas, the security of the system can be increased; if a certain type of coupon code is maliciously used or leaked, the system administrator can quickly access the corresponding storage area and take corresponding security measures; if the system needs to add new coupon types or attributes, only the corresponding classification needs to be added to the existing storage rules, enabling the system to be flexibly extended and adapted to future demand changes; by reasonably partitioning and classifying the storage of the matching coupon code library, each type of coupon code can be stored in the corresponding storage area, avoiding waste or shortage of space.

[0022] One or more embodiments of this specification provide a coupon code generation device for battery swapping coupons, including:

[0023] At least one processor; and,

[0024] A memory communicatively connected to the at least one processor; wherein,

[0025] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to:

[0026] Obtain the coupon issuance target information of the battery swapping coupon, where the coupon issuance target information includes any one or more of a designated battery swapping station, a target consumer group, and a target usage time period; according to the coupon issuance target information of the battery swapping coupon, design the coupon code format for the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; through a preset coupon code generation method, automatically generate coupon codes according to the current coupon code format to determine multiple current coupon codes corresponding to the battery swapping coupon.

[0027] A non-volatile computer storage medium provided by one or more embodiments of this specification stores computer-executable instructions, and the computer-executable instructions are set as:

[0028] Obtain the coupon distribution target information of the battery swapping coupon, where the coupon distribution target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; according to the coupon distribution target information of the battery swapping coupon, design the coupon code format of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; through a preset coupon code generation method, automatically generate coupon codes according to the current coupon code format to determine multiple current coupon codes corresponding to the battery swapping coupon.

[0029] The above at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: Through the above technical solutions, the distribution target of the battery swapping coupon is described in the form of coupon distribution target information, realizing the usage requirements in multiple scenario dimensions such as the usage place, usage group, and usage time of the coupon; by setting the corresponding coupon code format according to the distribution target of the coupon, the association relationship between the actual application scenario of the coupon and the coupon code is established, ensuring the matching of the coupon and the actual application scenario; automatically generating coupon codes according to the current coupon code format ensures the scenario relevance and coupon code encoding uniqueness of the generated coupon codes, which can meet various distribution requirements of the battery swapping coupon. Through the automated coding process, manual intervention is reduced, the degree of automation is improved, which helps to improve work efficiency and reduce the error rate. Description of the Drawings

[0030] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in this specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings. In the drawings:

[0031] Figure 1 It is a schematic flowchart of a method for generating a coupon code of a battery swapping coupon provided by an embodiment of this specification;

[0032] Figure 2 It is a schematic structural diagram of a device for generating a coupon code of a battery swapping coupon provided by an embodiment of this specification. Detailed Embodiments

[0033] In order to enable those skilled in the art of this technology to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only some embodiments of this specification, rather than all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.

[0034] New energy vehicles are favored by more and more people because of their environmental protection, energy saving and other advantages. However, problems such as the long charging time of new energy vehicles and the shortage of charging facilities limit their popularity. To solve these problems, the battery swapping technology has emerged. The battery swapping technology refers to replacing the power battery of an electric vehicle with a pre-charged power battery to achieve the purpose of rapid charging. In order to encourage consumers to use the battery swapping service, some enterprises will launch battery swapping coupons.

[0035] When generating battery swapping coupons in batches, by means of a Universally Unique Identifier (UUID) or the auto-increment primary key of a database, the generated coupon codes lack relevance to the battery swapping usage scenario, resulting in problems in the issuance, management, and use of battery swapping coupons. For example, the usage conditions of the battery swapping coupons are not clear, or the usage method is too complex, making it difficult for consumers to understand and use. Therefore, the traditional coupon code generation method does not establish a connection with the battery swapping scenario, resulting in problems in coupon management and affecting the usage experience of consumers.

[0036] The embodiments of this specification provide a method for generating coupon codes for battery swapping coupons. It should be noted that the execution entity in the embodiments of this specification can be a server or any device with data processing capabilities. Figure 1 For the flow diagram of a method for generating coupon codes for battery swapping coupons provided by the embodiments of this specification, as Figure 1 shown, it mainly includes the following steps:

[0037] Step S101, obtain the coupon issuance target information of the battery swapping coupon.

[0038] In an embodiment of this specification, before generating the coupon code, it is necessary to first obtain the coupon issuance target information of the battery swapping coupon. Here, the battery swapping coupon refers to the battery swapping coupon to be generated. The coupon issuance target information here includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period. It should be noted that the coupon issuance target information here is used to represent the issuance target of the battery swapping coupon, such as for a specific battery swapping station, a specific consumer group, a specific time period, etc. Describing the issuance target of the battery swapping coupon in the form of coupon issuance target information realizes the usage requirements of multiple scenario dimensions such as the usage place, usage group, and usage time of the coupon.

[0039] Step S102, design the coupon code format for the battery swapping coupon according to the coupon issuance target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon.

[0040] In one embodiment of this specification, in combination with the coupon issuance target information of the battery swapping coupon, the coupon code format of the battery swapping coupon is designed to determine the current coupon code format corresponding to the battery swapping coupon. By setting the corresponding coupon code format according to the issuance target of the coupon, the association relationship between the actual application scenario of the coupon and the coupon code is established, ensuring the matching of the coupon and the actual application scenario.

[0041] According to the coupon issuance target information of the battery swapping coupon, the coupon code format of the battery swapping coupon is designed to determine the current coupon code format corresponding to the battery swapping coupon, which specifically includes: determining at least one target dimension of the coupon issuance target information of the battery swapping coupon, where the target dimension includes any one or more of the battery swapping station dimension, the consumer group dimension, and the usage time dimension; determining the length of the issuance target coupon of the battery swapping coupon through the number of dimensions of the target dimension in the coupon issuance target information; allocating the coupon code length to each target dimension according to the length of the issuance target coupon and the number of dimensions of the target dimension to determine the dimension coding length corresponding to each target dimension; arranging the multiple dimension coding lengths according to the preset arrangement method of the multiple target dimensions to generate the issuance target coupon code template corresponding to the coupon issuance target information; determining the current coupon code format corresponding to the battery swapping coupon through the issuance target coupon code template corresponding to the coupon issuance target information and the preset random number coding information, where the random number coding information includes the random number coding method, the random number coding length, and the random number coding position.

[0042] In one embodiment of this specification, in the coupon issuance target information, there are included a designated battery swapping station, a target consumer group, and a target usage time period. Here, the designated battery swapping station corresponds to the battery swapping station dimension, the target consumer group corresponds to the consumer group dimension, and the target usage time period corresponds to the usage time dimension. That is to say, there is at least one target dimension in the coupon issuance target information. The length of the issuance target coupon of the battery swapping coupon is determined through the number of dimensions of the target dimension in the coupon issuance target information. Here, it can be specifically determined in the following way: constructing the corresponding relationship between each number of dimensions and the standard coupon code length by the way of presetting the number of dimensions and the standard coupon code length, storing it in a table, and looking up the table according to the current number of dimensions to determine the length of the issuance target coupon of the battery swapping coupon. It can also be determined in other ways according to the number of dimensions. The length of the issuance target coupon of the battery swapping coupon is positively correlated with the number of dimensions.

[0043] According to the length of the issued target coupon code and the number of dimensions of the target dimension, allocate the coupon code length to each target dimension to determine the dimension coding length corresponding to each target dimension. For example, the theoretical allocation length corresponding to each target dimension can be determined in the form of the ratio of the length of the issued target coupon code to the number of dimensions of the target dimension. If the theoretical allocation length is an integer, the theoretical allocation length is determined as the dimension coding length corresponding to each target dimension; if the theoretical allocation length is a non-integer, length allocation can be performed on the basis of the theoretical allocation length in the form of preset priorities for each dimension, and specific settings can be made according to the actual scenario.

[0044] In addition, set the arrangement method of all target dimensions. Among the arrangement methods of all target dimensions, determine the emission order of the target dimension corresponding to the current coupon issuance target information. According to the arrangement methods of multiple such target dimensions, arrange the multiple such dimension coding lengths to generate the issued target coupon code template corresponding to the coupon issuance target information. The issued target coupon code template includes multiple dimension names corresponding to the coupon issuance target information, namely the swap station dimension, the consumer group dimension, and the usage time dimension, and also includes the dimension coding length corresponding to each such dimension name, which can be represented by special symbols here, such as bracket symbols, etc., and also includes the dimension position of each such dimension name, that is, the front-back position relationship of multiple target dimensions. Through the issued target coupon code template corresponding to the coupon issuance target information and the preset random number coding information, determine the current coupon code format corresponding to the swap coupon, where the random number coding information includes the random number coding method, the random number coding length, and the random number coding position.

[0045] Through the above technical solution, through the dimensional analysis of the coupon issuance target information, for the target dimensions of the coupon issuance target information, generate the issued target coupon code template, design a flexible coupon code format, which can be customized and extended according to different issuance targets and scenarios, can meet the needs of different users, and improve the applicability and flexibility of the coupon; ensure the uniqueness of the coupon code of each coupon through the random number coding information; through the issued target coupon code template corresponding to the coupon issuance target information and the preset random number coding information, determine the current coupon code format corresponding to the swap coupon, and the coupon code format is designed reasonably, concisely and intuitively, making the coupon code easy to identify and scan, and improving the use efficiency; in addition, provide clear prompts and guidance, can quickly and accurately use the coupon, and make the management of the coupon more convenient.

[0046] Step S103, through the preset coupon code generation method, automatically generate the coupon code according to the current coupon code format to determine multiple current coupon codes corresponding to the swap coupon.

[0047] In one embodiment of the present specification, according to a preset coupon code generation method and in combination with the current coupon code format, automatic generation of coupon codes is performed to determine multiple current coupon codes corresponding to the battery swapping coupons. By automatically generating coupon codes, a large number of coupons can be quickly generated, improving the generation efficiency, and it can be applied to scenarios of large-scale coupon distribution; in addition, errors caused by manual generation of coupon codes are avoided, ensuring the accuracy and consistency of the coupon codes.

[0048] Through the preset coupon code generation method, automatic generation of coupon codes is performed according to the current coupon code format to determine multiple current coupon codes corresponding to the battery swapping coupons, which specifically includes: obtaining the issued target coupon code template and the random number coding information in the current coupon code format, where the issued target coupon code template includes multiple dimension names corresponding to the coupon issuance target information, the dimension coding length corresponding to each dimension name, and the dimension position of each dimension name; determining the issued target coupon code according to the issued target coupon code template and the coupon issuance target information; generating multiple random number codes with a specified coding length through the random number coding method and the random number coding length in the random number coding information; arranging the multiple random number codes and the issued target coupon code according to the random number coding position in the random number coding information to generate multiple current coupon codes corresponding to the battery swapping coupons.

[0049] In one embodiment of the present specification, the issued target coupon code template and the random number coding information in the current coupon code format are obtained, the coupon issuance target information is converted into a coding form, and filling is performed according to the corresponding issued target coupon code template to generate the issued target coupon code corresponding to the actual coupon issuance target information. After determining the issued target coupon code, multiple random number codes with a specified coding length are generated through the random number coding method and the random number coding length in the random number coding information. According to the random number coding position in the random number coding information, the multiple random number codes and the issued target coupon code are arranged to generate multiple current coupon codes corresponding to the battery swapping coupons.

[0050] Through the above technical solutions, a connection with the coupon issuance target information is established through the issued target coupon code to meet the requirements of different coupon issuance scenarios, and random number codes are generated through the random number coding method to meet the uniqueness requirement of the coupon codes, ensuring the scenario relevance and the uniqueness of the coupon code encoding of the generated coupon codes, and meeting various issuance requirements of the battery swapping coupons.

[0051] According to the issued target coupon code template and the coupon issuance target information, determine the issued target coupon code, specifically including: determining the matching coding method corresponding to each dimension name, where the coding method includes any one or more of digital coding, text coding, and letter coding; through multiple dimension names in the issued target coupon code template, locate the target value in the coupon issuance target information to determine the dimension target information corresponding to each dimension name; according to the matching coding method, encode each attribute target value according to the attribute target value corresponding to each dimension name to generate the target attribute code corresponding to each dimension name; according to the dimension position of each dimension name and the target attribute code corresponding to each dimension name, fill the issued target coupon code template to determine the issued target coupon code corresponding to the issued target coupon code template.

[0052] In an embodiment of the present specification, multiple coding methods are preset. For example, letter conversion coding, text coding, and digital coding are set, and the coding method corresponding to each dimension is set according to requirements to determine the matching coding method corresponding to each dimension name. The coding method here is used to represent the presentation method of coding, including any one or more of digital coding, text coding, and letter coding. For example, the coding method corresponding to the consumer group dimension is digital coding and letter coding, the corresponding first-level membership code is L1, the second-level membership code is L2, and non-members are L0. According to the coupon issuance target information, determine the dimension target information corresponding to each dimension name. For example, the dimension target information corresponding to the swap station dimension is swap station A, that is, swap station A is the target value. According to the matching coding method, convert the attribute target value corresponding to each dimension name into a coded form to generate the target attribute code corresponding to each dimension name. According to the dimension position of each dimension name and the target attribute code corresponding to each dimension name, fill the issued target coupon code template to determine the issued target coupon code corresponding to the issued target coupon code template.

[0053] Through the above technical solution, the matching coding method corresponding to each dimension name can be determined, and rapid and accurate coding can be performed according to different attribute target values, avoiding the cumbersome and error-prone manual coding; using multiple coding methods such as numerical coding, literal coding, and alphabetic coding can make the coding results clearer, easier to understand and maintain; at the same time, for the target values of different attributes, different coding methods can be adopted, making the coding results more flexible and diverse; locating the target value in the coupon issuance target information can more accurately determine the dimension target information corresponding to each dimension name, which helps to improve the accuracy and pertinence of coupon issuance; according to the dimension position and target attribute coding of each dimension name, the issued target coupon code template can be quickly and accurately filled, avoiding the cumbersome and error-prone manual filling; through the automated coding and template filling process, manual intervention can be reduced, the automation level of the system can be improved, which helps to improve work efficiency and reduce the error rate.

[0054] After determining multiple current coupon codes corresponding to the battery swapping coupon, the method further includes: storing the multiple current coupon codes in a pre-constructed matching coupon code library; receiving a coupon code acquisition request, and based on the coupon code acquisition request, acquiring a specified coupon code in the matching coupon code library, deleting the specified coupon code in the matching coupon code library, and generating a deletion archive log; monitoring the number of coupon codes in the matching coupon code library in real time, and when the number of coupon codes in the matching coupon code library is lower than a pre-set coupon code quantity threshold, replenishing the coupon codes in the matching coupon code library.

[0055] In an embodiment of the present specification, in order to manage coupon codes, multiple current coupon codes are stored in a pre-constructed matching coupon code library. When it is necessary to obtain a coupon code to be issued to the corresponding consumer, a coupon code acquisition request sent by the user is received, and under the trigger of the coupon code acquisition request, the specified coupon code in the matching coupon code library is sent to the user. To avoid duplicate issuance, the specified coupon code is deleted in the matching coupon code library. Each time a specified coupon code is deleted, the deleted specified coupon code is stored in the deletion archive log, and the deletion archive log is updated to record the coupon issuance situation. The number of coupon codes in the matching coupon code library is monitored in real time. When the number of coupon codes in the matching coupon code library is lower than a pre-set coupon code quantity threshold, the matching coupon code library is replenished with coupon codes. The coupon code quantity threshold here can be set according to actual needs and is not specifically limited herein.

[0056] Through the above technical solutions, by means of a pre-constructed matching coupon code library, the request for obtaining a coupon code can be quickly responded to, avoiding the cumbersome process of regenerating or searching for a coupon code each time, and improving the processing efficiency; by obtaining a specified coupon code from the matching coupon code library and deleting the code, the uniqueness of each coupon code can be ensured, avoiding the situation of repeated use or repeated issuance; by generating a deletion archive log, the usage situation of each coupon code can be recorded, facilitating the tracking and management of the usage of coupons; when the number of coupon codes in the matching coupon code library is lower than a pre-set threshold, the system can automatically replenish the coupon codes, ensuring the continuous supply and issuance of coupons; by monitoring the number of coupon codes in the matching coupon code library in real time, insufficient coupon codes can be discovered and replenished in a timely manner, avoiding waste and shortage of resources.

[0057] Based on the coupon code acquisition request, after obtaining a specified coupon code from the matching coupon code library, the method further includes: obtaining the coupon code usage information in the coupon code acquisition request, so as to set a coupon code usage times limit identifier at a specified position of each current coupon code based on the coupon code usage information.

[0058] In an embodiment of the present specification, the coupon code usage information is attached to the coupon code acquisition request, for example, it is for single use only, or the usage times is 3 times. According to the coupon code usage information, a coupon code usage times limit identifier is generated, and the coupon code usage times limit identifier can be set at the first or last position of the coupon code according to actual requirements, which is not specifically limited herein. When verifying a coupon, the coupon code usage times limit identifier is decremented by one each time the verification is performed. If the coupon code usage times limit identifier is 0 during coupon verification, it indicates that this coupon has been used.

[0059] Through the above technical solutions, by setting a coupon code usage times limit identifier, the usage times of each coupon code can be restricted, avoiding the repeated use of the same coupon code, and ensuring the uniqueness and effectiveness of coupon usage; precise control can be set in the coupon code usage times limit identifier according to business requirements and marketing strategies, such as each user can only use it once, twice, or a specific number of times, etc., to achieve fine control of coupon usage; by setting restrictions in the coupon code usage times limit identifier, the processing efficiency of the system can be improved to a certain extent. For example, when the system receives a coupon code that has been used or exceeds the usage times, it can quickly identify that the code is invalid without additional processing and verification; in addition, by setting reasonable restrictions in the coupon code usage times limit identifier, the situation where users encounter errors or invalidity when repeatedly attempting to use the same coupon code can be avoided, improving the user experience and satisfaction.

[0060] After storing the multiple current coupon codes in a pre-constructed matching coupon code library, the method further includes: dividing storage areas in the matching coupon code library according to a preset coupon code storage rule to generate multiple coupon code storage areas, where the coupon code storage rule includes any one of the coupon code storage in the swap station and the coupon code storage for the consumer group; classifying the multiple coupon codes corresponding to the multiple coupon distribution target information according to the coupon code storage rule, so as to store each of the coupon codes in the corresponding coupon code storage area of the matching coupon code library.

[0061] In one embodiment of the present specification, a coupon code storage rule is preset, for example, storing by swap station partition or storing by consumer group partition. According to the set coupon code storage rule, storage areas are divided in the matching coupon code library to generate multiple coupon code storage areas. The multiple coupon codes corresponding to the multiple coupon distribution target information are classified according to the coupon code storage rule, so as to store each of the coupon codes in the corresponding coupon code storage area of the matching coupon code library. For example, when storing by consumer group partition, assuming that the consumer group corresponding to the coupon distribution target information A is users with the first-level membership level, and the consumer group corresponding to the coupon distribution target information B is new member users, then partition by the membership level of the consumer group to obtain the first-level membership storage area and the new member storage area, store the multiple coupon codes corresponding to the coupon distribution target information A in the first-level membership storage area, and store the multiple coupon codes corresponding to the coupon distribution target information B in the new member storage area.

[0062] Through the above technical solutions, by classifying and storing different coupon codes according to specific storage rules, it can make the search and retrieval of specific types of coupons more efficient, without the need to search the entire matching coupon code library; by storing different types of coupon codes in different storage areas respectively, the security of the system can be increased; if a certain type of coupon code is maliciously used or leaked, the system administrator can quickly access the corresponding storage area and take corresponding security measures; if the system needs to add new coupon types or attributes, only the corresponding classification needs to be added to the existing storage rules, so that the system can be flexibly extended and adapted to future demand changes; by reasonably dividing the storage areas and classifying and storing the matching coupon code library, each type of coupon code can be stored in the corresponding storage area, avoiding waste or shortage of space.

[0063] Supplement the coupon codes in the matching coupon code library, specifically including: obtaining multiple deleted coupon codes in the deletion archive log, determining the specified number of coupon codes corresponding to the deleted coupon codes; analyzing each of the deleted coupon codes to determine the current random number code and the current issued target coupon code corresponding to each of the deleted coupon codes; generating the specified number of supplementary random number codes according to each of the current random number codes; determining multiple coupon codes to be supplemented according to the current issued target coupon code and the specified number of supplementary random number codes; supplementing the multiple coupon codes to be supplemented into the matching coupon code library, and formatting the deletion archive log to facilitate the storage of subsequent deleted coupon codes.

[0064] In one embodiment of the present specification, obtain multiple deleted coupon codes in the deletion archive log, determine the current random number code and the current issued target coupon code corresponding to the multiple deleted coupon codes. To ensure that the issued targets of the supplemented codes are the same, retain the current issued target coupon code, and generate the specified number of supplementary random number codes according to each of the current random number codes; the generation methods are the same, but the generated random numbers are different. Determine multiple coupon codes to be supplemented according to the current issued target coupon code and the same number of supplementary random number codes as the deleted coupon codes. Supplement the multiple coupon codes to be supplemented into the matching coupon code library, and format the deletion archive log to facilitate the storage of subsequent deleted coupon codes. Since the deletion archive log will be cleared after supplementation, the memory it occupies can be ignored.

[0065] Through the above technical solutions, by obtaining the deleted coupon codes in the deletion archive log, the system can automatically supplement the corresponding number of coupon codes into the matching coupon code library to ensure that the number of coupon codes in the library always meets the requirements; according to the current random number code and the current issued target coupon code corresponding to each deleted coupon code, generate new supplementary random number codes and coupon codes to be supplemented, which can ensure that the newly supplemented coupon codes have the same or similar attributes and characteristics as the deleted coupon codes, maintaining the consistency of the coupon codes in the library; by formatting the deletion archive log, the log can be made clearer, easier to understand and store, and helps the administrator quickly view and analyze the log to understand the deletion and supplementation of coupon codes.

[0066] The above at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: Through the above technical solution, the issuance target of the battery swapping coupon is described in the form of the coupon issuance target information, realizing the usage requirements in multiple scenario dimensions such as the usage place, usage group, and usage time of the coupon; by setting the corresponding coupon code format according to the coupon issuance target, the association relationship between the actual application scenario of the coupon and the coupon code is established, ensuring the matching of the coupon and the actual application scenario; the coupon code is automatically generated according to the current coupon code format, ensuring the scenario relevance of the generated coupon code and the uniqueness of the coupon code encoding, which can meet various issuance requirements of the battery swapping coupon. Through the automated encoding process, manual intervention is reduced, and the degree of automation is improved, which helps to improve work efficiency and reduce the error rate.

[0067] The embodiments of this specification also provide a coupon code generation device for battery swapping coupons, as Figure 2 shown. The device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: obtain the coupon issuance target information of the battery swapping coupon, where the coupon issuance target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; design the coupon code format for the battery swapping coupon according to the coupon issuance target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; automatically generate the coupon code according to the current coupon code format through a preset coupon code generation method to determine multiple current coupon codes corresponding to the battery swapping coupon.

[0068] The embodiments of this specification also provide a non-volatile computer storage medium storing computer-executable instructions, and the computer-executable instructions are set to: obtain the coupon issuance target information of the battery swapping coupon, where the coupon issuance target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; design the coupon code format for the battery swapping coupon according to the coupon issuance target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; automatically generate the coupon code according to the current coupon code format through a preset coupon code generation method to determine multiple current coupon codes corresponding to the battery swapping coupon.

[0069] The embodiments in this specification are all described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the embodiments of the device, equipment, and non-volatile computer storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.

[0070] The above has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0071] The devices and media provided by the embodiments of this specification correspond one-to-one with the methods. Therefore, the devices and media also have beneficial technical effects similar to those of their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be elaborated here.

[0072] Those skilled in the art should understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0073] This specification is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices produce means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0074] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 steps of the functions specified in one block or multiple blocks.

[0076] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

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

[0078] Computer-readable media includes permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules, 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, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.

[0079] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, commodity or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, commodity or device comprising the element.

[0080] The above description is only for one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, various changes and modifications can be made to one or more embodiments of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included within the scope of the claims of this specification.

Claims

1. A method for generating a coupon code for battery swapping coupons, characterized in that, The method includes: Obtaining the coupon distribution target information of the battery swapping coupon, where the coupon distribution target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; Designing the coupon code format of the battery swapping coupon according to the coupon distribution target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; Automatically generating coupon codes according to the current coupon code format through a preset coupon code generation method to determine multiple current coupon codes corresponding to the battery swapping coupon.

2. The method for generating a coupon code of an electricity replacement coupon according to claim 1, wherein, After determining the multiple current coupon codes corresponding to the battery swapping coupon, the method further includes: Storing the multiple current coupon codes into a pre-constructed matching coupon code library; Receiving a coupon code acquisition request, and based on the coupon code acquisition request, obtaining a specified coupon code in the matching coupon code library, deleting the specified coupon code in the matching coupon code library, and generating a deletion archive log; Real-time monitoring the number of coupon codes in the matching coupon code library, and when the number of coupon codes in the matching coupon code library is lower than a preset coupon code quantity threshold, replenishing the coupon codes in the matching coupon code library.

3. The method for generating a coupon code of a battery swapping coupon according to claim 1, wherein, Designing the coupon code format of the battery swapping coupon according to the coupon distribution target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon specifically includes: Determining at least one target dimension of the coupon distribution target information of the battery swapping coupon, where the target dimension includes any one or more of a battery swapping station dimension, a consumer group dimension, and a usage time dimension; Determining the length of the target coupon code for distributing the battery swapping coupon through the number of dimensions of the target dimension of the coupon distribution target information; Allocating the coupon code length to each target dimension according to the length of the target coupon code for distribution and the number of dimensions of the target dimension to determine the dimension coding length corresponding to each target dimension; Arranging the multiple dimension coding lengths according to a preset arrangement method of the multiple target dimensions to generate a target coupon code template corresponding to the coupon distribution target information; Determining the current coupon code format corresponding to the battery swapping coupon through the target coupon code template corresponding to the coupon distribution target information and preset random number coding information, where the random number coding information includes a random number coding method, a random number coding length, and a random number coding position.

4. A method for generating a coupon code of a battery swapping coupon according to claim 3, wherein, Automatically generating coupon codes according to the current coupon code format through a preset coupon code generation method to determine multiple current coupon codes corresponding to the battery swapping coupon specifically includes: Obtaining the target coupon code template and the random number coding information in the current coupon code format, where the target coupon code template includes multiple dimension names corresponding to the coupon distribution target information, the dimension coding length corresponding to each dimension name, and the dimension position of each dimension name; Determining the target coupon code for distribution according to the target coupon code template and the coupon distribution target information; Generate a plurality of random number encodings with a specified encoding length through the random number encoding method and the random number encoding length in the random number encoded information; Arrange the plurality of random number encodings and the issued target coupon code according to the random number encoding position in the random number encoded information to generate a plurality of current coupon codes corresponding to the battery swapping coupon.

5. A method for generating a coupon code of an electricity replacement coupon according to claim 4, wherein, Determine the issued target coupon code according to the issued target coupon code template and the coupon issuance target information, specifically including: Determine the matching encoding method corresponding to each dimension name, where the encoding method includes any one or more of digital encoding, text encoding, and letter encoding; Locate the target value in the coupon issuance target information through multiple dimension names in the issued target coupon code template to determine the dimension target information corresponding to each dimension name; Encode each attribute target value according to the matching encoding method based on the attribute target value corresponding to each dimension name to generate the target attribute encoding corresponding to each dimension name; Fill the issued target coupon code template according to the dimension position of each dimension name and the target attribute encoding corresponding to each dimension name to determine the issued target coupon code corresponding to the issued target coupon code template.

6. A method for generating a coupon code for a battery swapping coupon according to claim 2, characterized in that After obtaining the specified coupon code in the matching coupon code library based on the coupon code acquisition request, the method further includes: Obtain the coupon usage information in the coupon code acquisition request, so as to set the coupon usage times limit identifier at the specified position of each current coupon code based on the coupon usage information.

7. A method for generating a coupon code of an electricity replacement coupon according to claim 2, characterized in that, Supplement the matching coupon code library, specifically including: Obtain a plurality of deleted coupon codes in the deletion archive log and determine the specified coupon code quantity corresponding to the deleted coupon codes; Analyze each deleted coupon code to determine the current random number encoding and the current issued target coupon code corresponding to each deleted coupon code; Generate the specified coupon code quantity of supplementary random number encodings according to each current random number encoding; Determine a plurality of coupon codes to be supplemented according to the current issued target coupon code and the specified coupon code quantity of supplementary random number encodings; Supplement the plurality of coupon codes to be supplemented into the matching coupon code library, and format the deletion archive log to facilitate the storage of subsequent deleted coupon codes.

8. A method for generating a coupon code of an electricity replacement coupon according to claim 2, wherein, After storing the plurality of current coupon codes into a pre-constructed matching coupon code library, the method further includes: Divide the storage area in the matching coupon code library according to a preset coupon code storage rule to generate a plurality of coupon code storage areas, where the coupon code storage rule includes any one of the battery swapping station coupon code storage and the consumer group coupon code storage; Classify the plurality of coupon codes corresponding to the plurality of coupon issuance target information according to the coupon code storage rule, so as to store each coupon code into the corresponding coupon code storage area of the matching coupon code library.

9. A coupon code generation device for battery swapping coupons, characterized in that, The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Obtain the coupon issuance target information of the battery swapping coupon, wherein the coupon issuance target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; Design the coupon code format of the battery swapping coupon according to the coupon issuance target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; Automatically generate coupon codes in accordance with the current coupon code format through a preset coupon code generation method to determine a plurality of current coupon codes corresponding to the battery swapping coupon.

10. A non-volatile computer storage medium stores computer-executable instructions, characterized in that, The computer-executable instructions are set to: Obtain the coupon issuance target information of the battery swapping coupon, wherein the coupon issuance target information includes any one or more of a specified battery swapping station, a target consumer group, and a target usage time period; Design the coupon code format of the battery swapping coupon according to the coupon issuance target information of the battery swapping coupon to determine the current coupon code format corresponding to the battery swapping coupon; Automatically generate coupon codes in accordance with the current coupon code format through a preset coupon code generation method to determine a plurality of current coupon codes corresponding to the battery swapping coupon.