Application form number generation method and related equipment
Through the shunt configuration file and shunt switch identification, the application form number is generated intelligently, which solves the problem of repeated calls to the interface during the generation of application form number in the prior art, improves efficiency and realizes the accurate identification of the application form number that needs to be generated and Splitting function.
Patent Information
- Application Number
- CN202410853852.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-12-17
AI Technical Summary
In the prior art, there are too many repeated calls to the application form number during the generation of application form number, and it is impossible to effectively judge the product that needs to generate application form number, resulting in inefficiency and waste of resources.
The target diversion configuration file is determined by referring to the product encoding in the diversion configuration file, and the diversion switch identification is used to realize intelligent application number generation, and only application number generation operations are performed for products that meet the requirements to avoid repeated calls to the interface.
It realizes intelligent generation of application form numbers, reduces the number of interface calls, improves efficiency, can identify products that do not need to generate application form numbers, and supports diversion application form number generation operation.
Smart Images

Figure CN119151667A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for generating an application number and related equipment. Background Art
[0002] The application number is a unique code used to identify orders, applications and other businesses. It helps to track and manage each business. Through the application number, you can query the applicant's detailed information, such as personal information, loan amount, interest rate, repayment plan, etc. Normally, you need to generate the corresponding application number first. Summary of the invention
[0003] The embodiment of the present application provides an application number generation method and related equipment, which can realize intelligent generation of application number.
[0004] In a first aspect, an embodiment of the present application provides a method for generating an application number, the method comprising:
[0005] Determine the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number;
[0006] Determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0007] Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0008] In a second aspect, an embodiment of the present application provides an application number generation device, the device comprising: a first generation unit, a determination unit, and a second generation unit, wherein:
[0009] The first generating unit is used to determine the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number;
[0010] The determining unit is used to determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0011] The second generating unit is used to generate an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0015] The implementation of the embodiments of the present application has the following beneficial effects:
[0016] The application number generation method and related equipment described in the present application determine the target diversion configuration file and the diversion configuration information of the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number, wherein the diversion configuration information includes the target product code and the target diversion switch identification number, and based on the interface and the target diversion switch identification number, perform an application number generation operation on the target product indicated by the target product code. On the one hand, the interface can be called only once to avoid repeated calls to the interface, and the application number generation operation is only performed on products corresponding to the product codes that meet the requirements. On the other hand, the diversion switch identification number can be used to implement the diversion function, which can not only identify products that do not need to perform the application number generation operation and products that need to perform the application number generation operation, but also implement the diversion application number generation operation and realize intelligent generation of application numbers. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flowchart of a method for generating an application number provided in an embodiment of the present application;
[0019] Figure 2 It is a flowchart of another method for generating an application number provided in an embodiment of the present application;
[0020] Figure 3 It is a flowchart of another application number generation method provided in an embodiment of the present application;
[0021] Figure 4 It is a flowchart of another application number generation method provided in an embodiment of the present application;
[0022] Figure 5 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0023] Figure 6 It is a block diagram of the functional units of an application number generating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] The electronic devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, driving recorders, laptop computers, mobile Internet devices (mobile internet devices, MID) or wearable devices (such as smart watches, Bluetooth headsets), etc. The above are only examples and not exhaustive, including but not limited to the above electronic devices. The electronic device may also include a server, which may be an outsourced server, a cloud server, an edge server, a server cluster, etc., which is not limited here.
[0028] The following is an introduction to the relevant terms involved in this application.
[0029] An interface for generating an application number, namely, a hypertext transfer protocol secure (HTTPS) interface for generating an application number.
[0030] The application number is a unique code used to identify the application service, which helps the business party, such as a financial institution, to track and manage each application. Through the application number, the financial institution can quickly locate and view the applicant's detailed information, such as personal information, loan amount, interest rate, repayment plan, etc. The application service may include at least one of the following: loan application, account opening application, deposit application, financing application, etc., which are not limited here. Taking the loan application as an example, the corresponding business scenario may include at least one of the following: credit business scenario, cash withdrawal business scenario, credit limit increase business scenario, etc., which are not limited here.
[0031] Product codes (productIds) are product codes of business scenario products. Different product codes can be used to represent different business scenario products. For example, product codes can be configured according to business needs, and products are directly separated by commas. The format is as follows: "productIds":"5103,5104,5105".
[0032] Shunt Switch is a switch used to implement the shunt function. Different shunt switches correspond to different shunt switch identification numbers. The shunt switch identification numbers are used to select different shunt switches. Different shunt switches correspond to different shunt modes. The shunt modes may include: no shunt, limited shunt, and full shunt. If there is no shunt, no application number will be generated; limited shunt can be understood as generating an application number based on the number of shunts, the shunt ratio and / or the time interval; and full shunt generates an application number based on the number of shunts.
[0033] The diversion ratio (Percent) is in %, for example, the diversion ratio is 1 to 100, which can be used together with the diversion number to determine the number of application numbers. The program can use the random number new Random().nextInt(100) = percent for diversion, and the format of the diversion ratio is as follows: "percent": 90. In the specific implementation, the diversion number and the diversion ratio can be multiplied to obtain the specific number of application numbers. Since the number of application numbers is a natural number, it is possible that the product of the diversion number and the diversion ratio is not an integer. In this case, the product of the diversion number and the diversion ratio can be rounded to obtain the number of application numbers. The rounding operation can include rounding up or rounding down.
[0034] The diversion number is (num or nums), the unit is pieces, and the diversion number determines the number of application numbers.
[0035] Time interval (times), the unit is HH:mm. Once the time interval is set, the corresponding application number generation operation can be performed within the set time interval.
[0036] In related technologies, such as Figure 1 As shown, each business scenario product needs to call the interface for generating application number when the application number generation operation is required. For example, when product 1 needs to generate an application number, it calls the interface for generating application number. Product 1 starts the application number generation operation until the application number generation operation is completed, and the interface for generating application number is called once. For another example, when product 2 needs to generate an application number, it calls the interface for generating application number. Product 2 starts the application number generation operation until the application number generation operation is completed, and the interface for generating application number is called twice, ..., when product N needs to generate an application number, it calls the interface for generating application number. Product N starts the application number generation operation until the application number generation operation is completed, and the interface for generating application number is called N times. It can be seen that the number of repeated interface calls in the related art is too large, and it is impossible to determine the specific number of application numbers generated by a product. Of course, it is also impossible to determine which products do not need to perform the application number generation operation and which need to perform the application number generation operation.
[0037] In order to solve the defects in the related art, the embodiment of the present application provides a method for generating an application number, which may include the following steps:
[0038] Determine the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number;
[0039] Determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0040] Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0041] By adopting the embodiments of the present application, on the one hand, the interface can be called only once to avoid repeated calls to the interface, and the application number generation operation is only performed on products corresponding to the product codes that meet the requirements. On the other hand, the diversion function can be realized by using the diversion switch identification number, which can not only identify products that do not need to perform application number generation operations and products that need to perform application number generation operations, but also realize the diversion of application number generation operations and realize intelligent generation of application numbers.
[0042] The following is a detailed description of the embodiments of the present application.
[0043] See also Figure 2 , Figure 2 : is a flow chart of a method for generating an application number provided in an embodiment of the present application, as shown in the figure; the method for generating an application number includes:
[0044] 201. Determine a target diversion profile according to a product code of the diversion profile and a reference product code of an interface for generating an application number.
[0045] In the embodiment of the present application, the application number is a unique code for identifying a loan application, which helps financial institutions track and manage each application. For example, taking a loan application as an example, the interface for generating an application number can be a Hypertext Transfer Protocol Security interface for generating an application number for a credit application. A credit application can be understood as an application for a credit loan. Before generating an application number, an interface for generating an application number can be called first. In a specific implementation, the number of interfaces for generating an application number can be 1.
[0046] In a specific implementation, the product code of the diversion profile may be matched with the reference product code of the interface for generating the application number, and the target diversion profile may be determined based on the product code that successfully matches the reference product code of the interface.
[0047] In some possible examples, the above step 201, determining the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number, may include the following steps:
[0048] matching the product code of the diversion configuration file with the reference product code;
[0049] The diversion profile corresponding to the target product code that successfully matches the reference product code is determined as the target diversion profile.
[0050] In a specific implementation, the product code in the diversion configuration file can be matched with the reference product code, that is, the product code in the diversion configuration file that successfully matches the reference product code can be obtained, and the application number generation operation can be performed for the business scenario product corresponding to the product code that successfully matches the reference product code. In this way, the corresponding target diversion configuration file can be adapted, and the application number generation operation can be implemented based on the target diversion configuration file.
[0051] Furthermore, when the product code in the diversion configuration file successfully matches the reference product code, the diversion configuration information that successfully matches the reference product code in the diversion configuration file can be obtained, and the application number generation operation can be implemented using the diversion configuration information.
[0052] In a specific implementation, when any product code in the diversion configuration file fails to match the reference product code, other diversion configuration files can be traversed.
[0053] In some possible examples, in step 201, before determining the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number, the following steps may also be included:
[0054] Detect whether there is a diversion configuration file, the diversion configuration file includes diversion configuration information of at least one business scenario product, and each diversion configuration information includes at least: a diversion switch identification number and a product code.
[0055] Among them, the business scenario products may include at least one of the following: credit business scenario products, cash withdrawal business scenario products, credit limit increase business scenario products, etc., which are not limited here. Product codes can be used to identify business scenario products. Different business scenario products correspond to different product codes. One business scenario product can correspond to a product code set, which may include at least one product code, and each product code in the at least one product code can identify the same business scenario product.
[0056] The shunt configuration information at least includes: a shunt switch identification number and a product code. Of course, the shunt configuration information may also include at least one of the following: a shunt ratio, a first time interval, etc., which are not limited here. The shunt switch identification number is used to select different shunt switches, and different shunt switches correspond to different shunt modes. For example, a shunt switch identification number of 0 indicates no shunt, a shunt switch identification number of 1 indicates limited shunt, and a shunt switch identification number of 2 indicates full shunt.
[0057] In an embodiment of the present application, different diversion configuration information can be set in advance for different business scenario products, and then these allocation configuration information can be compiled into a diversion configuration file, which is a diversion configuration .properties file. The diversion configuration file can include diversion configuration information of at least one business scenario product.
[0058] In a specific implementation, it is possible to detect whether there is a diversion configuration file at preset time intervals. The preset time interval can be pre-set or system default. When there are multiple diversion configuration files, the multiple diversion configuration files can be looped through, so that a configuration can be reused in a loop, reducing manual operations and improving the efficiency of generating application numbers.
[0059] Furthermore, when there is a diversion configuration file, the interface input parameter information of the interface used to generate the application number is obtained, and the interface input parameter information may include the reference product code. The interface input parameter information may also include at least one of the following signals: account number, application channel, contract number, partner code, batch, name, user unique code, etc., which are not limited here.
[0060] In a specific implementation, when there is a diversion configuration file, the interface input parameter information of the interface can be obtained, mainly obtaining the reference product code in the interface input parameter information, and the reference product code is used for subsequent product code matching.
[0061] In the specific implementation, if the diversion configuration file does not exist, it means that there is no demand for generating an application number, then all business application number generation operations are completed and the program terminates.
[0062] For example, when you need to generate application forms for cash withdrawal business scenarios and credit limit increase business scenarios, you do not need to generate credit application forms, but you need to generate all cash withdrawal application forms. When there is a demand for the generation of credit limit increase business scenario products, you can configure the diversion configuration file in the following format, as follows:
[0063] [{"ShuntSwitch":"0","productIds":"5103,5104,5105"},
[0064] {"ShuntSwitch":"2","productIds":"5106,5107,5108","nums":100},
[0065] {"ShuntSwitch":"1","productIds":"5116,5117,5118","percent":90,"nums":100},
[0066] {"ShuntSwitch":"1","productIds":"5126,5127,5128","percent":0,"nums":[{"num":5,"times":"08:10-11:10"}]}].
[0067] Among them, {"ShuntSwitch":"0","productIds":"5103,5104,5105"} is the diversion configuration information for the credit business scenario product, "ShuntSwitch":"0" means no diversion, and "productIds":"5103,5104,5105" corresponds to the product code of the credit business scenario product.
[0068] Among them, {"ShuntSwitch":"2","productIds":"5106,5107,5108",} is the diversion configuration information for the withdrawal scenario product, "ShuntSwitch":"2" means full diversion, "productIds":"5106,5107,5108" corresponds to the product code of the withdrawal scenario product, and "nums":100 means the number of diversions is 100, that is, the number of application numbers generated is 100.
[0069] Among them, {"ShuntSwitch":"1","productIds":"5116,5117,5118","percent":90,"nums":100} is the diversion configuration information for the product of the credit limit increase business scenario, "ShuntSwitch":"1" means limiting the diversion, "productIds":"5116,5117,5118" corresponds to the product code of the product of the credit limit increase business scenario, "percent":90 means the diversion ratio is 90%, "nums":100 means the diversion number is 100, then the number of application numbers generated is 100*90%=90.
[0070] {"ShuntSwitch":"1","productIds":"5126,5127,5128","percent":0,"nums":[{"num":5,"times":"08:10-11:10"}]} indicates the traffic diversion configuration information for the product in the credit limit increase business scenario. "ShuntSwitch":"1" indicates limiting the traffic diversion, and "productIds":"5126,5127,5128" corresponds to the credit limit increase. Product code of business scenario product, "percent":0 means the diversion ratio is 0, "num":5 means the diversion number is 5, "times":"08:10-11:10" means the time interval is 08:10-11:10, "nums":[{"num":5,"times":"08:10-11:10"} means the diversion number is 5 only in the time interval of 08:10-11:10. Since the diversion ratio is 0, no application number is generated for the credit limit increase business scenario product.
[0071] 202. Determine diversion configuration information of the target diversion configuration file, where the diversion configuration information includes a target product code and a target diversion switch identifier.
[0072] In the embodiment of the present application, the diversion configuration information at least includes: a target product code and a target diversion switch identifier. Of course, the diversion configuration information may also include at least one of the following: a diversion ratio, a first time interval, etc., which are not limited here. The target diversion switch identifier is used to select different diversion switches, and different diversion switches correspond to different diversion modes. For example, a diversion switch identifier of 0 indicates no diversion, a diversion switch identifier of 1 indicates limited diversion, and a diversion switch identifier of 2 indicates full diversion.
[0073] The target diversion configuration file may include corresponding diversion configuration information, and the diversion configuration information of the target diversion configuration file may be acquired.
[0074] 203. Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0075] In the embodiment of the present application, since the diversion configuration information includes a diversion switch identification number, the diversion switch identification number is used to select different diversion switches, and different diversion switches correspond to different diversion methods. Therefore, the corresponding diversion method can be selected based on the diversion switch identification number in the diversion configuration information to perform diversion and generate a corresponding application number. The target product is a business scenario product.
[0076] To illustrate with an example, in a specific implementation, in the risk control approval system business (such as a credit application), each customer's approval requires detailed application form details information, and the approval results of the customer's credit, withdrawal, and credit limit increase are judged based on the application form details information. Due to the different business scenarios of credit, withdrawal, and credit limit increase, the corresponding product numbers productIds of the application form details information are also different. The application form details information may include at least one of the following: ID number, name, occupation, work experience, family background, home address, credit report, bank card number, mobile phone number, etc., which are not limited here. Based on the above method in the embodiment of the present application, the corresponding diversion allocation information can be configured according to the product code, and the application form details of different scenarios can be used to generate application form numbers, thereby improving the utilization rate of the generated application form number.
[0077] In the specific implementation, when generating an application number, the different information of the applicant, such as personal information, loan amount, interest rate, repayment plan, etc., can be loaded into the corresponding table or context through the program, and the application number can be understood as the unique key to query this information. Furthermore, the applicant's detailed information, such as interest rate, repayment plan, etc., can be queried through the application number. For example, during the product testing process, the information of different applicants is required, and different application numbers need to be generated.
[0078] In some possible examples, the diversion configuration information further includes a first diversion number and a diversion limit parameter;
[0079] Then the above step 203, based on the interface and the target diversion switch identification number, performs an application number generation operation for the target product indicated by the target product code, can be implemented as follows:
[0080] When the target shunt switch identification number is the first shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the first shunt number and the shunt limit parameter.
[0081] Among them, the diversion configuration information also includes a first diversion number and a diversion limit parameter. The diversion limit parameter is used to limit the diversion ratio and / or the diversion period. The diversion limit parameter includes at least one of the following: diversion ratio, first time interval, etc., which are not limited here.
[0082] In the embodiment of the present application, when the target diversion switch identification number is the first diversion switch identification number, it can be considered that the diversion restriction needs to be implemented. For example, the first diversion switch identification number is 1. Furthermore, the application number generation operation can be performed on the target product indicated by the target product code through the interface according to the first diversion number and the diversion restriction parameter. In this way, not only can the function of generating the diversion application number can be realized, but also the specific number of generated application numbers can be determined according to the diversion configuration information, thereby reducing the number of times the interface for generating the application number is repeatedly called.
[0083] In some possible examples, the diversion restriction parameter includes a diversion ratio and / or a first time interval; the above step of performing an application number generation operation for the target product indicated by the target product code through the interface according to the first diversion number and the diversion restriction parameter can be implemented as follows:
[0084] In the case where the diversion restriction parameter includes the diversion ratio, determining a first application number quantity according to the first diversion number and the diversion ratio, and performing an application number generation operation for the target product indicated by the target product code through the interface according to the first application number quantity;
[0085] In the case where the diversion restriction parameter includes the first time interval, when the current time is in the first time interval, an application number generation operation is performed for the target product indicated by the target product code through the interface according to the first diversion number;
[0086] In the case where the diversion restriction parameters include the diversion ratio and the first time interval, when the current time is in the first time interval, the second application number quantity is determined according to the first diversion number and the diversion ratio, and the application number generation operation is performed on the target product indicated by the target product code through the interface according to the second application number.
[0087] In the embodiment of the present application, for the case where the diversion restriction parameter only includes the diversion ratio, the first application number quantity can be determined according to the first diversion number and the diversion ratio. Specifically, the first application number quantity = the first diversion number * the diversion ratio, and then the application number generation operation is performed on the target product indicated by the target product code through the interface according to the first application number quantity, that is, the application number corresponding to the first application number quantity can be completed for the target product. Of course, when the result of the first diversion number * the diversion ratio is not an integer, the result needs to be rounded to obtain the first application number quantity.
[0088] In the embodiment of the present application, for the case where the diversion restriction parameter includes the first time interval, it means that the application number generation operation is performed only in the first time interval. Furthermore, when the current time is in the first time interval, the application number generation operation can be performed on the target product indicated by the target product code through the interface according to the first diversion number, that is, the application number corresponding to the first diversion number can be completed for the target product; conversely, when the current time is not in the first time interval, the application number generation operation is not performed on the target product, so that the application number generation operation of the target product can be realized in the specified time period.
[0089] In the embodiment of the present application, for the case where the diversion restriction parameters include the diversion ratio and the first time interval, it means that the application number generation operation is only performed in the first time interval. When the current time is in the first time interval, the second application number quantity is determined according to the first diversion number and the diversion ratio. Specifically, the second application number quantity = the first diversion number * the diversion ratio, and the application number generation operation is performed on the target product according to the second application number quantity; conversely, when the current time is not in the first time interval, the application number generation operation is not performed on the target product. Of course, when the result of the second diversion number * the diversion ratio is not an integer, the result needs to be rounded to obtain the second application number quantity.
[0090] In some possible examples, the following steps may also be included:
[0091] Detecting whether the diversion configuration information meets a preset condition;
[0092] When the diversion configuration information meets the preset condition, the step of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion limit parameter is executed.
[0093] Among them, the preset conditions can be pre-set or system default.
[0094] In a specific implementation, it is possible to detect whether the diversion configuration information meets the preset conditions. When the diversion configuration information meets the preset conditions, it means that the subsequent application number generation operation can be executed, that is, the step of performing the application number generation operation on the target product indicated by the target product code through the interface according to the first diversion number and the diversion limit parameter. Conversely, when the diversion configuration information does not meet the preset conditions, it means that the conditions for generating an application number are not met, and the application number generation operation may not be performed on the target product.
[0095] In some possible examples, the above step of detecting whether the diversion configuration information meets the preset condition can be implemented as follows:
[0096] When the diversion configuration information does not include a diversion ratio, detecting whether the first diversion number is within a first preset range, and when the first diversion number is within the first preset range, determining that the diversion configuration information satisfies the preset condition;
[0097] When the diversion configuration information includes a diversion ratio, detect whether the first diversion number is in a second preset range and whether the diversion ratio is in a third preset range; when the first diversion number is in the second preset range and the diversion ratio is in the third preset range, determine that the diversion configuration information meets the preset conditions.
[0098] In the embodiment of the present application, the first preset range, the second preset range, and the third preset range can all be preset or set by system default. The first preset range and the second preset range can be the same or different.
[0099] In a specific implementation, when the diversion configuration information does not include the diversion ratio, it is possible to detect whether the first diversion number is within the first preset range. When the first diversion number is within the first preset range, it indicates that the configuration of the first diversion number is correct. Correct configuration can be understood as correct format and correct value range, and it can be determined that the diversion configuration information meets the preset conditions. Conversely, when the first diversion number is not within the first preset range, it can be understood as a format error or a value range error, and it is determined that the diversion configuration information does not meet the preset conditions. Among them, the format error may include at least one of the following situations: non-numeric value, decimal, negative number, imaginary number, empty (empty array or not configured), garbled code, etc., which are not limited here. A value range error can be understood as the configuration value of the first diversion number is not within the first preset range.
[0100] In a specific implementation, when the diversion configuration information includes a diversion ratio, it can be detected whether the first diversion number is in the second preset range and whether the diversion ratio is in the third preset range. When the first diversion number is in the second preset range and the diversion ratio is in the third preset range, it means that the format of the first diversion number is correct and the value range is correct, and the format of the diversion ratio is correct and the value range is correct, then it can be determined that the diversion configuration information meets the preset conditions. When the first diversion number is not in the second preset range, and / or the diversion ratio is not in the third preset range, it means that the format of the first diversion number is wrong or the value range is wrong, and the format of the diversion ratio is wrong or the value range is wrong, then it is determined that the diversion configuration information does not meet the preset conditions. Among them, the format error may include at least one of the following situations: non-numeric value, decimal, negative number, imaginary number, empty (empty array or not configured), garbled code, etc., which are not limited here. The value range error of the first diversion number can be understood as the configuration value of the first diversion number is not in the second preset range, and the value range error of the diversion ratio can be understood as the configuration value of the diversion ratio is not in the third preset range.
[0101] In this way, the correctness of the diversion configuration information can be detected to ensure the efficiency of the application number generation operation.
[0102] In some possible examples, the above step 203, based on the interface and the target diversion switch identification number, performs an application number generation operation for the target product indicated by the target product code, and is implemented as follows:
[0103] When the target shunt switch identification number is the second shunt switch identification number, the application number generation operation is not performed on the target product indicated by the target product code.
[0104] In the embodiment of the present application, the second shunt switch identification number can be preset or system default, and the second shunt switch identification number can include one or more shunt switch identification numbers, for example, the second shunt switch identification number is 0.
[0105] In a specific implementation, when the target diverter switch identification number is the second diverter switch identification number, it means that there is no need to generate an application number, that is, the application number generation operation may not be performed on the target product. In this way, products that do not require the application number generation operation may be excluded according to the configuration.
[0106] In some possible examples, the diversion configuration information further includes a second diversion number; the above step 203, based on the interface and the target diversion switch identification number, performs an application number generation operation for the target product indicated by the target product code, which can be implemented as follows:
[0107] When the target shunt switch identification number is the third shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the second shunt number.
[0108] In the embodiment of the present application, the third shunt switch identification number can be preset or system default, and the third shunt switch identification number can include one or more shunt switch identification numbers, for example, the third shunt switch identification number is 2.
[0109] In a specific implementation, when the target diversion switch identification number is the third diversion switch identification number, the application number generation operation can be performed on the target product according to the second diversion number, that is, the application number generation operation corresponding to the second diversion number can be completed for the target product. In this way, the specific number of application numbers to be generated can be determined according to the product configuration.
[0110] For example, in the embodiment of the present application, the application number generation operation can be completed according to the following steps: Figure 3 As shown, the details are as follows:
[0111] S1. Configure the diversion configuration .properties file (diversion configuration file);
[0112] S2. When an application number needs to be generated during the test, the interface for generating the application number is first called;
[0113] S3. During the calling process, the program will loop through the diversion configuration .properties file;
[0114] S4. If the flow configuration .properties file exists, the productIds in the flow configuration .properties file are compared and matched with the productIds of the interface input parameter used to generate the application number;
[0115] S5. When the comparison and match are successful, the value of ShuntSwitch is judged again. Specifically: when the shunt switch ShuntSwitch=0, the application number generation operation of the successfully matched product code is completed, and the application number generation operation is not performed, and the program terminates; when the shunt switch ShuntSwitch=2, all the successfully matched product codes need to perform the application number generation operation; when the shunt switch ShuntSwitch=1, percent is configured between 1-100 (including 1 and 100), the configured products are shunted in proportion to complete the application number generation operation, percent=0 or not configured and nums is configured and the format is correct, shunting is performed according to the shunt number within the time period configured by times to complete the application number generation operation, num is an empty array or not configured or is not within the time period, the application number generation operation is completed, and the application number generation operation is not performed, and the program terminates;
[0116] S6. When the comparison fails, continue to loop through the diversion configuration file until a successful match is found;
[0117] S7. If the flow configuration .properties file does not exist, the application number generation operation ends and the program terminates.
[0118] Specifically, Figure 3As shown, the interface for generating the application number is called, and then the diversion configuration is performed, and the diversion configuration file is traversed in a loop. If it is (Y), it is determined whether it is a product that meets the configuration, that is, the product code in the interface input parameter information is matched with the product code in the diversion configuration file. If the match fails (N), the diversion configuration file is continued to be traversed in a loop. If the match is successful (Y), ShuntSwitch = 0, no diversion is performed, and the application number generation operation is completed. ShuntSwitch = 2 means full diversion, and the application number generation operation is started. ShuntSwitch = 1 Then start the diversion (limit diversion), determine whether 0<diversion ratio<100, if yes, that is, percent is between 1-100, then divert according to the diversion ratio, start the application number generation operation, if not, percent is 0 or not configured, determine whether the diversion quantity>0, if yes, that is, nums is configured and the format is correct, divert according to the diversion number, determine whether it is within the configured time period, if (Y), start the application number generation operation, if (N), the application number generation operation ends, num is an empty array or not configured, then the application number generation operation ends.
[0119] In the embodiment of the present application, the number of calls from a single product to a combination of multiple products can be greatly reduced based on the shunt switch (ShuntSwitch), and the configurable design can configure the corresponding products according to business needs, thereby improving the utilization rate of the product and improving the testing efficiency.
[0120] The application number generation method described in the present application determines the target diversion configuration file and the diversion configuration information of the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number, wherein the diversion configuration information includes the target product code and the target diversion switch identifier, and performs an application number generation operation on the target product indicated by the target product code based on the interface and the target diversion switch identifier. On the one hand, the interface can be called only once to avoid repeated calls to the interface, and the application number generation operation is only performed on products corresponding to the product codes that meet the requirements. On the other hand, the diversion switch identifier can be used to implement the diversion function, which can not only identify products that do not need to perform the application number generation operation and products that need to perform the application number generation operation, but also implement the diversion application number generation operation and realize intelligent generation of application numbers.
[0121] With the above Figure 2 For the embodiments shown, please refer to Figure 4 , Figure 4 FIG. 1 is a flow chart of another method for generating an application number provided in an embodiment of the present application. As shown in the figure, the method for generating an application number includes:
[0122] 401. Determine a target diversion profile according to a product code of the diversion profile and a reference product code of an interface for generating an application number.
[0123] 402. Determine diversion configuration information of the target diversion configuration file, where the diversion configuration information includes a target product code and a target diversion switch identifier.
[0124] 403. Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0125] 404. When the target shunt switch identification number is the first shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the first shunt number and the shunt limit parameter.
[0126] 405. When the target shunt switch identification number is the second shunt switch identification number, do not perform an application number generation operation on the target product indicated by the target product code.
[0127] 406. When the target diversion switch identification number is the third diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code through the interface according to the second diversion number.
[0128] The specific description of the above steps 401 to 406 can be referred to as follows: Figure 2 The corresponding steps of the application number generation method shown are not repeated here.
[0129] The application number generation method described in the present application, on the one hand, can call the interface only once to avoid repeated calls to the interface, and only perform application number generation operations on products corresponding to the product codes that meet the requirements; on the other hand, the diversion function can be realized by using the diversion switch identification number, which can not only identify products that do not need to perform application number generation operations and products that need to perform application number generation operations, but also realize diversion of application number generation operations and realize intelligent generation of application numbers.
[0130] In accordance with the above embodiment, please refer to Figure 5 , Figure 5 : is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0131] Determine the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number;
[0132] Determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0133] Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0134] In some possible examples, the diversion configuration information further includes a first diversion number and a diversion limit parameter;
[0135] In terms of performing an application number generation operation for the target product indicated by the target product code based on the interface and the target diverter switch identification number, the program includes instructions for performing the following steps:
[0136] When the target shunt switch identification number is the first shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the first shunt number and the shunt limit parameter.
[0137] In some possible examples, the diversion restriction parameter includes a diversion ratio and / or a first time interval; in the operation of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion restriction parameter, the program includes instructions for executing the following steps:
[0138] In the case where the diversion restriction parameter includes the diversion ratio, determining a first application number quantity according to the first diversion number and the diversion ratio, and performing an application number generation operation for the target product indicated by the target product code through the interface according to the first application number quantity;
[0139] In the case where the diversion restriction parameter includes the first time interval, when the current time is in the first time interval, an application number generation operation is performed for the target product indicated by the target product code through the interface according to the first diversion number;
[0140] In the case where the diversion restriction parameters include the diversion ratio and the first time interval, when the current time is in the first time interval, the second application number quantity is determined according to the first diversion number and the diversion ratio, and the application number generation operation is performed on the target product indicated by the target product code through the interface according to the second application number.
[0141] In some possible examples, the above program also includes instructions for performing the following steps:
[0142] Detecting whether the diversion configuration information meets a preset condition;
[0143] When the diversion configuration information meets the preset condition, the step of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion limit parameter is executed.
[0144] In some possible examples, in terms of detecting whether the diversion configuration information satisfies a preset condition, the program includes instructions for executing the following steps:
[0145] When the diversion configuration information does not include a diversion ratio, detecting whether the first diversion number is within a first preset range, and when the first diversion number is within the first preset range, determining that the diversion configuration information satisfies the preset condition;
[0146] When the diversion configuration information includes a diversion ratio, detect whether the first diversion number is in a second preset range and whether the diversion ratio is in a third preset range; when the first diversion number is in the second preset range and the diversion ratio is in the third preset range, determine that the diversion configuration information meets the preset conditions.
[0147] In some possible examples, in the aspect of performing an application number generation operation for the target product indicated by the target product code based on the interface and the target diverter switch identification number, the program includes instructions for performing the following steps:
[0148] When the target shunt switch identification number is the second shunt switch identification number, the application number generation operation is not performed on the target product indicated by the target product code.
[0149] In some possible examples, the diversion configuration information further includes a second diversion number; in terms of performing an application number generation operation for the target product indicated by the target product code based on the interface and the target diversion switch identification number, the program includes instructions for performing the following steps:
[0150] When the target shunt switch identification number is the third shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the second shunt number.
[0151] In some possible examples, in determining the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number, the program includes instructions for performing the following steps:
[0152] matching the product code of the diversion configuration file with the reference product code;
[0153] The diversion profile corresponding to the target product code that successfully matches the reference product code is determined as the target diversion profile.
[0154] The electronic device described in the present application determines a target diversion configuration file and diversion configuration information of the target diversion configuration file according to a product code of the diversion configuration file and a reference product code of an interface for generating an application number, wherein the diversion configuration information includes a target product code and a target diversion switch identifier, and performs an application number generation operation on a target product indicated by the target product code based on the interface and the target diversion switch identifier. On the one hand, the interface can be called only once to avoid repeated calls to the interface, and the application number generation operation is performed only on products corresponding to product codes that meet the requirements. On the other hand, the diversion switch identifier can be used to implement a diversion function, which can not only identify products that do not need to perform an application number generation operation and products that need to perform an application number generation operation, but also implement a diversion application number generation operation and realize intelligent generation of application numbers.
[0155] Figure 6 6 is a functional unit block diagram of an application number generation device 600 involved in an embodiment of the present application. The application number generation device 600 comprises: a first generation unit 601, a determination unit 602, and a second generation unit 603, wherein:
[0156] The first generating unit 601 is used to determine a target diversion configuration file according to a product code of the diversion configuration file and a reference product code of an interface for generating an application number;
[0157] The determining unit 602 is used to determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0158] The second generating unit 603 is used to generate an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number.
[0159] Determine the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number;
[0160] Determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier;
[0161] Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
[0162] In some possible examples, the diversion configuration information further includes a first diversion number and a diversion limit parameter;
[0163] In the aspect of performing the operation of generating an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number, the second generating unit 603 is specifically used to:
[0164] When the target shunt switch identification number is the first shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the first shunt number and the shunt limit parameter.
[0165] In some possible examples, the diversion restriction parameter includes a diversion ratio and / or a first time interval; in terms of performing an application number generation operation for the target product indicated by the target product code through the interface according to the first diversion number and the diversion restriction parameter, the second generation unit 603 is specifically used to:
[0166] In the case where the diversion restriction parameter includes the diversion ratio, determining a first application number quantity according to the first diversion number and the diversion ratio, and performing an application number generation operation for the target product indicated by the target product code through the interface according to the first application number quantity;
[0167] In the case where the diversion restriction parameter includes the first time interval, when the current time is in the first time interval, an application number generation operation is performed for the target product indicated by the target product code through the interface according to the first diversion number;
[0168] In the case where the diversion restriction parameters include the diversion ratio and the first time interval, when the current time is in the first time interval, the second application number quantity is determined according to the first diversion number and the diversion ratio, and the application number generation operation is performed on the target product indicated by the target product code through the interface according to the second application number.
[0169] In some possible examples, the application number generating device 600 is further specifically used for:
[0170] Detecting whether the diversion configuration information meets a preset condition;
[0171] When the diversion configuration information meets the preset condition, the step of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion limit parameter is executed.
[0172] In some possible examples, in terms of detecting whether the diversion configuration information meets a preset condition, the application number generating device 600 is specifically used to:
[0173] When the diversion configuration information does not include a diversion ratio, detecting whether the first diversion number is within a first preset range, and when the first diversion number is within the first preset range, determining that the diversion configuration information satisfies the preset condition;
[0174] When the diversion configuration information includes a diversion ratio, detect whether the first diversion number is in a second preset range and whether the diversion ratio is in a third preset range; when the first diversion number is in the second preset range and the diversion ratio is in the third preset range, determine that the diversion configuration information meets the preset conditions.
[0175] In some possible examples, in the aspect of performing the application number generation operation for the target product indicated by the target product code based on the interface and the target diversion switch identification number, the second generation unit 603 is specifically used to:
[0176] When the target shunt switch identification number is the second shunt switch identification number, the application number generation operation is not performed on the target product indicated by the target product code.
[0177] In some possible examples, the diversion configuration information further includes a second diversion number; in terms of performing an application number generation operation for the target product indicated by the target product code based on the interface and the target diversion switch identification number, the second generation unit 603 is specifically used to:
[0178] When the target shunt switch identification number is the third shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the second shunt number.
[0179] In some possible examples, in determining the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number, the determining unit 602 is specifically configured to:
[0180] matching the product code of the diversion configuration file with the reference product code;
[0181] The diversion profile corresponding to the target product code that successfully matches the reference product code is determined as the target diversion profile.
[0182] The application number generating device described in the present application determines the target diversion configuration file and the diversion configuration information of the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number, wherein the diversion configuration information includes the target product code and the target diversion switch identification number, and performs an application number generating operation on the target product indicated by the target product code based on the interface and the target diversion switch identification number. On the one hand, the interface can be called only once to avoid repeated calls to the interface, and the application number generating operation is only performed on products corresponding to the product codes that meet the requirements. On the other hand, the diversion switch identification number can be used to implement the diversion function, which can not only identify products that do not need to perform the application number generating operation and products that need to perform the application number generating operation, but also implement the diversion application number generating operation and realize the intelligent generation of application numbers.
[0183] It can be understood that the functions of each program module of the application number generating device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0184] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0185] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0186] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0187] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the system embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the system or unit can be electrical or other forms.
[0189] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0191] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0192] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0193] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for generating an application number, characterized in that: The method comprises: Determine the target diversion profile according to the product code of the diversion profile and the reference product code of the interface for generating the application number; Determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier; Based on the interface and the target diversion switch identification number, an application number generation operation is performed for the target product indicated by the target product code.
2. The method according to claim 1, characterized in that The diversion configuration information also includes a first diversion number and a diversion limit parameter; the operation of generating an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number includes: When the target shunt switch identification number is the first shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the first shunt number and the shunt limit parameter.
3. The method according to claim 2, characterized in that The diversion restriction parameter includes a diversion ratio and / or a first time interval; the operation of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion restriction parameter includes: In the case where the diversion restriction parameter includes the diversion ratio, determining a first application number quantity according to the first diversion number and the diversion ratio, and performing an application number generation operation for the target product indicated by the target product code through the interface according to the first application number quantity; In the case where the diversion restriction parameter includes the first time interval, when the current time is in the first time interval, according to the first diversion number, an application number generation operation is performed for the target product indicated by the target product code through the interface; In the case where the diversion restriction parameters include the diversion ratio and the first time interval, when the current time is in the first time interval, the second application number quantity is determined according to the first diversion number and the diversion ratio, and based on the second application number quantity, the application number generation operation is performed for the target product indicated by the target product code through the interface.
4. The method according to claim 3, characterized in that The method further comprises: Detecting whether the diversion configuration information meets a preset condition; When the diversion configuration information meets the preset condition, the step of generating an application number for the target product indicated by the target product code through the interface according to the first diversion number and the diversion limit parameter is executed.
5. The method according to claim 4, characterized in that The detecting whether the diversion configuration information meets a preset condition includes: When the diversion configuration information does not include a diversion ratio, detecting whether the first diversion number is within a first preset range, and when the first diversion number is within the first preset range, determining that the diversion configuration information satisfies the preset condition; When the diversion configuration information includes a diversion ratio, detect whether the first diversion number is in a second preset range and whether the diversion ratio is in a third preset range; when the first diversion number is in the second preset range and the diversion ratio is in the third preset range, determine that the diversion configuration information meets the preset conditions.
6. The method according to any one of claims 1 to 5, characterized in that: The step of generating an application number for the target product indicated by the target product code based on the interface and the target shunt switch identification number includes: When the target shunt switch identification number is the second shunt switch identification number, the application number generation operation is not performed on the target product indicated by the target product code.
7. The method according to any one of claims 1 to 6, characterized in that: The diversion configuration information also includes a second diversion number; the operation of generating an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number includes: When the target shunt switch identification number is the third shunt switch identification number, an application number generation operation is performed on the target product indicated by the target product code through the interface according to the second shunt number.
8. The method according to any one of claims 1 to 7, characterized in that: The step of determining the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number comprises: matching the product code of the diversion configuration file with the reference product code; The diversion profile corresponding to the target product code that successfully matches the reference product code is determined as the target diversion profile.
9. A device for generating an application number, characterized in that: The device comprises: a first generating unit, a determining unit, and a second generating unit, wherein: The first generating unit is used to determine the target diversion configuration file according to the product code of the diversion configuration file and the reference product code of the interface for generating the application number; The determining unit is used to determine the diversion configuration information of the target diversion configuration file, wherein the diversion configuration information includes a target product code and a target diversion switch identifier; The second generating unit is used to generate an application number for the target product indicated by the target product code based on the interface and the target diversion switch identification number.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The invention comprises a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the method as claimed in any one of claims 1 to 8.
