Private number generation method and device, equipment, storage medium and program product
By extracting the target number from IMSI and establishing the correspondence between the virtual mobile phone number and the IMSI of multiple users, the problem of low resource utilization of virtual mobile phone number is solved, and more efficient resource utilization and fast-growing courier demands are achieved.
Patent Information
- Application Number
- CN202411467085.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, the resource utilization rate of virtual mobile phone numbers is low and cannot effectively meet the rapidly growing demand for express orders.
By extracting the target number from the international mobile user identification code IMSI, a correspondence relationship between the first intermediate number and the multiple user IMSIs is established, thereby improving the utilization rate of the first intermediate number.
It improves the resource utilization rate of virtual mobile phone numbers, can more effectively meet the needs of a large number of express orders, and reduces the dependence on real mobile phone numbers.
Smart Images

Figure CN119485279A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information security technology, and in particular, relates to a method, apparatus, device, storage medium and program product for generating a privacy number. Background Art
[0002] In logistics delivery scenarios, in order to prevent the recipient's mobile phone number from being leaked, a virtual mobile phone number is usually used instead of the recipient's mobile phone number in the express delivery note.
[0003] Currently, by pre-setting the correspondence between the virtual mobile number and the consignee's mobile number, when a merchant or logistics company calls the virtual mobile number, the call can be transferred to the consignee based on the correspondence between the virtual mobile number and the consignee's mobile number.
[0004] However, with the rapid development of the e-commerce industry and the continuous growth of the number of express delivery orders, the correspondence between the recipient's mobile phone number and the virtual mobile phone number needs to be set in advance for each express delivery order. In this way, each virtual mobile phone number can only correspond to one recipient's mobile phone number, and the resource utilization rate of the virtual mobile phone number is low. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device, storage medium and program product for generating a privacy number. Based on the first intermediate number, by additionally adding a target number extracted from the IMSI, a correspondence between the first intermediate number and the IMSIs of multiple users can be established, thereby improving the utilization rate of the first intermediate number.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a privacy number, comprising:
[0007] Obtain the international mobile subscriber identity (IMSI) corresponding to the user;
[0008] Select the target number in the IMSI according to the preset numbering rule;
[0009] Using the target number as the target extension number corresponding to the user;
[0010] Obtaining a first middle number from a preset number pool;
[0011] The first intermediate number and the extension number are used as the user's private number.
[0012] In a possible implementation, obtaining the first intermediate number from a preset number pool includes:
[0013] Obtaining the target location information of the IMSI;
[0014] Searching for a target preset number pool corresponding to the target location information from a preset correspondence between the location information and the preset number pool;
[0015] The first intermediate number is obtained from the target preset number pool according to a preset allocation rule.
[0016] In a possible implementation manner, after acquiring the first intermediate number from the target preset number pool according to the preset allocation rule, the method further includes:
[0017] Determine whether the first intermediate number is bound to an extension number that includes the target extension number;
[0018] In the case that the first intermediate number is bound to an extension number including the target extension number, obtaining a second intermediate number from the target preset number pool according to the preset allocation rule;
[0019] In the case that the target extension number is not included in the extension number bound to the second intermediate number, the second intermediate number is used as the first intermediate number.
[0020] In a possible implementation manner, before acquiring the first intermediate number from the target preset number pool according to the preset allocation rule, the method further includes:
[0021] Obtaining preset digital information corresponding to the IMSI;
[0022] Searching for a target middle number containing the preset digital information in the target preset number pool;
[0023] The acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes:
[0024] The first intermediate number is obtained from the target intermediate number according to the preset allocation rule.
[0025] In a possible implementation, the obtaining the first middle number from the middle numbers in the target preset number pool according to a preset allocation rule includes:
[0026] generating a first timestamp;
[0027] Constructing a screening factor corresponding to the IMSI using the first timestamp and the extension number;
[0028] Calculating a hash value of the screening factor;
[0029] Using the hash value, the number of intermediate numbers in the target preset number pool is modulo processed to obtain the modulus value corresponding to the screening factor;
[0030] The first intermediate number is searched in the target preset number pool according to the modulus value.
[0031] In a possible implementation, the acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes:
[0032] A middle number is randomly obtained from the target preset number pool, and the randomly obtained middle number is used as the first middle number.
[0033] In a possible implementation, the acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes:
[0034] The first intermediate number is allocated to the IMSI according to the arrangement order of the intermediate numbers in the target preset number pool.
[0035] In a possible implementation, after using the first intermediate number and the extension number as the user's private number, the method further includes:
[0036] Receiving a first call request sent by a first terminal corresponding to a preset whitelist user, where the first call request carries the private number;
[0037] Constructing a call correspondence between the calling number of the whitelist user and the IMSI;
[0038] Determine the corresponding IMSI according to the privacy number;
[0039] The first call request is forwarded to a second terminal corresponding to the IMSI.
[0040] In a possible implementation, after transferring the first call request to the target mobile phone number, the method further includes:
[0041] receiving a second call request sent by the second terminal, where the second call request includes the IMSI of the user;
[0042] According to the call correspondence, searching for the calling number of the whitelist user corresponding to the IMSI of the user;
[0043] Forward the second call request to the first terminal.
[0044] In a possible implementation, after receiving the first call request from a preset whitelist user, the method further includes:
[0045] Sending a role information acquisition instruction to the first terminal, wherein the role information acquisition instruction is used to instruct the first terminal to display a role information collection interface to acquire the role information input by the whitelist user on the role information collection interface;
[0046] receiving role information sent by the first terminal;
[0047] The role information is sent to the second terminal, so that the second terminal displays the role information on a user answering interface.
[0048] In a second aspect, an embodiment of the present application provides a method for generating a privacy number, including:
[0049] An acquisition module is used to acquire the international mobile subscriber identity IMSI corresponding to the user;
[0050] A selection module, used to select a target number in the IMSI according to a preset number selection rule;
[0051] A determination module, configured to use the target number as a target extension number corresponding to the user;
[0052] The acquisition module is used to acquire the first intermediate number from a preset number pool;
[0053] The determination module is used to use the first intermediate number and the target extension number as the user's private numbers.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0055] When the processor executes the computer program instructions, the method for generating a privacy number as described in any one of the first aspects is implemented.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for generating a privacy number as described in any one of the first aspects is implemented.
[0057] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for generating a privacy number as described in any one of the first aspects.
[0058] A method, apparatus, device, storage medium and program product for generating a privacy number in an embodiment of the present application, after obtaining the international mobile user identity code IMSI corresponding to the user, selects a number in the IMSI according to a preset number-taking rule to obtain a target number, and then uses the target number as the target extension number corresponding to the user. In this way, a first intermediate number is obtained from a preset intermediate number pool, wherein the first intermediate number is a virtual mobile phone number, and the first intermediate number and the target extension number are used to construct the user's privacy number. Among them, on the basis of the first intermediate number, by additionally adding a target number extracted from the IMSI, a correspondence between the first intermediate number and the IMSIs of multiple users can be established, thereby improving the utilization rate of the first intermediate number. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0060] Figure 1 It is a flowchart of a method for generating a privacy number provided in an embodiment of the present application;
[0061] Figure 2 It is a flowchart of a method for generating a first intermediate number provided in an embodiment of the present application;
[0062] Figure 3 It is a flowchart of another method for generating a first intermediate number provided in an embodiment of the present application;
[0063] Figure 4 is an exemplary schematic diagram of a method for generating a privacy number provided in an embodiment of the present application;
[0064] Figure 5 is an exemplary schematic diagram of another method for generating a privacy number provided in an embodiment of the present application;
[0065] Figure 6 It is a flowchart of a method for calling a private number provided in an embodiment of the present application;
[0066] Figure 7 is an exemplary schematic diagram of a role information acquisition interface provided in an embodiment of the present application;
[0067] Figure 8 It is a flowchart of a method for dialing back a call provided in an embodiment of the present application;
[0068] Fig. 9 is an exemplary schematic diagram of a call back reminder interface provided in an embodiment of the present application;
[0069] Fig.10 This is a schematic diagram of a device for generating a privacy number provided in an embodiment of the present application.
[0070] Fig.11 It is a structural schematic diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0071] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0072] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0073] In order to solve the problems existing in the prior art, the embodiments of the present application provide a method, apparatus, device, storage medium and program product for generating a privacy number. Figure 1 A method for generating a privacy number provided in an embodiment of the present application is introduced. Figure 1 As shown, the method is applied to an electronic device, and the method includes:
[0074] S101, obtaining the International Mobile Subscriber Identity (IMSI) corresponding to the user.
[0075] The International Mobile Subscriber Identity (IMSI) is a number assigned to uniquely identify a mobile user. The IMSI can be the user's mobile phone number.
[0076] S102: Select a target number in the IMSI according to a preset numbering rule.
[0077] In one example, the preset number-taking rule may be to select the last four digits of the IMSI, that is, to select the last four digits of the user's mobile phone number.
[0078] S103: Use the target number as the target extension number corresponding to the user.
[0079] S104: Obtain a first intermediate number from a preset number pool.
[0080] Among them, the preset number pool includes multiple virtual middle numbers, and the virtual middle number is the virtual mobile phone number in the prior art.
[0081] S105: Use the first intermediate number and the target extension number as the user's private numbers.
[0082] The privacy number corresponding to the user is the first intermediate number + the target extension number. For example, if the first intermediate number is 137xxxxxxxx and the target extension number is xxx1, the privacy number is 137xxxxxxxx+xxx1.
[0083] After determining the first intermediate number and the target extension number, the user can call the user corresponding to the privacy number by dialing the first intermediate number and then transferring to the target extension number.
[0084] It can be understood that in the above case of using the last four digits of the mobile phone number as the target extension number, each intermediate number can correspond to any extension number in the range of 0000 to 9999, that is, each intermediate number can be bound to 10,000 extension numbers, thus improving the resource utilization of the intermediate numbers.
[0085] By adopting the above method, after obtaining the international mobile user identity code IMSI corresponding to the user, the number in the IMSI is selected according to the preset number-taking rules to obtain the target number, and then the target number is used as the target extension number corresponding to the user. In this way, the first intermediate number is obtained from the preset intermediate number pool, wherein the first intermediate number is a virtual mobile phone number, and the first intermediate number and the target extension number are used to construct the user's privacy number. Among them, on the basis of the first intermediate number, by additionally adding the target number extracted from the IMSI, the correspondence between the first intermediate number and the IMSI of multiple users can be established, thereby improving the utilization rate of the first intermediate number.
[0086] In some embodiments of the present application, the above S104, obtaining the first intermediate number from the preset number pool, can be implemented as follows:
[0087] Step 1: Get the target location information of IMSI.
[0088] The location information is used to identify the region to which the IMSI belongs.
[0089] Specifically, the electronic device may obtain a number at a preset position in the IMSI, and then determine the target home location information of the IMSI according to a preset correspondence between the number at the preset position and the home location information.
[0090] Step 2: From the preset correspondence between the location information and the preset number pool, search for the target preset number pool corresponding to the target location information.
[0091] It should be noted that, since the resources of virtual intermediate numbers are limited, each region corresponds to a preset number pool of pre-allocated numbers.
[0092] Step 3: Obtain the first intermediate number from the target preset number pool according to the preset allocation rule.
[0093] Among them, the preset allocation rule is pre-configured based on experience.
[0094] By adopting the method provided in the embodiment of the present application, after obtaining the target location information of the IMSI, the target preset number pool corresponding to the target location information can be searched. Since the target preset number pool is pre-configured according to the location, the first intermediate number subsequently obtained from the target preset number pool according to the preset allocation rule is the same as the user's location, which is convenient for managing privacy numbers.
[0095] It is understandable that after the electronic device obtains the first intermediate number according to the preset allocation rule, the first intermediate number may have multiple bound extension numbers. In order to avoid the target extension number and the bound extension number being the same, resulting in the inability to distinguish different users using the target extension number and the first intermediate number. Therefore, a conflict check is performed on the bound extension number of the first intermediate number to ensure that the bound extension number corresponding to the first intermediate number does not include the target extension number. Based on this, Figure 2 As shown, after the above step 3, obtaining the first intermediate number from the target preset number pool according to the preset allocation rule, the method further includes:
[0096] S201. Determine whether the extension number bound to the first intermediate number includes the target extension number.
[0097] Specifically, the electronic device determines the bound extension number corresponding to the first intermediate number according to the locally recorded binding relationship between the intermediate number and the extension number.
[0098] S202: When the extension number bound to the first intermediate number includes the target extension number, obtain the second intermediate number from the target preset number pool according to a preset allocation rule.
[0099] It can be understood that when the target extension number is included in the bound extension number corresponding to the first middle number, in order to avoid extension number conflicts, the middle number needs to be reselected. Therefore, the electronic device re-obtains the second middle number from the target preset number pool according to the preset allocation rules, uses the second middle number as the first middle number, and repeats the above-mentioned S201 judgment action until the target extension number does not exist in the bound extension number corresponding to the re-obtained second middle number.
[0100] S203: When the target extension number is not included in the extension number bound to the second intermediate number, use the second intermediate number as the first intermediate number.
[0101] In this way, by determining whether the extension numbers bound to the first intermediate number include the target extension number, extension number conflicts can be avoided, thereby ensuring the accuracy of the correspondence between the extension number and the user.
[0102] It should be noted that the user can also pre-set the digital preference corresponding to the IMSI on the electronic device, that is, set the preset digital information corresponding to the IMSI in the electronic device. The electronic device can then obtain the first intermediate number from the target preset number pool according to the preset digital information and the preset allocation rule. Based on this, before obtaining the first intermediate number from the target preset number pool according to the preset allocation rule, the method also includes:
[0103] Obtain preset digital information corresponding to the IMSI; search for a target middle number containing the preset digital information in the target preset number pool.
[0104] The preset digital information is used to indicate the user's digital preference. For example, if the preset digital information is 9, the electronic device uses the middle number containing the number 9 in the target preset number pool as the target middle number.
[0105] Accordingly, obtaining the first intermediate number from the target preset number pool according to the preset allocation rule can be specifically implemented as follows:
[0106] The first intermediate number is obtained from the target intermediate number according to a preset allocation rule.
[0107] In this way, by setting preset digital information for users, customized services can be provided to different users to meet the needs of different users for intermediate numbers.
[0108] In some embodiments of the present application, the preset allocation rules include hash value allocation rules, random allocation rules, and sequential allocation rules. Figure 3 The electronic device adopts a hash value allocation rule to obtain a first intermediate number from a target preset number pool. Figure 2 As shown, the method includes:
[0109] S301: Generate a first timestamp.
[0110] Specifically, the electronic device may generate a first timestamp corresponding to the current moment based on the current moment, and the electronic device searches for the first intermediate number at the current moment.
[0111] S302: Construct a screening factor corresponding to the IMSI using the first timestamp and the target extension number.
[0112] Specifically, the electronic device cascades the first timestamp and the target extension number to obtain a character string, and the character string is the above-mentioned screening factor.
[0113] In an example, the current time is 12:0:00 on August 31, 2013, and the first timestamp is 20130831120000. The target extension number is xxxx, and the above screening factor may be 20130831120000xxxx.
[0114] S303: Calculate the hash value of the screening factor.
[0115] The hash value algorithm may be a message digest algorithm (Message Digest Algorithm, MD5). The embodiment of the present application does not specifically limit the method for calculating the hash value.
[0116] S304: Using the hash value, perform a modulo process on the number of intermediate numbers in the target preset number pool to obtain a modulo value corresponding to the screening factor.
[0117] Specifically, the modulus processing refers to the process of calculating the remainder by dividing the hash value by the number of intermediate numbers in the target preset number pool. The remainder is the modulus value corresponding to the screening factor.
[0118] For example, the modulus value is L, L=MD5(xxxxxxx)%N, wherein xxxxxxx refers to the hash value of the above-mentioned screening factor, % represents the modulus calculation, and N represents the number of intermediate numbers in the target preset number pool.
[0119] S305. Search for the first middle number in the target preset number pool according to the modulus value.
[0120] It is understandable that the target preset number pool includes multiple intermediate numbers, and the multiple intermediate numbers are arranged in a preset order. After the modulus value is calculated, the L-th intermediate number is searched in the target preset number pool according to the order of the intermediate numbers, and the intermediate number is used as the first intermediate number. Wherein, L represents the modulus value calculated above.
[0121] It should be noted that when there is corresponding preset digital information for IMSI, the electronic device searches the target intermediate number that meets the preset digital information in the target preset number pool according to the preset digital information, and then obtains the first intermediate number from the target intermediate number according to the above-mentioned hash value allocation rule.
[0122] In this way, the electronic device generates a first timestamp based on the current moment, and then uses the first timestamp and the target extension number to construct a screening factor, and uses the hash value of the screening factor to perform a modulo process on the number of intermediate numbers, so as to obtain a modulus value corresponding to the screening factor, and based on the modulus value, the first intermediate number can be found in the target preset number pool. In this way, on the basis of obtaining the first timestamp corresponding to the current moment, the first intermediate number can be found in the target preset number pool, and the first intermediate number corresponding to the user's IMSI can be quickly obtained.
[0123] After obtaining the first intermediate number according to the hash value allocation rule, the electronic device Figure 2 The method shown in the figure determines whether the bound extension number corresponding to the first intermediate number includes the target extension number of the current user. If the bound extension number corresponding to the first intermediate number includes the target extension number of the current user, the electronic device regenerates the second timestamp according to the local time, and uses the above Figure 3 The hash value allocation rule shown is used to obtain the second intermediate number until the bound extension number corresponding to the obtained second intermediate number does not include the user's target extension number, and the second intermediate number is used as the first intermediate number.
[0124] Specifically, the method for establishing the binding relationship between the privacy number, the target extension number and the first intermediate number according to the hash value allocation rule is as follows: Figure 4 As shown, the method includes:
[0125] S401. Divide the local number pool by region.
[0126] Among them, the territorial number pool is the above-mentioned preset number pool, and each user in each region corresponds to a territorial number pool.
[0127] S402: Sort and locate the numbers in the local number pool.
[0128] The electronic device sorts the numbers in the territorial number pool according to a preset arrangement order.
[0129] S403: Determine the local number pool according to number A.
[0130] The number A is the IMSI in the above embodiment.
[0131] By parsing the number at the preset position in number A, the electronic device can obtain the location information corresponding to number A. Then, the electronic device can determine the location number pool corresponding to number A according to the correspondence between the location information and the location number pool.
[0132] S404, establishing a middle number screening factor.
[0133] Specifically, the intermediate number screening factor is the screening factor in the above embodiment, and the method of constructing the screening factor refers to the relevant description in the above embodiment.
[0134] S405: Calculate the location of the number using the screening factor.
[0135] The electronic device calculates the hash value of the screening factor, uses the hash value to perform a modulo process on the number of numbers in the territorial number pool, and uses the modulo value obtained by the modulo process to determine the position of the first intermediate number.
[0136] S406. Preselect a middle number X from the local number pool.
[0137] The preselected middle number X is the first middle number in the above embodiment.
[0138] S407: Whether the existing extension number of the pre-selected middle number X conflicts with the extension number E to be assigned.
[0139] If yes, execute the above S404, if no, execute S408.
[0140] The existing extension number is the bound extension number corresponding to the first intermediate number, and the extension number E to be allocated is the target extension number determined by the electronic device based on the user IMSI in the above embodiment.
[0141] S408: Establishing the binding relationship of AXE.
[0142] Wherein, A represents the IMSI corresponding to the user, X represents the first intermediate number, and E represents the target extension number.
[0143] By adopting the method provided in the embodiment of the present application, the number of intermediate numbers is modulo processed using the hash value of the screening factor, and the modulus value corresponding to the screening factor can be obtained. Based on the modulus value, the first intermediate number can be found in the target preset number pool. In this way, on the basis of constructing the screening factor, the first intermediate number can be found in the local number pool, and the first intermediate number corresponding to the user's IMSI can be quickly obtained.
[0144] Based on the random allocation rule, the above step 3, obtaining the first intermediate number from the target preset number pool according to the preset allocation rule, can be implemented as follows:
[0145] A middle number is randomly obtained from the target preset number pool, and the randomly obtained middle number is used as the first middle number.
[0146] It should be noted that when there is corresponding preset digital information for IMSI, the electronic device searches the target intermediate number that meets the preset digital information in the target preset number pool according to the preset digital information, and then obtains the first intermediate number from the target intermediate number according to the above-mentioned random allocation rule.
[0147] After obtaining the first intermediate number according to the random allocation rule, the electronic device Figure 2 The method shown determines whether the bound extension number corresponding to the first intermediate number includes the target extension number of the current user. If the bound extension number corresponding to the first intermediate number includes the target extension number of the current user, the electronic device re-obtains the second intermediate number according to the above-mentioned random allocation rule until the bound extension number corresponding to the obtained second intermediate number does not include the target extension number of the current user, and the second intermediate number is used as the first intermediate number.
[0148] Based on the sequential allocation rule, the above step 3, obtaining the first intermediate number from the target preset number pool according to the preset allocation rule, can be implemented as follows:
[0149] According to the arrangement order of the middle numbers in the target preset number pool, the first middle number is allocated to the IMSI.
[0150] It is understandable that the middle numbers in the target preset number pool are sorted according to a preset sorting rule. Therefore, the electronic device can sort the middle numbers in the target preset number pool in the order of their arrangement.
[0151] There is no specific limitation on the sorting rules in the embodiments of the present application.
[0152] It should be noted that when there is corresponding preset digital information for IMSI, the electronic device searches the target intermediate number that meets the preset digital information in the target preset number pool according to the preset digital information, and then obtains the first intermediate number from the target intermediate number according to the above-mentioned order allocation rules.
[0153] After obtaining the first intermediate number according to the above-mentioned sequential allocation rule, the electronic device Figure 2 The method shown determines whether the bound extension number corresponding to the first intermediate number includes the target extension number of the current user. If the bound extension number corresponding to the first intermediate number includes the target extension number of the current user, the electronic device re-acquires the second intermediate number according to the above-mentioned sequential allocation rule until the bound extension number corresponding to the acquired second intermediate number does not include the target extension number of the current user, and the second intermediate number is used as the first intermediate number.
[0154] The following combination Figure 5This article introduces the method of establishing the binding relationship between the privacy number, the target extension number, and the first intermediate number, such as Figure 5 As shown, the method includes:
[0155] S501. Obtain the last digit of the mobile phone number according to number A.
[0156] Among them, number A is the IMSI corresponding to the above user.
[0157] S502. Determine the extension number based on the last digit of the mobile phone number.
[0158] S503: Allocate an intermediate number and establish a binding relationship.
[0159] Specifically, the method for establishing the binding relationship refers to the relevant description in the above embodiment, which will not be repeated here.
[0160] S504. Use the middle number to contact number A.
[0161] Among them, merchants or logistics personnel can call the user corresponding to number A by dialing the middle number and transferring the extension number.
[0162] S505: Unbind.
[0163] It should be noted that, in the process of establishing the binding relationship, a binding relationship validity time may be set, and after the binding relationship exceeds the binding relationship validity time, the electronic device releases the binding relationship.
[0164] In addition, based on the above-mentioned use of the last digit of the mobile phone number as the extension number, in the current express package retrieval scenario, after the staff deposits the package, an association relationship between the package storage location and the extension number is established. Therefore, when the user picks up the package, the user provides the last digit of the mobile phone number. Since the last digit of the mobile phone number and the extension number are the same, the staff can quickly retrieve the package storage location according to the last digit of the mobile phone number, which improves the retrieval efficiency and avoids the inability to quickly retrieve the package storage location due to the difference between the virtual mobile phone number and the user's real mobile phone number.
[0165] After the binding relationship between the privacy number, extension number and first intermediate number is established, the merchant or logistics personnel can contact the user by dialing the first intermediate number and transferring to the extension number. Figure 6 As shown, after the above S105, using the first intermediate number and the target extension number as the user's private number, the method further includes:
[0166] S601: Receive a first call request sent by a first terminal corresponding to a preset whitelist user.
[0167] The first call request carries a private number. The preset whitelist user refers to a user who has the authority to call the private number. The preset whitelist user may be an e-commerce industry practitioner, such as a merchant or a courier practitioner.
[0168] Specifically, the preset whitelist user can send the first call request to the user by dialing the first intermediate number to transfer to the target extension number.
[0169] S602: Construct a call correspondence between the calling number and IMSI of a preset whitelist user.
[0170] The electronic device calculates the expiration time of the call correspondence according to the effective time of the call correspondence and the current time. The effective time of the call correspondence is preset based on experience.
[0171] In addition, after receiving the first call request sent by the first terminal corresponding to the preset whitelist user, the electronic device can send a role information acquisition instruction to the first terminal and receive the role information sent by the first terminal. In this way, the electronic device sends the role information to the second terminal, and the second terminal can display the role information on the user answering interface, so that the user can judge whether to answer the call based on the role information.
[0172] The role information acquisition instruction is used to instruct the first terminal to display a role information collection interface, so as to acquire the role information input by the preset whitelist user in the role information collection interface.
[0173] Specifically, Figure 7 As shown, Figure 7 An exemplary role information collection interface is shown, which includes text information and multiple controls.
[0174] Among them, the text message is "
Friendly reminder
[0175] The controls include "Merchant", "Logistics", "After-sales", "Express Delivery" and "Express Storage Point". Preset whitelist users can select their own role information by clicking the corresponding control.
[0176] In addition, when the electronic device constructs the call correspondence between the call number and IMSI of the preset whitelist user, it stores the role information corresponding to the preset whitelist user. The second terminal can then display a "Contact xx" control on the order management interface, and the user can call back the terminal where xx is located by clicking the "Contact xx" control on the order management interface, where xx represents the above role information.
[0177] S603: Determine the corresponding IMSI according to the privacy number.
[0178] Specifically, after receiving the first call request, the electronic device searches for the IMSI corresponding to the first call request in the locally stored correspondence between the privacy number and the user's IMSI according to the privacy number carried in the first call request.
[0179] S604: Forward the first call request to the second terminal corresponding to the IMSI.
[0180] By adopting the method provided in the embodiment of the present application, after the corresponding relationship between the privacy number and the user's IMSI is established, after receiving the first call request sent by the preset whitelist user, the electronic device can accurately and quickly find the IMSI corresponding to the first call request according to the corresponding relationship between the privacy number and the user's IMSI, thereby realizing the contact between the preset whitelist user and the user. In this way, when the preset whitelist user initiates the first call request, the preset whitelist user cannot know the user's real IMSI, thereby avoiding the leakage of user information and ensuring the security of information.
[0181] After the preset whitelist user initiates the first call request, the electronic device can record the IMSI requested by the call request and establish a call correspondence. In this way, it is convenient for the user to call back the preset whitelist user through the call record chain later. Figure 8 As shown, after the above S604, forwarding the first call request to the IMSI, the method further includes:
[0182] S801. Receive a second call request sent by a second terminal.
[0183] The second call request includes the IMSI of the user.
[0184] Specifically, the user performs a call back operation on the display interface of the second terminal, and the second terminal sends a second call request including the IMSI to the electronic device in response to the user's operation.
[0185] S802: According to the call correspondence, search for the calling number of the preset whitelist user corresponding to the user's IMSI.
[0186] S803: Forward the second call request to the first terminal.
[0187] By adopting the method provided in the embodiment of the present application, since the electronic device has pre-recorded call correspondence relationships, when the user performs a call back operation on the display interface of the second terminal, the second terminal can send a second call request to the electronic device, so that after receiving the second call request, the electronic device can search the call number of the preset whitelist user in the locally stored call correspondence relationships, and forward the second call request to the first terminal, thereby realizing quick contact between the user and the preset whitelist user.
[0188] It should be noted that after the electronic device forwards the first call request to the first terminal, if the preset whitelist user cannot answer the call, the electronic device can also send a call back prompt message to the first terminal, so that the first terminal can display the call back prompt message on the display interface to remind the preset whitelist user to call back in time.
[0189] like Fig. 9 As shown, Fig. 9 A call back prompt interface of a first terminal is exemplarily shown, and the call back prompt interface includes text information and controls.
[0190] Among them, the text message is "
Friendly reminder
[0191] The control includes a "call back now" control and a "call back later" control. If a preset whitelist user clicks the "call back now" control, the first terminal is triggered to dial the above 137xxxxxxxx+xxxx privacy number. If a preset whitelist user clicks the "call back later" control, the first terminal exits the call back prompt interface.
[0192] Based on the same concept, the present application embodiment provides a device for generating a privacy number, such as Fig.10 As shown, the device comprises:
[0193] An acquisition module 1001 is used to acquire an International Mobile Subscriber Identity (IMSI) corresponding to a user;
[0194] A selection module 1002 is used to select a target number in the IMSI according to a preset number selection rule;
[0195] A determination module 1003 is used to use the target number as a target extension number corresponding to the user;
[0196] The acquisition module 1001 is further used to acquire the first intermediate number from the preset number pool;
[0197] The determination module 1003 is further configured to use the first intermediate number and the target extension number as the user's private numbers.
[0198] In a possible implementation, the module 1002 is selected to be specifically configured to:
[0199] Obtaining the target location information of the IMSI;
[0200] Searching for a target preset number pool corresponding to the target location information from a preset correspondence between the location information and the preset number pool;
[0201] The first intermediate number is obtained from the target preset number pool according to a preset allocation rule.
[0202] In a possible implementation, the device further includes:
[0203] A judging module, used for judging whether the extension number bound to the first intermediate number includes the target extension number;
[0204] A selection module 1002 is used to obtain a second intermediate number from the target preset number pool according to the preset allocation rule when the first intermediate number is bound to an extension number including the target extension number;
[0205] The determination module 1003 is further configured to use the second intermediate number as the first intermediate number when the extension number bound to the second intermediate number does not include the target extension number.
[0206] In a possible implementation, the device includes:
[0207] The acquisition module 1001 is further used to obtain the preset digital information corresponding to the IMSI;
[0208] A search module, used for searching the target middle number containing the preset digital information in the target preset number pool;
[0209] The selection module 1002 is specifically used for:
[0210] The first intermediate number is obtained from the target intermediate number according to the preset allocation rule.
[0211] In a possible implementation, the module 1002 is selected to be specifically configured to:
[0212] generating a first timestamp;
[0213] Constructing a screening factor corresponding to the IMSI using the first timestamp and the target extension number;
[0214] Calculating a hash value of the screening factor;
[0215] Using the hash value, the number of intermediate numbers in the target preset number pool is modulo processed to obtain the modulus value corresponding to the screening factor;
[0216] The first intermediate number is searched in the target preset number pool according to the modulus value.
[0217] In a possible implementation, the module 1002 is selected to be specifically configured to:
[0218] A middle number is randomly obtained from the target preset number pool, and the randomly obtained middle number is used as the first middle number.
[0219] In a possible implementation, the module 1002 is selected to be specifically configured to:
[0220] The first intermediate number is allocated to the IMSI according to the arrangement order of the intermediate numbers in the target preset number pool.
[0221] In a possible implementation, the device further includes:
[0222] A receiving module, configured to receive a first call request sent by a first terminal corresponding to a preset whitelist user, wherein the first call request carries the privacy number;
[0223] A construction module, used to construct a call correspondence relationship between the calling number of the preset whitelist user and the IMSI;
[0224] The determination module 1003 is further used to determine the corresponding IMSI according to the privacy number;
[0225] A sending module is used to forward the first call request to the second terminal corresponding to the IMSI.
[0226] In a possible implementation, the receiving module is further configured to receive a second call request sent by the second terminal, where the second call request includes the IMSI of the user;
[0227] A search module, used to search for a calling number of a preset whitelist user corresponding to the IMSI of the user according to the call correspondence;
[0228] A sending module is used to forward the second call request to the first terminal.
[0229] In a possible implementation, the device further includes:
[0230] The sending module is further used to send a role information acquisition instruction to the first terminal, wherein the role information acquisition instruction is used to instruct the first terminal to display a role information collection interface to obtain the role information input by the preset whitelist user on the role information collection interface;
[0231] The receiving module is further used to receive the role information sent by the first terminal;
[0232] The sending module is further used to send the role information to the second terminal, so that the second terminal displays the role information on the user answering interface.
[0233] It should be noted that the device for generating a privacy number is a device corresponding to the above-mentioned method for generating a privacy number, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the device and can achieve the same technical effect.
[0234] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0235] The electronic device may include a processor 1101 and a memory 1102 storing computer program instructions.
[0236] Specifically, the processor 1101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0237] The memory 1102 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1102 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1102 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1102 is a non-volatile solid-state memory.
[0238] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0239] The processor 1101 implements any one of the privacy number generation methods in the above embodiments by reading and executing the computer program instructions stored in the memory 1102 .
[0240] In one example, the electronic device may further include a communication interface 1103 and a bus 1104. Fig.11As shown, the processor 1001, the memory 1102, and the communication interface 1103 are connected via a bus 1104 and communicate with each other.
[0241] The communication interface 1103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0242] Bus 1104 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1104 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0243] In addition, in combination with the method for generating a privacy number in the above embodiments, the embodiment of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the methods for generating a privacy number in the above embodiments is implemented.
[0244] In combination with the method for generating a privacy number in the above embodiments, an embodiment of the present application may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any method for generating a privacy number in the above embodiments.
[0245] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0246] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0247] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0248] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0249] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for generating a privacy number, characterized in that: include: Obtain the international mobile subscriber identity (IMSI) corresponding to the user; Select the target number in the IMSI according to the preset numbering rule; Using the target number as the target extension number corresponding to the user; Obtaining a first middle number from a preset number pool; The first intermediate number and the target extension number are used as the user's private numbers.
2. The method according to claim 1, characterized in that The obtaining the first intermediate number from the preset number pool includes: Obtaining the target location information of the IMSI; Searching for a target preset number pool corresponding to the target location information from a preset correspondence between the location information and the preset number pool; The first intermediate number is obtained from the target preset number pool according to a preset allocation rule.
3. The method according to claim 2, characterized in that After acquiring the first intermediate number from the target preset number pool according to the preset allocation rule, the method further includes: Determine whether the first intermediate number is bound to an extension number that includes the target extension number; In the case that the first intermediate number is bound to an extension number including the target extension number, obtaining a second intermediate number from the target preset number pool according to the preset allocation rule; In the case that the target extension number is not included in the extension number bound to the second intermediate number, the second intermediate number is used as the first intermediate number.
4. The method according to claim 2, characterized in that: Before acquiring the first intermediate number from the target preset number pool according to the preset allocation rule, the method further includes: Obtaining preset digital information corresponding to the IMSI; Searching for a target middle number containing the preset digital information in the target preset number pool; The acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes: The first intermediate number is obtained from the target intermediate number according to the preset allocation rule.
5. The method according to claim 2, characterized in that: The obtaining the first intermediate number from the intermediate numbers in the target preset number pool according to the preset allocation rule includes: generating a first timestamp; Constructing a screening factor corresponding to the IMSI using the first timestamp and the target extension number; Calculating a hash value of the screening factor; Using the hash value, the number of intermediate numbers in the target preset number pool is modulo processed to obtain the modulus value corresponding to the screening factor; The first intermediate number is searched in the target preset number pool according to the modulus value.
6. The method according to claim 2, characterized in that The acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes: A middle number is randomly obtained from the target preset number pool, and the randomly obtained middle number is used as the first middle number.
7. The method according to claim 2, characterized in that: The acquiring the first intermediate number from the target preset number pool according to a preset allocation rule includes: The first intermediate number is allocated to the IMSI according to the arrangement order of the intermediate numbers in the target preset number pool.
8. The method according to claim 1, characterized in that After using the first intermediate number and the target extension number as the user's private number, the method further includes: Receiving a first call request sent by a first terminal corresponding to a preset whitelist user, where the first call request carries the private number; Determine the corresponding IMSI according to the privacy number; Constructing a call correspondence between the calling number of the preset whitelist user and the IMSI; The first call request is forwarded to a second terminal corresponding to the IMSI.
9. The method according to claim 8, characterized in that After forwarding the first call request to the second terminal corresponding to the IMSI, the method further includes: receiving a second call request sent by the second terminal, where the second call request includes the IMSI of the user; According to the call correspondence, searching for the calling number of the preset whitelist user corresponding to the IMSI of the user; Forward the second call request to the first terminal.
10. The method according to claim 8, characterized in that After receiving the first call request from the preset whitelist user, the method further includes: Sending a role information acquisition instruction to the first terminal, wherein the role information acquisition instruction is used to instruct the first terminal to display a role information collection interface to acquire the role information input by the preset whitelist user on the role information collection interface; receiving role information sent by the first terminal; The role information is sent to the second terminal, so that the second terminal displays the role information on a user answering interface.