Methods, devices, equipment, and media for intercepting outbound calls based on table partitioning strategy
By adopting a number outbound call interception method based on a table partitioning strategy, the problem of low efficiency in full-volume number deduplication detection for AI tasks is solved. This method achieves efficient and accurate identification and interception of duplicate numbers, avoids user harassment and complaint risks, and improves the efficiency of number deduplication detection and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI PINKRYPTON INFORMATION TECH CO LTD
- Filing Date
- 2023-07-12
- Publication Date
- 2026-06-30
AI Technical Summary
Existing AI-powered full-volume deduplication detection for numbers suffers from performance bottlenecks and low efficiency, making it difficult to efficiently and accurately identify and block duplicate numbers, leading to user harassment and increased risk of complaints.
A number outbound call interception method based on table partitioning strategy is adopted. It receives and verifies outbound call number files, parses and preprocesses batch numbers, performs grouping and deduplication verification based on preset table partitioning rules, identifies and intercepts duplicate numbers, and generates error reports.
It enables efficient and accurate identification and blocking of duplicate numbers, avoiding user harassment, reducing the risk of complaints, and improving the efficiency of number deduplication detection and user experience.
Smart Images

Figure CN116866474B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data deduplication, and in particular to a method, apparatus, device, and medium for intercepting outbound calls based on a table partitioning strategy. Background Technology
[0002] Data deduplication refers to finding duplicate data in a collection of data files and deleting the duplicates, keeping only unique data units, thereby eliminating redundant data. With the development of technology, data deduplication is being used more and more widely in business applications, and it also has important applications in the full detection of task numbers.
[0003] Existing AI (Artificial Intelligence) task-based full-volume deduplication detection mainly utilizes enterprises to create intelligent outbound calling tasks, import numbers, and perform full-volume deduplication verification. Full-volume deduplication involves detecting duplicate numbers based on a large amount of data. However, existing AI task-based full-volume deduplication detection suffers from performance bottlenecks and low efficiency. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for blocking outbound calls based on a table partitioning strategy. This method can import a large number of numbers for deduplication detection, efficiently and accurately determining whether imported numbers are duplicates and blocking duplicate numbers to prevent harassment of users and avoid the risk of complaints. The specific solution is as follows:
[0005] Firstly, this application discloses a method for blocking outbound calls based on a table partitioning strategy, including:
[0006] Receive the outbound number file sent by the client, and verify the outbound number file based on preset verification rules to generate the corresponding verification result;
[0007] Based on the verification results, the outbound call number file is parsed, and the parsed batch numbers are preprocessed to obtain preprocessed batch numbers;
[0008] The preprocessed batch numbers are grouped according to preset table partitioning rules, and the grouped batch numbers are deduplicated to identify duplicate numbers in the grouped batch numbers.
[0009] Outbound calls to the duplicate numbers are blocked, an error report corresponding to the duplicate numbers is generated, and the error report is sent to the client.
[0010] Optionally, the receiving client sends an outbound number file, and verifies the outbound number file based on preset verification rules to generate a corresponding verification result, including:
[0011] Receive the outbound call number file sent by the client and verify the file upload frequency of the client;
[0012] If the file upload frequency of the client is not greater than the preset frequency threshold, then verify whether the outbound call number file is a duplicate received file;
[0013] If the outbound number file is not a duplicate received file, then the file format of the outbound number file is verified, and a verification result corresponding to the outbound number file is generated.
[0014] Optionally, parsing the outbound call number file based on the verification result includes:
[0015] If the verification result indicates that the outbound number file has passed verification, then the outbound number file is parsed to obtain the batch numbers in the outbound number file;
[0016] If the verification result indicates that the outbound number file has failed verification, a new outbound number file will be received again.
[0017] Optionally, the preprocessing of the parsed batch numbers to obtain preprocessed batch numbers includes:
[0018] The batch numbers obtained through parsing are preprocessed by performing special character removal, number format verification, and risk control rule verification operations to obtain preprocessed batch numbers.
[0019] Optionally, before grouping the preprocessed batch numbers based on preset table partitioning rules and performing deduplication checks on the grouped batch numbers to determine duplicate numbers in the grouped batch numbers, the method further includes:
[0020] Determine whether the preprocessed batch numbers are encrypted numbers. If so, determine that the table partitioning strategy is an encrypted table partitioning strategy; otherwise, determine that the table partitioning strategy is a plaintext table partitioning strategy.
[0021] Optionally, the step of grouping the preprocessed batch numbers based on preset table partitioning rules and performing deduplication checks on the grouped batch numbers to determine duplicate numbers in the grouped batch numbers includes:
[0022] Based on the table partitioning strategy, the preprocessed batch numbers are grouped to obtain grouped batch numbers;
[0023] Determine whether the client's identifier ID is the first identifier ID to appear. If so, create a first data table based on the identifier ID and write the grouped number into the first data table.
[0024] If not, then determine the second data table corresponding to the identifier ID, and perform multi-threaded deduplication verification on the second data table according to the grouped batch numbers to determine whether there are duplicate numbers;
[0025] If they exist, the update count of the duplicate numbers in the second data table is updated, and the duplicate numbers are deduplicated.
[0026] If it does not exist, the grouped number is written into the second data table.
[0027] Optionally, the outbound call interception method based on the table partitioning strategy further includes:
[0028] Based on a preset table partitioning strategy, the batch numbers in the outbound call number file are saved to a preset database to achieve persistent storage of the batch numbers.
[0029] Secondly, this application discloses a number outbound call interception device based on a table partitioning strategy, comprising:
[0030] The file verification module is used to receive outbound number files sent by the client and verify the outbound number files based on preset verification rules to generate corresponding verification results.
[0031] The file parsing module is used to parse the outbound number file based on the verification result, and to preprocess the parsed batch numbers to obtain preprocessed batch numbers;
[0032] The duplicate number determination module is used to group the preprocessed batch numbers based on preset table partitioning rules, and to perform deduplication verification on the grouped batch numbers to determine the duplicate numbers in the grouped batch numbers;
[0033] The number blocking module is used to block outbound calls from the duplicate numbers;
[0034] The report generation module is used to generate an error report corresponding to the duplicate number and send the error report to the client.
[0035] Thirdly, this application discloses an electronic device, including:
[0036] Memory, used to store computer programs;
[0037] A processor is used to execute the computer program to implement the aforementioned method for blocking outbound calls based on a table partitioning strategy.
[0038] Fourthly, this application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned method for intercepting outbound calls based on a table partitioning strategy.
[0039] In this application, the outbound call number file sent by the client is first received, and the file is verified based on a preset verification rule to generate a corresponding verification result. Then, the file is parsed based on the verification result, and the parsed batch of numbers is preprocessed to obtain a preprocessed batch of numbers. The preprocessed batch of numbers is then grouped based on a preset table partitioning rule, and deduplication checks are performed on the grouped batch of numbers to identify duplicate numbers. Finally, outbound calls to the duplicate numbers are blocked, an error report corresponding to the duplicate numbers is generated, and the error report is sent to the client. Therefore, the outbound call blocking method based on the table partitioning strategy described in this application can, after receiving and processing the outbound call number file, parse the file based on the verification result to obtain a corresponding batch of numbers, and after preprocessing the batch of numbers, group and deduplication checks are performed on the batch of numbers according to preset table partitioning rules to achieve deduplication of duplicate numbers, and outbound calls to duplicate numbers are blocked. A corresponding error report is generated based on the duplicate numbers and sent to the client so that the client can understand the deduplication status based on the received error report. This allows for the import of a large number of phone numbers for deduplication checks, efficiently and accurately determining whether imported numbers are duplicates and blocking duplicate numbers to prevent harassment of users and avoid the risk of complaints. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0041] Figure 1 A flowchart of a number outbound call interception method based on a table partitioning strategy provided in this application;
[0042] Figure 2 A timing diagram of a number outbound call interception method based on a table partitioning strategy provided in this application;
[0043] Figure 3 A node interaction diagram for a number outbound call interception method based on a table partitioning strategy provided in this application;
[0044] Figure 4A schematic diagram of a number outbound call interception device based on a table partitioning strategy provided in this application;
[0045] Figure 5 This application provides a structural diagram of an electronic device. Detailed Implementation
[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] See Figure 1 As shown in the figure, this invention discloses a method for blocking outbound calls based on a table partitioning strategy, including:
[0048] Step S11: Receive the outbound number file sent by the client, and verify the outbound number file based on the preset verification rules to generate the corresponding verification result.
[0049] In this embodiment, the system receives an outbound number file sent by a client and verifies the outbound number file based on preset verification rules to generate a corresponding verification result. This includes: receiving the outbound number file sent by the client and verifying the client's file upload frequency; if the client's file upload frequency is not greater than a preset frequency threshold, verifying whether the outbound number file is a duplicate file; if the outbound number file is not a duplicate file, verifying the file format of the outbound number file and generating a verification result corresponding to the outbound number file. That is, the user client can create a smart outbound call task and select the full task deduplication option when creating the task, creating the task and importing numbers, i.e., uploading the outbound number file (EXECL). After successful upload, the server can determine whether it has received the outbound number file. If the server receives the outbound number file, it can perform logical verification on the outbound number file and the client that sent it. It should be noted that the logical verification first requires verifying the frequency of file uploads by the client. Since there is a limit to the number of times each client can upload files simultaneously, it is necessary to determine whether the client's file upload frequency exceeds a preset threshold. If it exceeds the preset threshold, an error alarm should be issued. If it does not exceed the preset threshold, the received outbound number file needs to be verified to determine whether the received outbound number file is a duplicate file that has already been received. Furthermore, after receiving and processing the outbound number file, it is saved to a preset database. Therefore, if the received outbound number file is a duplicate file, the numbers in the file have already been saved to the database. Processing duplicate files again would increase the system's workload and consume system resources. Therefore, determining whether the received outbound number file is a duplicate file avoids processing already received duplicate files, effectively saving system resources. If the received outbound number file is the first time it has been received, the file format of the outbound number file needs to be verified to determine whether the uploaded outbound number file has a file format error, that is, to determine whether the uploaded outbound number file is an EXECL file, and generate the corresponding verification result. If the outbound number file has a correct file format, a verification result indicating that the outbound number file has no file format problem is generated; if the outbound number file has an abnormal file format, a verification result indicating that the outbound number file has an abnormal file format is generated.
[0050] Step S12: Based on the verification results, parse the outbound call number file and preprocess the parsed batch numbers to obtain preprocessed batch numbers.
[0051] In this embodiment, parsing the outbound number file based on the verification result includes: if the verification result indicates that the outbound number file passes verification, then the outbound number file is parsed to obtain the batch numbers in the outbound number file; if the verification result indicates that the outbound number file fails verification, then a new outbound number file is received again. That is, if the verification result indicates that the file format of the outbound number file is correct, the outbound number file can be directly parsed to obtain the batch numbers contained in the outbound number file. It should be noted that the batch numbers refer to all numbers contained in the outbound number file; if the verification result indicates that the file format of the outbound number file is abnormal, then it is necessary to jump to the outbound number file sent by the receiving client and verify the outbound number file based on preset verification rules to generate the corresponding verification result, so as to retry receiving the outbound number file.
[0052] It should be noted that the batch of numbers obtained through parsing undergoes preprocessing to obtain preprocessed batch numbers. This preprocessing includes: performing special character removal, number format verification, and risk control rule verification operations on the batch of numbers obtained through parsing. In other words, after obtaining the batch of numbers from the outbound call number file, the batch numbers need to be preprocessed. This involves removing any special characters that may exist in the batch numbers through special character removal, verifying the correctness of the number format (e.g., whether the number of digits is correct), and verifying the presence of any numbers with violations through risk control rule verification.
[0053] Step S13: Group the preprocessed batch numbers based on preset table partitioning rules, and perform deduplication verification on the grouped batch numbers to determine the duplicate numbers in the grouped batch numbers.
[0054] In this embodiment, before grouping the preprocessed batch numbers according to preset table partitioning rules and performing deduplication verification on the grouped batch numbers to determine duplicate numbers, the method further includes: determining whether the preprocessed batch numbers are encrypted numbers. If so, the table partitioning strategy is determined to be an encrypted table partitioning strategy; otherwise, the table partitioning strategy is determined to be a plaintext table partitioning strategy. That is, different user terminals have different needs; some user terminals require number encryption, while others do not. Therefore, based on the user terminal's needs, after determining the preprocessed batch numbers, it is necessary to determine whether to encrypt the preprocessed batch numbers. If encryption is required, the table partitioning strategy is determined to be an encrypted table partitioning strategy; otherwise, the table partitioning strategy is determined to be a plaintext table partitioning strategy. It should be noted that the table partitioning strategy is a strategy of grouping batch numbers according to the data table, and the encrypted table partitioning strategy is a strategy of grouping according to the data table and the formula table_${pid}. The plaintext table partitioning strategy is a strategy of grouping according to the data table and the formula table_${pid}_${num}. It should be noted that pid in the formula is the enterprise ID, and num is the last digit of each number in the batch.
[0055] It should be noted that grouping the preprocessed batch numbers based on preset table partitioning rules and performing deduplication checks on the grouped batch numbers to determine duplicate numbers includes: grouping the preprocessed batch numbers based on the table partitioning strategy to obtain grouped batch numbers; determining whether the client's identifier ID is the first occurrence of the identifier ID; if so, creating a first data table based on the identifier ID and writing the grouped numbers into the first data table; if not, determining a second data table corresponding to the identifier ID and performing multi-threaded deduplication checks on the second data table based on the grouped batch numbers to determine whether duplicate numbers exist; if they exist, updating the update count of the duplicate numbers in the second data table and performing deduplication operations on the duplicate numbers; if they do not exist, writing the grouped numbers into the second data table. In other words, after determining the table partitioning strategy, the preprocessed batch numbers need to be grouped according to the strategy. It should be noted that there might be cases where the client is uploading outbound call number files for the first time. If this is the client's first upload, the default database will not have a corresponding data table for that client, requiring the creation of a new data table. Therefore, to determine if this is the client's first upload, the client's identifier ID needs to be verified to see if it is a first-time occurrence. If so, a data table corresponding to that identifier ID is created, and the batch numbers are written into the created data table based on the determined partitioning strategy, and then grouped. If the client is uploading a batch file for the first time, all numbers in the first batch upload will be first-time occurrences, and this data table needs to be saved to the default database. If the identifier ID is not a first-time occurrence, a data table corresponding to that identifier ID needs to be determined, and the batch numbers in the data table undergo multi-threaded deduplication verification to determine if duplicate numbers exist. If duplicate numbers exist, the number of times a number appears in the data table is updated based on the duplicate number, that is, the number of times a duplicate number appears is updated by +1. If no duplicate numbers exist, the newly appearing number is written into the data table.
[0056] Step S14: Block outbound calls to the duplicate number, generate an error report corresponding to the duplicate number, and send the error report to the client.
[0057] In this embodiment, outbound calls to the duplicate numbers are blocked, an error report corresponding to the duplicate number is generated, and the error report is sent to the client. That is, if a duplicate number is identified, outbound calls to that number need to be blocked to prevent them from being called. A corresponding error report is generated based on the duplicate number and sent to the client so that the client can understand the intelligent outbound call status based on the received error report.
[0058] It should be noted that the outbound call interception method based on the table partitioning strategy further includes: saving the batch of numbers in the outbound call number file to a preset database based on a preset table partitioning strategy, so as to achieve persistent storage of the batch of numbers. That is, the generated data table can be persistently stored through a DB (DataBase) database so that the data table can be updated after receiving a new outbound call number file.
[0059] Therefore, in this embodiment, the outbound call number file sent by the client is first received, and the outbound call number file is verified based on a preset verification rule to generate a corresponding verification result. Then, the outbound call number file is parsed based on the verification result, and the parsed batch of numbers is preprocessed to obtain a preprocessed batch of numbers. The preprocessed batch of numbers is grouped based on a preset table partitioning rule, and deduplication verification is performed on the grouped batch of numbers to identify duplicate numbers. Finally, outbound calls to the duplicate numbers are blocked, an error report corresponding to the duplicate numbers is generated, and the error report is sent to the client. Thus, the outbound call blocking method based on table partitioning strategy described in this application can, after receiving and processing the outbound call number file, parse the outbound call number file based on the verification result to obtain a corresponding batch of numbers. After preprocessing the batch of numbers, the batch of numbers is grouped and deduplicated based on preset table partitioning rules to achieve deduplication of duplicate numbers, and outbound calls to duplicate numbers are blocked. A corresponding error report is generated based on the duplicate numbers and sent to the client so that the client can understand the deduplication status based on the received error report. In this way, on the one hand, a large number of numbers can be imported and deduplicated using a table partitioning strategy to efficiently and accurately determine whether the imported numbers are duplicates, thus improving the efficiency of number deduplication detection. On the other hand, duplicate numbers can be blocked to prevent outbound calls from duplicate numbers, avoid harassing users, improve the user experience, and avoid the risk of being complained about.
[0060] See Figure 2 as well as Figure 3 As shown, this embodiment of the invention discloses a specific implementation method for blocking outbound calls based on a table partitioning strategy, including:
[0061] like Figure 3 As shown, after creating a smart outbound call task, the client sends a smart outbound call request containing the outbound number file to the server gateway. Upon receiving the smart outbound call request, the server gateway extracts the outbound number file from the request and then performs logical verification on the outbound number file and the client that sent it. Figure 2 As shown, the frequency of file uploads by the client is first verified to determine if it exceeds a preset frequency threshold. If it does, an error alarm is triggered. If it does not exceed the threshold, the received outbound number file is verified to determine if it is a previously received duplicate. If the received outbound number file is the first received file, its file format is verified to determine if there are any format errors. If the file format is correct, a verification result indicating no format issues is generated. If the file format is abnormal, a verification result indicating an abnormal file format is generated. If the verification passes, the batch of numbers is preprocessed, and the partitioning strategy is determined to be either encrypted or plaintext, allowing the batch of numbers to be grouped according to the partitioning strategy. Furthermore, the client's identifier ID is verified to determine if it is a first-time occurrence. If so, a data table corresponding to the identifier ID is created, and batch numbers are written into the created data table based on a determined table partitioning strategy and grouped. If the client is uploading batch files for the first time, the data table is saved to a preset database. If the identifier ID is not a first-time occurrence, a data table corresponding to the identifier ID is determined, and the batch numbers in the data table undergo multi-threaded deduplication verification to determine if duplicate numbers exist. If duplicate numbers exist, the number occurrence count recorded in the data table is updated based on the duplicate numbers; otherwise, the newly appearing numbers are written into the data table. Finally, outbound calls to duplicate numbers are blocked, and an error report is generated and sent to the client.
[0062] See Figure 4 As shown, this embodiment of the invention discloses a number outbound call interception device based on a table partitioning strategy, comprising:
[0063] The file verification module 11 is used to receive outbound number files sent by the client and verify the outbound number files based on preset verification rules to generate corresponding verification results.
[0064] The file parsing module 12 is used to parse the outbound call number file based on the verification result, and to preprocess the parsed batch numbers to obtain preprocessed batch numbers;
[0065] The duplicate number determination module 13 is used to group the preprocessed batch numbers based on a preset table partitioning rule, and to perform deduplication verification on the grouped batch numbers to determine the duplicate numbers in the grouped batch numbers;
[0066] Number blocking module 14 is used to block outbound calls from the duplicate numbers;
[0067] The report generation module 15 is used to generate an error report corresponding to the duplicate number and send the error report to the client.
[0068] Therefore, in this embodiment, the outbound call number file sent by the client is first received, and the outbound call number file is verified based on a preset verification rule to generate a corresponding verification result. Then, the outbound call number file is parsed based on the verification result, and the parsed batch of numbers is preprocessed to obtain a preprocessed batch of numbers. The preprocessed batch of numbers is grouped based on a preset table partitioning rule, and deduplication verification is performed on the grouped batch of numbers to identify duplicate numbers. Finally, outbound calls to the duplicate numbers are blocked, an error report corresponding to the duplicate numbers is generated, and the error report is sent to the client. Thus, the outbound call blocking method based on table partitioning strategy described in this application can, after receiving and processing the outbound call number file, parse the outbound call number file based on the verification result to obtain a corresponding batch of numbers. After preprocessing the batch of numbers, the batch of numbers is grouped and deduplicated based on preset table partitioning rules to achieve deduplication of duplicate numbers, and outbound calls to duplicate numbers are blocked. A corresponding error report is generated based on the duplicate numbers and sent to the client so that the client can understand the deduplication status based on the received error report. This allows for the import of a large number of phone numbers for deduplication checks, efficiently and accurately determining whether imported numbers are duplicates and blocking duplicate numbers to prevent harassment of users and avoid the risk of complaints.
[0069] In some embodiments, the file verification module 11 may specifically include:
[0070] The frequency verification unit is used to receive the outbound call number file sent by the client and verify the file upload frequency of the client;
[0071] The duplicate reception verification unit is used to verify whether the outbound call number file is a duplicate reception file if the file upload frequency of the client is not greater than a preset frequency threshold.
[0072] The format verification unit is used to verify the file format of the outbound number file if the outbound number file is not a duplicate received file, and generate a verification result corresponding to the outbound number file.
[0073] In some embodiments, the file parsing module 12 may specifically include:
[0074] The number parsing unit is used to parse the outbound number file to obtain a batch of numbers in the outbound number file if the verification result indicates that the outbound number file has passed the verification.
[0075] The file receiving unit is configured to receive a new outbound number file if the verification result indicates that the outbound number file has failed verification.
[0076] In some embodiments, the file parsing module 12 may specifically include:
[0077] The number preprocessing unit is used to preprocess the batch numbers obtained through parsing by performing special character removal operations, number format verification operations, and risk control rule verification operations to obtain preprocessed batch numbers.
[0078] In some embodiments, the number outbound call interception device based on the table partitioning strategy may further include:
[0079] The table partitioning strategy determination unit is used to determine whether the preprocessed batch number is an encrypted number. If so, the table partitioning strategy is determined to be an encrypted table partitioning strategy; otherwise, the table partitioning strategy is determined to be a plaintext table partitioning strategy.
[0080] In some embodiments, the duplicate number determination module 13 may specifically include:
[0081] The number grouping unit groups the preprocessed batch numbers based on the table partitioning strategy to obtain the grouped batch numbers;
[0082] The first number writing unit is used to determine whether the client's identifier ID is the first identifier ID to appear. If so, a first data table is created based on the identifier ID, and the grouped number is written into the first data table.
[0083] The duplicate number determination unit is used to determine, if not, a second data table corresponding to the identifier ID, and to perform multi-threaded deduplication verification on the second data table according to the grouped batch numbers to determine whether duplicate numbers exist;
[0084] The number deduplication unit is used to update the update count of the duplicate numbers in the second data table if they exist, and to perform a deduplication operation on the duplicate numbers.
[0085] The second number writing unit is used to write the grouped number into the second data table if it does not exist.
[0086] In some embodiments, the number outbound call interception device based on the table partitioning strategy may further include:
[0087] The data storage unit is used to save the batch numbers in the outbound number file to a preset database based on a preset table partitioning strategy, so as to achieve persistent storage of the batch numbers.
[0088] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0089] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the number outbound call interception method based on a table partitioning strategy disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.
[0090] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0091] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0092] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the number outbound call interception method based on a table partitioning strategy disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0093] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned method for intercepting outbound calls based on a table partitioning strategy. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0094] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0095] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0096] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0097] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0098] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for blocking outbound calls based on a table partitioning strategy, characterized in that, include: Receive the outbound number file sent by the client, and verify the outbound number file based on preset verification rules to generate the corresponding verification result; Based on the verification results, the outbound call number file is parsed, and the parsed batch numbers are preprocessed to obtain preprocessed batch numbers; The preprocessed batch numbers are grouped according to preset table partitioning rules, and the grouped batch numbers are deduplicated to identify duplicate numbers in the grouped batch numbers. The system intercepts outbound calls from the duplicate numbers, generates an error report corresponding to the duplicate numbers, and sends the error report to the client. The step of grouping the preprocessed batch numbers based on preset table partitioning rules and performing deduplication checks on the grouped batch numbers to determine duplicate numbers in the grouped batch numbers further includes: Determine whether the preprocessed batch numbers are encrypted numbers. If yes, determine that the table partitioning strategy is an encrypted table partitioning strategy. If no, determine that the table partitioning strategy is a plaintext table partitioning strategy. The encrypted table partitioning strategy is a strategy of partitioning the encrypted numbers in the preprocessed batch numbers based on the enterprise ID. The plaintext table partitioning strategy is a strategy of partitioning the preprocessed batch numbers based on the enterprise ID and the last digit of the number. The step of grouping the preprocessed batch numbers based on preset table partitioning rules and performing deduplication checks on the grouped batch numbers to determine duplicate numbers in the grouped batch numbers includes: Based on the table partitioning strategy, the preprocessed batch numbers are grouped to obtain grouped batch numbers; Determine whether the client's identifier ID is the first identifier ID to appear. If so, create a first data table based on the identifier ID and write the grouped number into the first data table. If not, then determine the second data table corresponding to the identifier ID, and perform multi-threaded deduplication verification on the second data table according to the grouped batch numbers to determine whether there are duplicate numbers; If they exist, the update count of the duplicate numbers in the second data table is updated, and the duplicate numbers are deduplicated. If it does not exist, the grouped number is written into the second data table.
2. The method for blocking outbound calls based on a table partitioning strategy according to claim 1, characterized in that, The receiving client sends an outbound call number file, and verifies the outbound call number file based on preset verification rules to generate a corresponding verification result, including: Receive the outbound call number file sent by the client and verify the file upload frequency of the client; If the file upload frequency of the client is not greater than the preset frequency threshold, then verify whether the outbound call number file is a duplicate received file; If the outbound number file is not a duplicate received file, then the file format of the outbound number file is verified, and a verification result corresponding to the outbound number file is generated.
3. The outbound call interception method based on table partitioning strategy according to claim 1, characterized in that, The step of parsing the outbound call number file based on the verification result includes: If the verification result indicates that the outbound number file has passed verification, then the outbound number file is parsed to obtain the batch numbers in the outbound number file; If the verification result indicates that the outbound number file has failed verification, a new outbound number file will be received again.
4. The method for blocking outbound calls based on a table partitioning strategy according to claim 1, characterized in that, The preprocessing of the parsed batch numbers to obtain preprocessed batch numbers includes: The batch numbers obtained through parsing are preprocessed by performing special character removal, number format verification, and risk control rule verification operations to obtain preprocessed batch numbers.
5. The method for intercepting outbound calls based on a table partitioning strategy according to any one of claims 1 to 4, characterized in that, Also includes: Based on a preset table partitioning strategy, the batch numbers in the outbound call number file are saved to a preset database to achieve persistent storage of the batch numbers.
6. A number outbound call interception device based on a table partitioning strategy, characterized in that, include: The file verification module is used to receive outbound number files sent by the client and verify the outbound number files based on preset verification rules to generate corresponding verification results. The file parsing module is used to parse the outbound number file based on the verification result, and to preprocess the parsed batch numbers to obtain preprocessed batch numbers; The duplicate number determination module is used to group the preprocessed batch numbers based on preset table partitioning rules, and to perform deduplication verification on the grouped batch numbers to determine the duplicate numbers in the grouped batch numbers; The number blocking module is used to block outbound calls from the duplicate numbers; The report generation module is used to generate an error report corresponding to the duplicate number and send the error report to the client. The outbound call interception device based on the table partitioning strategy further includes: The table partitioning strategy determination unit is used to determine whether the preprocessed batch numbers are encrypted numbers. If so, the table partitioning strategy is determined to be an encrypted table partitioning strategy; otherwise, the table partitioning strategy is determined to be a plaintext table partitioning strategy. The encrypted table partitioning strategy is a strategy of partitioning the encrypted numbers in the preprocessed batch numbers based on the enterprise ID, and the plaintext table partitioning strategy is a strategy of partitioning the preprocessed batch numbers based on the enterprise ID and the last digit of the number. The duplicate number determination module includes: The number grouping unit groups the preprocessed batch numbers based on the table partitioning strategy to obtain the grouped batch numbers; The first number writing unit is used to determine whether the client's identifier ID is the first identifier ID to appear. If so, a first data table is created based on the identifier ID, and the grouped number is written into the first data table. The duplicate number determination unit is used to determine, if not, a second data table corresponding to the identifier ID, and to perform multi-threaded deduplication verification on the second data table according to the grouped batch numbers to determine whether duplicate numbers exist; The number deduplication unit is used to update the update count of the duplicate numbers in the second data table if they exist, and to perform a deduplication operation on the duplicate numbers. The second number writing unit is used to write the grouped number into the second data table if it does not exist.
7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the number outbound call interception method based on a table partitioning strategy as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the number outbound call interception method based on a table partitioning strategy as described in any one of claims 1 to 5.