Virtual number processing method, device, server and storage medium

By flexibly setting the binding time of virtual numbers, the problem of low virtual number utilization is solved. In particular, resource utilization is improved by unbinding the relationship when resources are scarce.

CN115065753BActive Publication Date: 2025-09-09BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210534341.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2025-09-09
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

In the existing technology, the utilization rate of virtual numbers is not high, and the problem of mismatch between user needs is prone to occur, especially during peak hours.

Method used

By responding to the virtual number binding request of the current account, determining the number of remaining virtual numbers, and filtering the target virtual numbers and predicting the target time under the preset conditions, determining the binding duration based on the target time, and flexibly setting the binding duration to improve utilization.

Benefits of technology

The flexible binding duration setting of virtual numbers is realized, which improves the utilization rate of virtual numbers. In particular, when resources are scarce, resources can be released by unbinding the relationship, thus avoiding resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115065753B_ABST
    Figure CN115065753B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a virtual number processing method, device, server, storage medium, and computer program product. The method comprises: in response to a virtual number binding request for a current account, determining the number of remaining virtual numbers in a virtual number set at the current moment; if the number satisfies a first preset condition, filtering out a target virtual number and a predicted target time from the remaining virtual numbers; the target time being a time after the current moment when the number of remaining virtual numbers in the virtual number set satisfies a second preset condition; determining a binding duration for the target virtual number based on the target time; and binding the target virtual number to the current account according to the binding duration. This method can improve virtual number utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a virtual number processing method, device, server, storage medium, and computer program product. Background Art

[0002] With the development of terminal technology, the use of virtual numbers can protect the privacy of merchants and customers when communicating by phone. Using virtual numbers requires applying for a number segment from a telecommunications service provider. Since the number of virtual numbers is limited and much smaller than real phone numbers, there is a high risk of running out of virtual numbers during peak usage periods.

[0003] In the prior art, in order to avoid insufficient numbers, a validity period is set for the binding of virtual numbers, and the validity period is usually a fixed value; however, with a fixed validity period, when the virtual number usage is at its peak, it is easy for users who do not need to make calls to occupy number resources, while users who need to make calls have no numbers available, resulting in low utilization of virtual numbers. Summary of the Invention

[0004] The present disclosure provides a virtual number processing method, device, server, storage medium, and computer program product to at least address the problem of low virtual number utilization in related technologies. The technical solutions of the present disclosure are as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a virtual number processing method is provided, including:

[0006] In response to a virtual number binding request for a current account, determining the number of remaining virtual numbers in the virtual number set at a current moment;

[0007] When the number satisfies a first preset condition, a target virtual number and a predicted target time are screened out from the remaining virtual numbers; the target time is a time after the current time when the number of remaining virtual numbers in the virtual number set satisfies a second preset condition;

[0008] Determining the binding duration of the target virtual number according to the target time;

[0009] Bind the target virtual number to the current account according to the binding duration.

[0010] In an exemplary embodiment, the predicted target time includes:

[0011] Determining a predicted number of remaining virtual numbers in the set of virtual numbers at a predicted time; the predicted time is after the current time;

[0012] According to the predicted quantity, a target moment is filtered out from the predicted moments; the target moment is the predicted moment when the predicted quantity meets the second preset condition.

[0013] In an exemplary embodiment, determining the predicted number of remaining virtual numbers in the set of virtual numbers at the predicted time includes:

[0014] Determining each historical moment associated with the predicted moment within a preset historical time period;

[0015] Obtaining the historical number of remaining virtual numbers in the virtual number set at each historical moment;

[0016] A weighted sum is taken for each of the historical quantities to obtain a predicted number of remaining virtual numbers in the virtual number set at the predicted moment.

[0017] In an exemplary embodiment, after determining the number of remaining virtual numbers in the virtual number set at the current moment in response to the virtual number binding request of the current account, the method further includes:

[0018] If the number does not satisfy the first preset condition, determining a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority;

[0019] If the current account meets the first priority and the first virtual number set meets a third preset condition, screening any virtual number from the first virtual number set;

[0020] Bind the virtual number selected from the first virtual number set to the current account.

[0021] In an exemplary embodiment, after determining the first virtual number set and the second virtual number set, the method further includes:

[0022] If the current account meets the first priority and the first virtual number set does not meet the third preset condition, screening a target bound account from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set;

[0023] Unbinding the virtual number bound to the target bound account in the second virtual number set to obtain an unbound virtual number;

[0024] Bind the unbound virtual number to the current account.

[0025] In an exemplary embodiment, filtering out a target bound account from bound accounts includes:

[0026] Obtaining a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call sequence of the virtual numbers; each data node is associated with the binding account, the virtual number bound to the binding account, and the binding duration;

[0027] According to the binding information linked list, a target data node is screened out from the multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated with the binding information linked list meets the duration condition;

[0028] The binding account associated with the target data node is determined as the target binding account.

[0029] In an exemplary embodiment, after determining the first virtual number set and the second virtual number set, the method further includes:

[0030] If the current account meets the second priority and the second virtual number set meets the third preset condition, screening any virtual number from the second virtual number set;

[0031] The virtual number selected from the second virtual number set is bound to the current account.

[0032] According to a second aspect of an embodiment of the present disclosure, a virtual number processing apparatus is provided, including:

[0033] a quantity determining unit configured to execute, in response to a virtual number binding request of a current account, determining the number of remaining virtual numbers in the virtual number set at a current moment;

[0034] a time prediction unit configured to, when the number satisfies a first preset condition, filter out a target virtual number from the remaining virtual numbers and predict a target time; the target time being a time after the current time when the number of remaining virtual numbers in the virtual number set satisfies a second preset condition;

[0035] a duration determining unit, configured to determine a binding duration of the target virtual number according to the target time;

[0036] The number binding unit is configured to bind the target virtual number to the current account according to the binding duration.

[0037] In an exemplary embodiment, the moment prediction unit is further configured to determine the predicted number of remaining virtual numbers in the virtual number set at the predicted moment; the predicted moment is after the current moment; based on the predicted number, a target moment is filtered out from the predicted moments; the target moment is the predicted moment at which the predicted number meets the second preset condition.

[0038] In an exemplary embodiment, the moment prediction unit is further configured to determine each historical moment associated with the predicted moment within a preset historical time period; obtain the historical number of remaining virtual numbers in the virtual number set at each historical moment; and perform weighted summation on each of the historical numbers to obtain the predicted number of remaining virtual numbers in the virtual number set at the predicted moment.

[0039] In an exemplary embodiment, the device also includes a number shortage processing unit, which is configured to execute, when the number does not meet the first preset condition, determining a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority; when the current account meets the first priority and the first virtual number set meets the third preset condition, filtering out any virtual number from the first virtual number set; and binding the virtual number filtered out from the first virtual number set to the current account.

[0040] In an exemplary embodiment, the number shortage processing unit is further configured to, when the current account meets the first priority and the first virtual number set does not meet the third preset condition, screen out a target bound account from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set; unbind the virtual number in the second virtual number set that is bound to the target bound account to obtain an unbound virtual number; and bind the unbound virtual number to the current account.

[0041] In an exemplary embodiment, the number shortage processing unit is further configured to execute acquisition of a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call order of the virtual numbers; each data node is associated with the binding account, the virtual number bound to the binding account, and the binding duration; according to the binding information linked list, a target data node is filtered out from the multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated with the binding information linked list meets the duration condition; the binding account associated with the target data node is determined as the target binding account.

[0042] In an exemplary embodiment, the number shortage processing unit is further configured to, if the current account meets the second priority and the second virtual number set meets the third preset condition, filter out any virtual number from the second virtual number set; and bind the virtual number filtered out from the second virtual number set to the current account.

[0043] According to a third aspect of an embodiment of the present disclosure, a server is provided, including:

[0044] processor;

[0045] a memory for storing instructions executable by the processor;

[0046] The processor is configured to execute the instructions to implement any one of the virtual number processing methods described above.

[0047] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute any of the virtual number processing methods described above.

[0048] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of a server, the server is enabled to execute any of the virtual number processing methods described above.

[0049] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:

[0050] By responding to a virtual number binding request from the current account, the number of remaining virtual numbers in the virtual number set at the current moment is determined; if the number meets a first preset condition, a target virtual number and a predicted target time are selected from the remaining virtual numbers; the target time is a time after the current moment when the number of remaining virtual numbers in the virtual number set meets a second preset condition; then, based on the target time, the binding duration of the target virtual number is determined; and finally, the target virtual number is bound to the current account according to the binding duration. This achieves the goal of flexibly setting the binding duration for the target virtual number. By setting the time when the number of remaining virtual numbers in the virtual number set falls below a preset threshold as the target time and setting the binding duration from the current moment to the target time as the target time, when it is predicted that the number of remaining virtual numbers in the virtual number set is insufficient, the binding relationship of the current account can be released to release virtual number resources and improve virtual number utilization.

[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0053] Figure 1 The figure is a flowchart showing a method for processing a virtual number according to an exemplary embodiment.

[0054] Figure 2 FIG. 4 is a flowchart showing target time prediction steps according to an exemplary embodiment.

[0055] Figure 3 The figure is a flowchart showing steps of unbinding a virtual number according to an exemplary embodiment.

[0056] Figure 4 The figure is a flow chart showing another method for processing a virtual number according to an exemplary embodiment.

[0057] Figure 5 The figure is a block diagram of a virtual number processing system according to an exemplary embodiment.

[0058] Figure 6 FIG. 4 is a diagram showing a result of predicting the number of remaining virtual numbers according to an exemplary embodiment.

[0059] Figure 7 The figure is a flowchart showing steps of binding virtual numbers according to priority according to an exemplary embodiment.

[0060] Figure 8is a schematic diagram of a binding information linked list according to an exemplary embodiment.

[0061] Figure 9 The figure is a block diagram of a virtual number processing device according to an exemplary embodiment.

[0062] Figure 10 The figure is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0063] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0064] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0065] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0066] Figure 1 FIG. 1 is a flow chart showing a method for processing a virtual number according to an exemplary embodiment. Figure 1 As shown, the virtual number processing method is used in a server; it is understandable that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and implemented through the interaction between the terminal and the server. In this exemplary embodiment, the method includes the following steps:

[0067] In step S110 , in response to the virtual number binding request of the current account, the number of remaining virtual numbers in the virtual number set at the current moment is determined.

[0068] Among them, the current account refers to the account that currently requests the allocation of a virtual number, such as a registered account in a short video browsing program that requests to make a call with a merchant through a mobile communication network, or a merchant account in a short video application that requests to make a call with a customer through a mobile communication network.

[0069] The virtual number set refers to a virtual number pool, such as a number pool containing multiple virtual numbers provided by a telecommunications service provider.

[0070] The remaining virtual numbers refer to the virtual numbers that have not been allocated.

[0071] Specifically, the current account sends a virtual number binding request to the server through the terminal. When the server receives the virtual number binding request, it counts the number of remaining virtual numbers in the virtual number set at the current moment.

[0072] For example, a user uses a short video browsing program on a terminal to browse short videos. When the user wants to communicate with the merchant who published the short video by phone, he can click a button on the short video browsing page to trigger the generation of a virtual number binding request. The terminal sends the virtual number binding request to the server. When the server receives the virtual number binding request, it counts the number of unallocated virtual numbers in the virtual number pool to obtain the remaining number of virtual numbers.

[0073] In step S120, when the number meets the first preset condition, the target virtual number and the predicted target time are screened out from the remaining virtual numbers; the target time is the time after the current time when the number of remaining virtual numbers in the virtual number set meets the second preset condition.

[0074] Among them, the first preset condition means that the number of remaining virtual numbers in the virtual number set is greater than the threshold T1. For example, T1 can be 5% of the total number of virtual numbers in the virtual number pool. The first preset condition can be that the number of remaining virtual numbers is greater than 5% of the total number of virtual numbers.

[0075] Among them, the second preset condition means that the number of remaining virtual numbers in the virtual number set is less than the threshold T2. For example, T2 can be 20% of the total number of virtual numbers in the virtual number pool. The second preset condition can be that the number of remaining virtual numbers is less than 20% of the total number of virtual numbers.

[0076] The target virtual number refers to a virtual number to be allocated to the current account, for example, it can be any number among the remaining virtual numbers.

[0077] Specifically, when the number of remaining virtual numbers in the virtual number set meets a first preset condition, the server selects any number from the remaining virtual numbers as the target virtual number; after the current moment, the server predicts the number of remaining virtual numbers in the virtual number set at each moment; when it is predicted that the number of remaining virtual numbers meets a second preset condition, the corresponding moment is used as the target moment.

[0078] For example, assume that the total number of virtual numbers in the virtual number pool is N, and the remaining number of virtual numbers is n. At the current moment, if n > T1N, any number can be selected from the remaining virtual numbers as the target virtual number; predict the remaining number of virtual numbers at each moment after the current moment. If at time t, it is predicted that n < T2N, then t can be used as the target time.

[0079] In step S130, according to the target time, determine the binding duration of the target virtual number.

[0080] Specifically, the server can take the current moment as the starting moment and the target moment as the ending moment, and use the time period between the current moment and the target moment as the binding duration of the target virtual number.

[0081] For example, assume that the current moment is t0 and the target moment is t, then the binding duration can be Δt = t - t0.

[0082] It should be noted that a minimum binding duration can be set. In the case where the predicted binding duration is less than the minimum binding duration, the minimum binding duration can be used as the binding duration of the target virtual account. For example, when it is determined that the minimum binding duration is 3 minutes, if the predicted binding duration is 2 minutes, which is less than the minimum binding duration, the binding duration can be set to the minimum binding duration of 3 minutes.

[0083] It should also be noted that the minimum binding duration can be associated with the historical binding waiting time, where the historical binding waiting time can be the time elapsed from the establishment of the binding relationship to the occurrence of a call within a past period. For example, the minimum binding duration can be set to the 90th percentile value of the time elapsed from the establishment of the binding relationship to the occurrence of a call within the most recent week, where the percentile value is configurable and can be set to a default value initially.

[0084] In step S140, bind the target virtual number to the current account according to the binding duration.

[0085] Specifically, the server can assign the target virtual number to the current account, set the binding duration to Δt, and unbind the target virtual number from the current account when the binding time exceeds the binding duration.

[0086] In the above-mentioned virtual number processing method, the number of remaining virtual numbers in the virtual number set at the current moment is determined in response to a virtual number binding request from the current account. If the number meets a first preset condition, a target virtual number and a predicted target time are selected from the remaining virtual numbers. The target time is a time after the current moment when the number of remaining virtual numbers in the virtual number set meets a second preset condition. The binding duration of the target virtual number is then determined based on the target time. Finally, the target virtual number is bound to the current account according to the binding duration. This achieves the purpose of flexibly setting the binding duration for the target virtual number. By setting the time when the number of remaining virtual numbers in the virtual number set falls below a preset threshold as the target time and setting the binding duration from the current moment to the target time as the target time, when it is predicted that the number of remaining virtual numbers in the virtual number set is insufficient, the binding relationship of the current account can be released to release virtual number resources and improve virtual number utilization.

[0087] In an exemplary embodiment, Figure 2 As shown, the virtual number processing method provided by the present disclosure also includes a target time prediction step, which can be specifically implemented by the following steps:

[0088] In step S210, the predicted number of remaining virtual numbers in the virtual number set at a predicted time is determined; the predicted time is after the current time;

[0089] In step S220, a target moment is selected from the predicted moments according to the predicted quantity; the target moment is the predicted moment when the predicted quantity meets the second preset condition.

[0090] The predicted time refers to each time after the current time when the number of remaining virtual numbers in the virtual number set is predicted. The predicted number refers to the predicted number of remaining virtual numbers in the virtual number set.

[0091] Specifically, at each predicted moment after the current moment, the server predicts the number of remaining virtual numbers in the virtual number set in turn to obtain a predicted number; determines whether the predicted number meets the second preset condition; if so, the predicted moment that meets the second preset condition is used as the target moment; otherwise, if not, continues to predict the number of remaining virtual numbers in the virtual number set at the next predicted moment to obtain the next predicted number, and determines whether the number meets the second preset condition until the target moment is found.

[0092] For example, if the current time is 10:00, the time moments within a 1-minute time interval after this can be used as prediction time moments. At the prediction time moment of 10:01, it is predicted that the remaining number of virtual numbers in the virtual number pool is n1. If n1 < T2N, 10:01 can be used as the target time moment. Otherwise, if n1 ≥ T2N, then the remaining number of virtual numbers in the virtual number pool at 10:02 can be further predicted.

[0093] The technical solution provided by the embodiments of the present disclosure first determines the predicted quantity of the remaining virtual numbers in the virtual number set at the prediction time moment; the prediction time moment is after the current time moment; then according to the predicted quantity, the target time moment is selected from the prediction time moments; the target time moment is the prediction time moment when the predicted quantity meets the second preset condition. In this way, the time moment when the remaining quantity of virtual numbers in the virtual number pool is insufficient can be predicted, improving the response speed of virtual number processing.

[0094] Further, the above step S210 of determining the predicted quantity of the remaining virtual numbers in the virtual number set at the prediction time moment specifically includes: determining each historical time moment associated with the prediction time moment within the preset historical time period; obtaining the historical quantity of the remaining virtual numbers in the virtual number set at each historical time moment; performing weighted summation on each historical quantity to obtain the predicted quantity of the remaining virtual numbers in the virtual number set at the prediction time moment.

[0095] Among them, the preset historical time period refers to a historical time period during which the quantity of the remaining virtual numbers in the virtual number set has been statistically counted. Each historical time moment refers to at least one time moment within the preset historical time period. The historical quantity refers to the quantity of the remaining virtual numbers in the virtual number set statistically counted at the historical time moment.

[0096] Specifically, during the past virtual number allocation process, the server can record each time moment when virtual numbers are allocated, as well as the quantity of the remaining virtual numbers in the virtual number set corresponding to each time moment, and generate a data table for storage. When it is necessary to determine the predicted quantity of the remaining virtual numbers in the virtual number set at the prediction time moment, the server obtains the historical time period, selects at least one historical time moment associated with the prediction time moment within the historical event segment, looks up the quantity of the remaining virtual numbers corresponding to each historical time moment in the data table to obtain the historical quantity, obtains the weight corresponding to each historical quantity, and performs weighted summation on the historical quantity according to the weight to obtain the predicted quantity of the remaining virtual numbers in the virtual number set at the prediction time moment.

[0097] For example, assuming the predicted time is 10:30 on Tuesday, the past week can be selected as the historical time period, and 10:30 on each day of the past week can be determined as the historical time, resulting in the historical times of 10:30 last Tuesday, 10:30 last Wednesday, 10:30 last Thursday, 10:30 last Friday, 10:30 last Saturday, 10:30 last Sunday, and 10:30 this Monday. Weights can be set according to the distance between the historical moments and the predicted time. A higher weight can be set for historical moments closer to the predicted time, and a lower weight can be set for historical moments farther from the predicted time. The distance between the historical moments and the predicted time can be calculated according to the number of weeks. For example, according to the number of weeks, Tuesday is closest to Tuesday, and the weight of 10:30 last Tuesday can be set to 40%. The next closest days are Monday and Wednesday, and the weights of last Wednesday and this Monday can be set to 15%. Then, the weights of last Thursday and last Sunday can be set to 10%. Friday and Saturday are farthest from Tuesday, and the weights of last Friday and last Saturday can be set to 5%.

[0098] The technical solution provided by the disclosed embodiments first determines each historical moment associated with the predicted moment within a preset historical time period; then obtains the historical number of virtual numbers remaining in the virtual number set at each historical moment; and finally, performs a weighted summation of each historical number to obtain the predicted number of virtual numbers remaining in the virtual number set at the predicted moment. In this way, by using historical data to predict the number of virtual numbers remaining in the virtual number set and performing a weighted summation of the historical numbers, the accuracy of the prediction of the number of remaining virtual numbers can be improved, thereby improving the accuracy of the determination of the binding duration, avoiding excessively long binding durations that reduce virtual number utilization, and also avoiding excessively short binding durations that reduce user experience.

[0099] In an exemplary embodiment, after the above step S110, the following further includes: if the number does not meet the first preset condition, determining a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority; if the current account meets the first priority and the first virtual number set meets the third preset condition, filtering out any virtual number from the first virtual number set; and binding the virtual number filtered out from the first virtual number set to the current account.

[0100] The first priority refers to a high priority, and the second priority refers to a low priority.

[0101] The third preset condition refers to that the number of virtual numbers in the number set is greater than 0.

[0102] Specifically, if the number of remaining virtual numbers in the virtual number set does not meet the first preset condition, the server divides the remaining virtual numbers in the virtual number set into two sets, namely, a first virtual number set and a second virtual number set, with the first virtual number set being used by accounts of the first priority and the second virtual number set being used by accounts of the second priority. If the current account meets the first priority and the number of virtual numbers in the first virtual number set is greater than 0, any virtual number from the first virtual number set is selected and bound to the current account.

[0103] For example, when number resources in the virtual number pool are scarce, for example, when the number of remaining virtual numbers is less than or equal to threshold T1, accounts can be divided into high-priority accounts and low-priority accounts, and the remaining virtual numbers in the virtual number pool can be divided into a high-priority number pool and a low-priority number pool. The high-priority number pool is used by high-priority accounts, and the low-priority number pool is used by low-priority accounts. The number of virtual numbers in the high-priority number pool can be greater than the number of virtual numbers in the low-priority number pool. If the current account is a high-priority account and there are available virtual numbers in the high-priority number pool, any virtual number can be selected from the high-priority number pool and assigned to the current account.

[0104] It should be noted that when the number of remaining virtual numbers in the virtual number set is limited, after the first-priority account obtains a virtual number from the first virtual number set, in order to alleviate the shortage of number resources, the virtual number can be released as soon as possible for use by other accounts. At this time, the binding duration of the virtual number can be set to the minimum binding duration.

[0105] The technical solution provided by the embodiment of the present disclosure first determines the first virtual number set and the second virtual number set based on the remaining virtual numbers in the virtual number set when the number does not meet the first preset condition; the first virtual number set is associated with the first priority, and the second virtual number set is associated with the second priority; the first priority is higher than the second priority; then, when the current account meets the first priority and the first virtual number set meets the third preset condition, any virtual number is filtered out from the first virtual number set; finally, the virtual number filtered out from the first virtual number set is bound to the current account. In this way, by allocating more virtual numbers to the first priority number set and fewer virtual numbers to the second priority number set, when number resources in the resource pool are scarce, the number usage needs of the first priority account can be prioritized to minimize the economic loss of the short video platform.

[0106] In an exemplary embodiment, Figure 3As shown, the virtual number processing method provided by the present disclosure also includes a virtual number unbinding step, which can be specifically implemented by the following steps:

[0107] In step S310, if the current account meets the first priority and the first virtual number set does not meet the third preset condition, a target bound account is screened from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set;

[0108] In step S320, the virtual number bound to the target binding account in the second virtual number set is unbound to obtain an unbound virtual number;

[0109] In step S330, the unbound virtual number is bound to the current account.

[0110] Specifically, for an account that meets the second priority level, if the number of virtual numbers in the second virtual number set is greater than 0, any number in the second virtual number set can be selected for binding, and the bound second-priority account will be used as the bound account. If the current account meets the first priority level and the number of virtual numbers in the first virtual number set is 0, a target bound account is selected from the bound accounts and unbound, releasing a virtual number in the second virtual number set, i.e., the unbound virtual number, which is then allocated to the current account for use.

[0111] For example, for a low-priority account, if there are virtual numbers available in the low-priority number pool, you can select any virtual number from the low-priority number pool and assign it to the low-priority account. If the current account is high-priority and the number of virtual numbers in the high-priority number pool is zero, you can select an account from the bound low-priority account to unbind it, freeing a virtual number from the low-priority number pool and assigning it to the high-priority account.

[0112] It should be noted that if the number of remaining virtual numbers in the virtual number set is limited, after the first-priority account obtains a virtual number from the second virtual number set, the binding duration of that virtual number can be set to the minimum binding duration to alleviate the number resource shortage. If the binding duration of the second-priority account exceeds the minimum binding duration before being unbound, this will also aggravate the number resource shortage. Therefore, the binding duration between the second-priority account and the virtual numbers in the second virtual number set can also be set to the minimum binding duration.

[0113] The technical solution provided by the embodiment of the present disclosure is as follows: when the current account meets the first priority and the first virtual number set does not meet the third preset condition, a target bound account is screened out from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set; then the virtual number bound to the target bound account in the second virtual number set is unbound to obtain the unbound virtual number; and finally, the unbound virtual number is bound to the current account. In this way, when there are no numbers in the high-priority number pool for the high-priority account to use, the virtual number from the bound low-priority account can be released for use by the high-priority account, further ensuring the virtual number usage needs of the high-priority account and ensuring the user experience of the high-priority account.

[0114] Furthermore, the above-mentioned step S310, filtering out a target binding account from the bound accounts, specifically includes: obtaining a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call order of the virtual numbers; each data node is associated with a binding account, a virtual number bound to the binding account, and a binding duration; based on the binding information linked list, filtering out a target data node from the multiple data nodes; the target data node is the first data node in the binding information linked list whose binding duration of the virtual number associated with it meets the duration condition; and determining the binding account associated with the target data node as the target binding account.

[0115] The binding information linked list refers to a linked list that records binding metadata, for example, a double-linked list that records the binding relationship between the bound account and the virtual number, as well as the binding duration. The data node can be a node that records the binding relationship between the bound account and the virtual number, as well as the binding duration.

[0116] The duration condition means that the actual binding duration is less than or equal to the binding duration.

[0117] Specifically, the server dynamically stores a binding information linked list. After a second-priority account is bound to a virtual number, if the second-priority account uses the virtual number to make a call, a data node is generated based on the second-priority account, the virtual number bound to it, and the predicted binding duration for the virtual number. This data node is then appended to the end of the binding information linked list, dynamically updating the binding information linked list. When a target binding account needs to be selected from the bound accounts, the first data node in the binding information linked list whose actual binding duration is less than or equal to the binding duration is selected as the target data node, and the second-priority account corresponding to the target data node is selected as the target binding account.

[0118] For example, after a low-priority account is bound to a virtual number, if a call occurs during the binding period, the data node corresponding to the low-priority account is appended to the end of a double-linked list. Every minute, a scheduled task can scan the linked list from the beginning and remove the unbound data nodes from the linked list. If the high-priority number pool is running low and the high-priority account needs to use a virtual number, the first data node within the binding period can be searched backward from the head of the linked list, and the account corresponding to that data node is used as the target binding account.

[0119] The technical solution provided by the embodiment of the present disclosure first obtains a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call order of the virtual numbers; each data node is associated with a binding account, a virtual number bound to the binding account, and a binding duration; then, based on the binding information linked list, a target data node is screened out from multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated in the binding information linked list meets the duration condition; finally, the binding account associated with the target data node is determined as the target binding account. In this way, by updating the binding information linked list, it is possible to ensure that the account corresponding to the data node at the head of the linked list is a low-priority account that is within the binding validity period and has the longest actual binding time, and unbind it, thereby minimizing the economic loss of the short video platform and maximizing economic benefits.

[0120] In an exemplary embodiment, after determining the first virtual number set and the second virtual number set, the method further includes: if the current account meets the second priority and the second virtual number set meets the third preset condition, filtering out any virtual number from the second virtual number set; and binding the virtual number filtered out from the second virtual number set to the current account.

[0121] Specifically, when the current account meets the second priority and the number of virtual numbers in the second virtual number set is greater than 0, any virtual number is selected from the second virtual number set and bound to the current account.

[0122] For example, if the current account is a low-priority account and there are virtual numbers available in the low-priority number pool, any virtual number can be selected from the low-priority number pool and allocated to the current user.

[0123] It should be noted that when the number of remaining virtual numbers in the virtual number set is limited, after the second-priority account obtains a virtual number from the second virtual number set, in order to alleviate the shortage of number resources, the virtual number can be released as soon as possible for use by other accounts. At this time, the binding duration of the virtual number can be set to the minimum binding duration.

[0124] The technical solution provided by the disclosed embodiments first selects any virtual number from the second virtual number set, provided that the current account meets the second priority level and the second virtual number set meets the third preset condition. The virtual number selected from the second virtual number set is then bound to the current account. This allows low-priority users to select virtual numbers from the low-priority number pool. Because the number resources in the low-priority number pool are fewer than those in the high-priority number pool, the virtual number usage needs of high-priority accounts can be guaranteed, ensuring a better user experience for high-priority accounts.

[0125] Figure 4 is a flow chart showing another virtual number processing method according to an exemplary embodiment. Figure 4 As shown, the virtual number processing method is used in a server and includes the following steps:

[0126] In step S401, in response to a virtual number binding request of a current account, the number of remaining virtual numbers in a virtual number set at the current moment is determined;

[0127] In step S402, if the number meets the first preset condition, the target virtual number is screened out from the remaining virtual numbers;

[0128] In step S403, each historical moment associated with the predicted moment within a preset historical time period is determined; the predicted moment is after the current moment;

[0129] In step S404, the historical number of remaining virtual numbers in the virtual number set at each historical moment is obtained;

[0130] In step S405, a weighted sum is taken for each historical number to obtain the predicted number of remaining virtual numbers in the virtual number set at the predicted moment;

[0131] In step S406, based on the predicted quantity, a target time is selected from the predicted times; the target time is the predicted time when the predicted quantity meets the second preset condition;

[0132] In step S407, the binding duration of the target virtual number is determined according to the target time;

[0133] In step S408, the target virtual number is bound to the current account according to the binding duration;

[0134] In step S409, if the number does not meet the first preset condition, a first virtual number set and a second virtual number set are determined based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with the first priority, and the second virtual number set is associated with the second priority; the first priority is higher than the second priority;

[0135] In step S410, if the current account meets the first priority and the first virtual number set meets the third preset condition, any virtual number is selected from the first virtual number set;

[0136] In step S411, a virtual number selected from the first virtual number set is bound to the current account;

[0137] In step S420, if the current account meets the first priority and the first virtual number set does not meet the third preset condition, a binding information linked list is obtained; the binding information linked list is used to store multiple data nodes according to the call order of the virtual numbers; each data node is associated with a bound account, a virtual number bound to the bound account, and a binding duration; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set;

[0138] In step S421, a target data node is selected from multiple data nodes according to the binding information linked list; the target data node is the first data node whose binding duration of the associated virtual number in the binding information linked list meets the duration condition;

[0139] In step S422, the binding account associated with the target data node is determined as the target binding account;

[0140] In step S423, the virtual number bound to the target binding account in the second virtual number set is unbound to obtain an unbound virtual number;

[0141] In step S424, the unbound virtual number is bound to the current account;

[0142] In step S430, if the current account meets the second priority and the second virtual number set meets the third preset condition, any virtual number is selected from the second virtual number set;

[0143] In step S431, a virtual number selected from the second virtual number set is bound to the current account.

[0144] In the above-mentioned virtual number binding method, by setting the time when the number of remaining virtual numbers in the virtual number set falls below a preset threshold as the target time and setting the period from the current time to the target time as the binding duration, when it is predicted that the number of remaining virtual numbers in the virtual number set is insufficient, the virtual number resources can be released by unbinding the current account, thereby improving the utilization rate of the virtual numbers. At the same time, the remaining virtual numbers in the virtual number pool are divided into a high-priority number pool and a low-priority number pool. The high-priority number pool is used by high-priority accounts, and the low-priority number pool is used by low-priority accounts. By having more virtual number resources in the high-priority number pool than in the low-priority number pool, the number usage needs of high-priority accounts can be guaranteed, reducing the economic loss of the short video platform.

[0145] In order to more clearly illustrate the virtual number processing method provided by the embodiment of the present disclosure, the content recommendation method is specifically described below using a specific embodiment. Figure 5 As shown, the present disclosure provides a virtual number processing system, which specifically includes the following units:

[0146] 1. Virtual number service unit: provides virtual number binding services to users, manages virtual number resource pools, and records relevant data information.

[0147] 2. Data Statistics Service Unit: This unit processes and aggregates the data collected by the virtual number service and then passes it as input to the prediction service. It also uses call data to rate merchants and provides this rating information to the virtual number service.

[0148] Specifically, data statistical indicators can be established, including indicators of the remaining amount of the virtual number pool at any minute of the day, such as Figure 6 The result graph of the predicted number of remaining virtual numbers shown also includes an indicator of the actual number of virtual number requests at any minute of the day, an indicator of the time it takes to establish a binding relationship and make a call, an indicator of the actual number of calls made by merchants per day, etc.

[0149] 3. Prediction service unit: obtains data from the data statistics service and performs training, and provides the virtual number service with the function of dynamically binding the virtual number duration based on the training results.

[0150] Specifically, the binding duration prediction provided by the prediction service can follow the following rules:

[0151] (1) The minimum binding duration is determined by the 90th percentile of the time it takes to establish a binding relationship and initiate a call in the past week. The percentile is configurable and the default is the 90th percentile.

[0152] (2) The binding duration is calculated based on the prediction service and is determined at the point in time when the remaining virtual number is less than 20%. For example, if a request to bind a virtual number is initiated at 10:00, and the remaining number is predicted to be less than 20% at 10:26, the binding duration is 26 minutes. The remaining percentage is configurable and defaults to 20%.

[0153] (3) The number remaining quantity prediction is based on the weighted average of the remaining quantity at each time point in the past week. For example, if today is Tuesday and you need to predict the number remaining quantity at 10:30, you can use the number remaining quantity data at 10:30 a.m. the week before today. As for the weight, the closer to Tuesday, the higher the data weight. For example, the data weight of last Tuesday is 40%, the data weight of last Wednesday and this Monday is 15%, the data weight of last Thursday and last Sunday is 10%, and the data weight of last Friday and last Saturday is 5%. The weights can support dynamic adjustment.

[0154] Figure 7 A flowchart of the steps for virtual number binding based on priority is provided. Figure 7 When virtual number resources are in short supply (for example, only 5% are left), a priority binding and unbinding strategy can be enabled.

[0155] Priority is determined based on the merchant's rating. Merchants with higher call volumes in the past week have higher priority, while merchants with lower call volumes have lower priority. Merchants ranked in the top 20% in call volume in the past week are considered high-quality merchants (high priority). Otherwise, merchants ranked below the top 20% in call volume in the past week are considered ordinary merchants (low priority).

[0156] When the priority policy is enabled, the remaining number resources can be split into two number pools: a high-priority number pool, which can account for 70% of the remaining number resources, and a low-priority number pool, which can account for 30% of the remaining number resources. Premium merchants select numbers from the high-priority number pool, while ordinary merchants select numbers from the low-priority number pool.

[0157] If the number resources in the low-priority number pool are exhausted, ordinary merchants will have no numbers available. If the number resources in the high-priority number pool are exhausted, ordinary merchants with bound virtual numbers will be selected according to the unbinding selection strategy to unbind the merchants, and the released numbers will be allocated to high-quality merchants for binding and use.

[0158] Figure 8 Provides a schematic diagram of the binding information list. Figure 8The unbinding selection strategy can be that after an ordinary merchant successfully binds a virtual number, the binding metadata information is appended to the end of the double-linked list. If the ordinary merchant has made a call during the binding period, this data node is moved to the end of the linked list. Every minute, a scheduled task will scan the linked list from the beginning and remove the unbound data nodes from the linked list. When the high-priority number pool resources are insufficient and a high-quality merchant needs to use a virtual number, the first data node that is still within the binding validity period will be searched from the head of the linked list, the data node will be removed from the linked list, and the corresponding virtual number will be unbound at the same time. After the unbinding is successful, the virtual number will be allocated to the high-priority merchant for use.

[0159] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0160] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can be referred to each other, and each embodiment focuses on the differences from other embodiments. For related parts, please refer to the description of other method embodiments.

[0161] Based on the same inventive concept, an embodiment of the present disclosure further provides a virtual number processing device for implementing the above-mentioned virtual number processing method.

[0162] Figure 9 FIG. 1 is a block diagram of a virtual number processing device according to an exemplary embodiment. Figure 9 The device includes a number quantity determination unit 910, a time prediction unit 920, a binding duration determination unit 930 and a binding unit 940.

[0163] The number determining unit 910 is configured to execute, in response to a virtual number binding request of a current account, determining the number of remaining virtual numbers in the virtual number set at a current moment;

[0164] The time prediction unit 920 is configured to select a target virtual number from the remaining virtual numbers and predict a target time when the number of remaining virtual numbers in the virtual number set meets a first preset condition; the target time is a time after the current time when the number of remaining virtual numbers in the virtual number set meets a second preset condition;

[0165] The duration determining unit 930 is configured to determine the binding duration of the target virtual number according to the target time;

[0166] The number binding unit 940 is configured to bind the target virtual number to the current account according to the binding duration.

[0167] In an exemplary embodiment, the moment prediction unit 920 is further configured to determine the predicted number of remaining virtual numbers in the virtual number set at the predicted moment; the predicted moment is after the current moment; based on the predicted number, the target moment is filtered out from the predicted moments; the target moment is the predicted moment where the predicted number meets the second preset condition.

[0168] In an exemplary embodiment, the moment prediction unit 920 is further configured to determine each historical moment associated with the predicted moment within a preset historical time period; obtain the historical number of remaining virtual numbers in the virtual number set at each historical moment; and perform weighted summation on each historical number to obtain the predicted number of remaining virtual numbers in the virtual number set at the predicted moment.

[0169] In an exemplary embodiment, the device also includes a number shortage processing unit, which is configured to execute, when the number does not meet the first preset condition, determining a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority; when the current account meets the first priority and the first virtual number set meets the third preset condition, filtering out any virtual number from the first virtual number set; and binding the virtual number filtered out from the first virtual number set to the current account.

[0170] In an exemplary embodiment, the number shortage processing unit is further configured to, when the current account meets the first priority and the first virtual number set does not meet the third preset condition, filter out a target bound account from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set; unbind the virtual number in the second virtual number set that is bound to the target bound account to obtain an unbound virtual number; and bind the unbound virtual number to the current account.

[0171] In an exemplary embodiment, the number shortage processing unit is further configured to execute acquisition of a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call order of the virtual numbers; each data node is associated with a binding account, a virtual number bound to the binding account, and a binding duration; according to the binding information linked list, a target data node is screened out from the multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated with the binding information linked list meets the duration condition; the binding account associated with the target data node is determined as the target binding account.

[0172] In an exemplary embodiment, the number shortage processing unit is further configured to, when the current account meets the second priority and the second virtual number set meets the third preset condition, filter out any virtual number from the second virtual number set; and bind the virtual number filtered out from the second virtual number set to the current account.

[0173] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0174] Each module in the virtual number processing device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0175] Figure 10 FIG. 1 is a block diagram of a server 1000 for executing a virtual number processing method according to an exemplary embodiment. Figure 10 The server 1000 includes a processing component 1020, which further includes one or more processors, and a memory resource represented by a memory 1022 for storing instructions, such as applications, that can be executed by the processing component 1020. The application stored in the memory 1022 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1020 is configured to execute the instructions to perform the above-described method.

[0176] The server 1000 may also include a power supply component 1024 configured to perform power management of the server 1000, a wired or wireless network interface 1026 configured to connect the server 1000 to a network, and an input / output (I / O) interface 1028. The server 1000 may operate based on an operating system stored in the memory 1022, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.

[0177] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1022 including instructions, and the instructions can be executed by a processor of the server 1000 to perform the above method. The storage medium can be a computer-readable storage medium, for example, a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0178] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions, and the instructions can be executed by a processor of the server 1000 to implement the above method.

[0179] It should be noted that the above-mentioned devices, servers, computer-readable storage media, computer program products, etc. can also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments and will not be described one by one here.

[0180] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.

[0181] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A virtual number processing method, characterized in that: include: In response to a virtual number binding request for a current account, determining the number of remaining virtual numbers in the virtual number set at a current moment; When the number satisfies a first preset condition, a target virtual number and a predicted target time are screened out from the remaining virtual numbers; the target time is a time after the current time when the number of remaining virtual numbers in the virtual number set satisfies a second preset condition; Determining a binding duration of the target virtual number according to the target time; wherein the binding duration is not less than a minimum binding duration; Bind the target virtual number to the current account according to the binding duration.

2. The method according to claim 1, characterized in that The predicted target time includes: Determining a predicted number of remaining virtual numbers in the set of virtual numbers at a predicted time; the predicted time is after the current time; According to the predicted quantity, a target moment is filtered out from the predicted moments; the target moment is the predicted moment when the predicted quantity meets the second preset condition.

3. The method according to claim 2, characterized in that The determining of the predicted number of remaining virtual numbers in the virtual number set at the prediction moment includes: Determining each historical moment associated with the predicted moment within a preset historical time period; Obtaining the historical number of remaining virtual numbers in the virtual number set at each historical moment; A weighted sum is taken for each of the historical quantities to obtain a predicted number of remaining virtual numbers in the virtual number set at the predicted moment.

4. The method according to claim 1, wherein After determining the number of remaining virtual numbers in the virtual number set at the current moment in response to the virtual number binding request of the current account, the method further includes: If the number does not satisfy the first preset condition, determining a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority; If the current account meets the first priority and the first virtual number set meets a third preset condition, screening any virtual number from the first virtual number set; Bind the virtual number selected from the first virtual number set to the current account.

5. The method according to claim 4, characterized in that After determining the first virtual number set and the second virtual number set, the method further includes: If the current account meets the first priority and the first virtual number set does not meet the third preset condition, screening a target bound account from the bound accounts; the bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set; Unbinding the virtual number bound to the target bound account in the second virtual number set to obtain an unbound virtual number; Bind the unbound virtual number to the current account.

6. The method according to claim 5, characterized in that The step of filtering out a target bound account from the bound accounts includes: Obtaining a binding information linked list; the binding information linked list is used to store multiple data nodes according to the call sequence of the virtual numbers; each data node is associated with the binding account, the virtual number bound to the binding account, and the binding duration; According to the binding information linked list, a target data node is screened out from the multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated with the binding information linked list meets the duration condition; The binding account associated with the target data node is determined as the target binding account.

7. The method according to claim 4, characterized in that After determining the first virtual number set and the second virtual number set, the method further includes: If the current account meets the second priority and the second virtual number set meets the third preset condition, screening any virtual number from the second virtual number set; The virtual number selected from the second virtual number set is bound to the current account.

8. A virtual number processing device, characterized in that: include: a quantity determining unit configured to execute, in response to a virtual number binding request of a current account, determining the number of remaining virtual numbers in the virtual number set at a current moment; a time prediction unit configured to, when the number satisfies a first preset condition, filter out a target virtual number from the remaining virtual numbers and predict a target time; the target time being a time after the current time when the number of remaining virtual numbers in the virtual number set satisfies a second preset condition; a duration determining unit, configured to determine a binding duration of the target virtual number according to the target time; The binding duration is not less than the minimum binding duration; The number binding unit is configured to bind the target virtual number to the current account according to the binding duration.

9. The device according to claim 8, characterized in that The moment prediction unit is further configured to determine the predicted number of remaining virtual numbers in the virtual number set at a predicted moment; the predicted moment is after the current moment; based on the predicted number, a target moment is filtered out from the predicted moments; the target moment is the predicted moment at which the predicted number meets the second preset condition.

10. The device according to claim 9, characterized in that The moment prediction unit is further configured to determine each historical moment associated with the predicted moment within a preset historical time period; obtain the historical number of remaining virtual numbers in the virtual number set at each historical moment; and perform weighted summation on each of the historical numbers to obtain the predicted number of remaining virtual numbers in the virtual number set at the predicted moment.

11. The device according to claim 8, characterized in that The apparatus further includes a number shortage processing unit configured to, if the number does not satisfy the first preset condition, determine a first virtual number set and a second virtual number set based on the remaining virtual numbers in the virtual number set; the first virtual number set is associated with a first priority, and the second virtual number set is associated with a second priority; the first priority is higher than the second priority; and if the current account satisfies the first priority and the first virtual number set satisfies a third preset condition, filter out any virtual number from the first virtual number set; Bind the virtual number selected from the first virtual number set to the current account.

12. The device according to claim 11, characterized in that The number shortage processing unit is further configured to filter out a target bound account from bound accounts if the current account meets the first priority and the first virtual number set does not meet the third preset condition; The bound account is an account that meets the second priority and is bound to a virtual number in the second virtual number set; Unbinding the virtual number bound to the target bound account in the second virtual number set to obtain an unbound virtual number; and binding the unbound virtual number to the current account.

13. The device according to claim 12, characterized in that The number shortage processing unit is further configured to execute acquisition of a binding information linked list; the binding information linked list is used to store a plurality of data nodes according to the call sequence of the virtual numbers; each data node is associated with the binding account, the virtual number bound to the binding account, and the binding duration; According to the binding information linked list, a target data node is screened out from the multiple data nodes; the target data node is the first data node whose binding duration of the virtual number associated with the binding information linked list meets the duration condition; The binding account associated with the target data node is determined as the target binding account.

14. The device according to claim 11, characterized in that The number shortage processing unit is further configured to screen out any virtual number from the second virtual number set if the current account meets the second priority and the second virtual number set meets the third preset condition; The virtual number selected from the second virtual number set is bound to the current account.

15. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the virtual number processing method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the virtual number processing method according to any one of claims 1 to 7.

17. A computer program product comprising instructions, characterized in that: When the instruction is executed by a processor of the server, the server is enabled to execute the virtual number processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Virtual number call method, device and system, electronic equipment and storage medium

    CN109587356A

  • Calling method and device based on virtual number, computer equipment and storage medium

    CN110266896A