Traffic charging method, device, equipment and computer storage medium
By obtaining user data usage details and data plan information, the lowest-priced and soon-to-expire plans are identified for billing, solving the problem of numerous and complex data package information and improving user experience.
Patent Information
- Application Number
- CN202111137184.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2041-09-27
AI Technical Summary
In the existing technology, traffic packets contain a lot of information and are complicated to sort, which affects the user experience.
By obtaining user data usage details and user-subscribed data information, and based on the usage time and pricing information of each data package, the system determines the data package with the lowest price and the time remaining between the current and the expiration date of the data package is less than a preset time threshold, and then bills the data package accordingly.
It simplifies the comparison and sorting of data plans, improving the user experience.
Smart Images

Figure CN115884116B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the field of charging in business operation support system, and particularly relates to a traffic charging method, device, equipment and computer storage medium. BACKGROUND
[0002] With the rapid development of network, the use of traffic is more and more frequent, and users pay more attention to the price of traffic use. Therefore, how to reasonably charge the traffic used by users becomes a problem to be solved.
[0003] In the prior art, priority setting and sorting are mainly performed by comparing all traffic package information in the network, and then charging the traffic used by users. However, the above method has the problems of too much traffic package information and complex sorting, which affects the user experience. SUMMARY
[0004] The embodiments of the present application provide a traffic charging method, device, equipment and computer storage medium, which can solve the problem of too much traffic package information and complex sorting in the prior art.
[0005] In a first aspect, the embodiments of the present application provide a traffic charging method, which comprises:
[0006] obtaining user traffic call data and user traffic information subscribed by a user; wherein the user traffic information comprises information of a traffic package, use time information of each traffic package, and cost information of each traffic package;
[0007] determining, according to the use time information of each traffic package and the cost information of each traffic package, a first target traffic package with a time length less than a preset time length threshold from a current time to a cut-off use time of each traffic package and with the lowest cost;
[0008] charging the user traffic call data according to the first target traffic package.
[0009] In an optional implementation, the user traffic information further comprises regional information of each traffic package; and the determining, according to the use time information of each traffic package and the cost information of each traffic package, of a first target traffic package with a time length less than a preset time length threshold from a current time to a cut-off use time of each traffic package and with the lowest cost comprises:
[0010] When the region information comprises the first region information or the second region information, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cut-off use time to a current time less than a preset time length threshold is determined as the first target traffic package from the traffic packages corresponding to the first region information or the second region information.
[0011] In an optional implementation, the user traffic information further comprises service use range information, the service use range information representing whether the traffic package is a directional traffic or a non-directional traffic; when the region information comprises the second region information, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cut-off use time to a current time less than a preset time length threshold is determined as the first target traffic package from the traffic packages corresponding to the second region information, comprising:
[0012] When the region information is the second region information and the service use range information represents that the traffic of the traffic package is directional traffic or non-directional traffic, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cut-off use time to a current time less than a preset time length threshold is determined as the first target traffic package from the traffic packages corresponding to the second region information.
[0013] In an optional implementation, the user traffic information further comprises carryover attribute information, the carryover attribute information representing whether the traffic package comprises carryover traffic; when the region information is the second region information and the service use range information represents that the traffic of the traffic package is non-directional traffic, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cut-off use time to a current time less than a preset time length threshold is determined as the first target traffic package from the traffic packages corresponding to the second region information, comprising:
[0014] When the region information is the second region information, the service use range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents no carryover traffic, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cut-off use time to a current time less than a preset time length threshold is determined as the first target traffic package from the traffic packages corresponding to the second region information.
[0015] In an optional implementation, the method further includes:
[0016] When the region information is the second region information, the service usage range information indicates that the traffic of the traffic package is non-directional traffic, and the carryover attribute information indicates that the carryover traffic is included, it is determined that the carryover traffic package corresponding to the carryover traffic is a first target traffic package.
[0017] In an optional implementation, the user traffic information further includes shared attribute information, the shared attribute information indicates that the traffic package is enterprise traffic and home traffic; the method further includes:
[0018] When the traffic of the first target traffic package is used up, and the shared attribute information indicates that the traffic package is the enterprise traffic and the home traffic, it is determined from the traffic packages corresponding to the shared attribute information that a traffic package with a time length less than a preset time length threshold from a current time to a cutoff use time of each traffic package and a lowest cost traffic package are a second target traffic package;
[0019] The user traffic call detail record is charged according to the second target traffic package.
[0020] In an optional implementation, the user traffic information further includes out-of-package cost information; the method further includes:
[0021] When it is determined that the traffic of each traffic package is used up, it is determined that an out-of-package traffic cost corresponding to the out-of-package cost information has a lowest cost;
[0022] The user traffic call detail record is charged according to the out-of-package traffic cost.
[0023] In a second aspect, an embodiment of the present application provides a traffic charging device, which includes:
[0024] An acquisition module is configured to acquire a user traffic call detail record and user traffic information subscribed by a user; the user traffic information includes information of a traffic package, usage time information of each traffic package, and cost information of each traffic package;
[0025] A determination module is configured to determine, according to the usage time information of each traffic package and the cost information of each traffic package, a first target traffic package with a time length less than a preset time length threshold from a current time to a cutoff use time of each traffic package and a lowest cost.
[0026] A charging module is configured to charge the user traffic call detail record according to the first target traffic package.
[0027] In an optional implementation, the user traffic information further includes regional information of each traffic package.
[0028] The determining module is further configured to, when the regional information includes the first regional information or the second regional information, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with a cost that is the lowest and a time length from a use deadline of the traffic package to a current time that is less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the first regional information or the second regional information.
[0029] In an optional implementation, the user traffic information further includes service use range information, the service use range information indicating whether the traffic package is a directional traffic or a non-directional traffic.
[0030] The determining module is further configured to, when the regional information is the second regional information and the service use range information indicates that the traffic of the traffic package is a directional traffic or a non-directional traffic, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with a cost that is the lowest and a time length from a use deadline of the traffic package to a current time that is less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the second regional information.
[0031] In an optional implementation, the user traffic information further includes carryover attribute information, the carryover attribute information indicating whether the traffic package includes carryover traffic.
[0032] The determining module is further configured to, when the regional information is the second regional information, the service use range information indicates that the traffic of the traffic package is a non-directional traffic, and the carryover attribute information indicates that the traffic package does not include carryover traffic, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with a cost that is the lowest and a time length from a use deadline of the traffic package to a current time that is less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the second regional information.
[0033] In an optional implementation, the traffic charging apparatus further includes:
[0034] The determining module is further configured to, when the regional information is the second regional information, the service use range information indicates that the traffic of the traffic package is a non-directional traffic, and the carryover attribute information indicates that the traffic package includes carryover traffic, determine a carryover traffic package corresponding to the carryover traffic as the first target traffic package.
[0035] In an optional implementation, the user traffic information further includes shared attribute information, the shared attribute information indicating that the traffic packages are enterprise traffic and family traffic.
[0036] The determining module is further configured to, when the traffic of the first target traffic package is used up and the shared attribute information indicates that the traffic packages are the enterprise traffic and the family traffic, determine, from the traffic packages corresponding to the shared attribute information, a traffic package with a time length less than a preset time length threshold from a current time to a cutoff use time of each traffic package and with a lowest cost as a second target traffic package.
[0037] The charging module is further configured to charge the user traffic bill according to the second target traffic package.
[0038] In an optional implementation, the user traffic information further includes out-of-package cost information.
[0039] The determining module is further configured to, when it is determined that the traffic of each traffic package is used up, determine, from the out-of-package cost information, an out-of-package traffic cost with a lowest cost as the out-of-package traffic cost.
[0040] The charging module is further configured to charge the user traffic bill according to the out-of-package traffic cost.
[0041] In a third aspect, an electronic device is provided, which includes a processor and a memory storing computer program instructions.
[0042] The processor, when executing the computer program instructions, implements the traffic charging method in any of the embodiments of the first aspect.
[0043] In a fourth aspect, a computer storage medium is provided, which stores computer program instructions. When the computer program instructions are executed by a processor, the traffic charging method in any of the embodiments of the first aspect is implemented.
[0044] The flow charging method, device, equipment and computer storage medium provided by the embodiments of the present application, by obtaining the user flow bill and the user flow information subscribed by the user, and according to the use time information of each flow package and the tariff information of each flow package, determining the flow package with the longest time length from the current time to the cut-off use time and the lowest tariff, and then charging the user flow bill according to the flow package, in this way, without comparing and sorting all flow packages in the network, but starting charging from the flow package with the longest time length from the current time to the cut-off use time and the lowest tariff, the flow package information is less and the sorting is simple, and the use experience of the user is improved. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced. For those skilled in the art, other drawings can also be obtained without creative labor on the premise of not paying the creative labor.
[0046] Figure 1 is a flow diagram of a flow charging method provided by an embodiment of the present application;
[0047] Figure 2 is a structural diagram of a flow charging device provided by another embodiment of the present application;
[0048] Figure 3 is a structural diagram of an electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION
[0049] The features and exemplary embodiments of various aspects of the present application will be described in detail below, in order to make the purposes, technical solutions and advantages of the present application more clear and apparent, the present application will be further described in detail below in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, but not to limit the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.
[0050] It is to be noted that, in the present document, relational terms such as first and second and the like can be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0051] To solve the problems in the prior art, the embodiments of the present application provide a traffic billing method, device, equipment and computer storage medium. The traffic billing method can be applied to a scenario that a billing system of a mobile communication operator bills multiple traffic packages subscribed by a user, wherein the mobile communication operator can be, for example, a mobile, a telecom, a Unicom and other operators. The traffic billing method provided by the embodiments of the present application will be introduced first.
[0052] Figure 1 A flowchart of a traffic billing method provided by an embodiment of the present application is shown. As shown in the figure, the traffic billing method can specifically include the following steps: Figure 1
[0053] S110, obtaining user traffic call data and user traffic information subscribed by the user, wherein the user traffic information includes information of a traffic package, usage time information of each traffic package, and tariff information of each traffic package.
[0054] The user traffic call data can be traffic usage record information of the user in a period of time, and the user traffic information can include information of a traffic package subscribed by the user and corresponding minimum atomic element information of each traffic package, wherein the minimum atomic element information can include usage time information and tariff information. The usage time information can be a usage time range of the package, such as a 3-day package, a 5-day package and a 1-month package, and the tariff information can be traffic unit price information of the package, such as 5 yuan per megabyte of the package A.
[0055] In addition, the minimum atomic element information can be extracted according to a minimum atomic element registration table, such as the minimum atomic element registration table shown in Table 1. The minimum atomic element can include information such as carryover attribute, region, business use range, use time, cost, sharing attribute, out-of-package cost, and reserved field, and the reserved field can extend the minimum atomic element. The minimum atomic element needs to be registered when the business is online, and is a mandatory field.
[0056] Table 1: Minimum atomic element registration table
[0057]
[0058] S120, according to the use time information of each traffic package and the cost information of each traffic package, determining a first target traffic package with the lowest cost and a time length from a current time to a use deadline of the first target traffic package less than a preset time length threshold.
[0059] The first target traffic package can be a traffic package with the lowest cost and a time length from a use deadline of the traffic package to a current time less than a preset time length threshold among the traffic packages subscribed by the user, wherein the preset time length threshold can be a time length set arbitrarily according to needs. The use time and cost of each traffic package subscribed by the user are compared, and a traffic package that will expire soon is preferentially selected.
[0060] For example, user traffic bills and user-subscribed user traffic information are obtained. The user traffic bills show the amount of traffic used by the user, and the user-subscribed traffic packages include a 30-yuan 5G traffic package A and a 10-yuan 3G traffic package B. According to the use time information of the traffic packages, it is calculated that the traffic package A has 1 day to the deadline, and the traffic package B has 5 days to the deadline. Therefore, the traffic package A is preferentially selected to charge the user traffic bills.
[0061] S130, charging the user traffic bills according to the first target traffic package.
[0062] In the embodiments of the present application, if the traffic in the first target traffic package is less than the traffic used by the user in the user traffic bills, after charging the user traffic bills with the corresponding traffic in the first target traffic package, the above steps are repeated to determine the first target traffic package for subsequent charging.
[0063] Exemplarily, the user traffic bill shows that the user has used 6G traffic, the user subscribes to a 30-yuan 5G traffic package A, a 10-yuan 3G traffic package B, and a 15-yuan 4G traffic package C, according to the usage time information, it is calculated that the traffic package A has 1 day to reach the time limit, and the traffic packages B and C have 5 days to reach the time limit, the traffic package A is preferentially selected to charge the user traffic bill, and the remaining 1G traffic is charged by using the traffic package B.
[0064] Therefore, by obtaining the user traffic bill and the user traffic information subscribed by the user, and according to the usage time information of each traffic package and the cost information of each traffic package, the traffic package with the lowest cost and the time length from the cutoff usage time of each traffic package to the current time less than the preset time length threshold is determined, and then the user traffic bill is charged according to the traffic package, so that it is not necessary to compare and sort all traffic packages in the network, but the traffic package information is less and the sorting is simple, and the user's use experience is improved.
[0065] Based on this, in an optional implementation, the user traffic information further includes regional information of each traffic package; the S120 of determining the first target traffic package with the lowest cost and the time length from the cutoff usage time of each traffic package to the current time less than the preset time length threshold according to the usage time information of each traffic package and the cost information of each traffic package can specifically include:
[0066] When the regional information includes the first regional information or the second regional information, the first target traffic package with the lowest cost and the time length from the cutoff usage time of each traffic package to the current time less than the preset time length threshold is determined from the traffic package corresponding to the first regional information or the second regional information according to the usage time information of each traffic package and the cost information of each traffic package.
[0067] In the embodiment of the application, the regional information can be the region limit of the traffic package, the first regional information can represent international, and the second regional information can represent domestic, wherein the domestic can be further divided into local and non-local, which is not limited here.
[0068] Exemplarily, the user traffic bill shows the amount of traffic used by the user, and the region where the traffic is used is domestic, and the user subscribes to traffic package A, which is a 30-yuan 5G domestic traffic package, traffic package B, which is a 10-yuan 3G domestic traffic package, and traffic package C, which is a 10-yuan 3G international traffic package. Then, the usage time and the cost of traffic package A and traffic package B are compared to determine that the time length of the cutoff usage time of each traffic package from the current time is less than the preset time length threshold, and the traffic package with the lowest cost is the first target traffic package, and then the user traffic bill is charged.
[0069] Therefore, according to the region information of each traffic package, it can be determined whether each traffic package is suitable for domestic or international, so that the selection of the first target traffic package is more accurate, and the accuracy of traffic charging is improved.
[0070] In an optional embodiment, the user traffic information further includes service usage range information, and the service usage range information represents that the traffic package is directional traffic or non-directional traffic. When the region information includes the second region information, the step 120 of determining the first target traffic package with the lowest cost from each traffic package whose cutoff usage time from the current time is less than the preset time length threshold according to the usage time information of each traffic package and the cost information of each traffic package can further include:
[0071] When the region information is the second region information, and the service usage range information represents that the traffic of the traffic package is directional traffic or non-directional traffic, the first target traffic package with the lowest cost is determined from the traffic package corresponding to the second region information according to the usage time information of each traffic package and the cost information of each traffic package, and the cutoff usage time of each traffic package from the current time is less than the preset time length threshold.
[0072] In the embodiment of the application, the service usage range information can be platform range information of the traffic package, and the directional traffic can be data traffic generated by using a specific platform when surfing the Internet in the domestic, wherein the specific service can be a specified application, content, etc. The non-directional traffic can be data traffic that can be used on any platform when surfing the Internet in the domestic.
[0073] Exemplarily, the region where the user has used the traffic is domestic in the user traffic information, the use range is non-directional traffic, and the traffic package A subscribed by the user is a 30-yuan 5G domestic non-directional traffic package, the traffic package B is a 10-yuan 3G domestic non-directional traffic package, and the traffic package C is a 10-yuan 3G domestic directional traffic package. Then, the use time and the cost of the traffic package A and the traffic package B are compared again to determine that the time length of the cut-off use time of each traffic package from the current time is less than the preset time length threshold, and the traffic package with the lowest cost is the first target traffic package, and then the user traffic bill is charged.
[0074] Therefore, by judging whether each traffic package is applicable to non-directional traffic or directional traffic according to the service use range information of each traffic package, the traffic package can be selected accordingly.
[0075] In an optional implementation, the user traffic information further includes carry-over attribute information, the carry-over attribute information representing whether to include carry-over traffic. When the region information is the second region information and the service use range information represents that the traffic of the traffic package is non-directional traffic, the step 120 of determining the first target traffic package with the lowest cost according to the use time information of each traffic package and the cost information of each traffic package can further include:
[0076] When the region information is the second region information, the service use range information represents that the traffic of the traffic package is non-directional traffic, and the carry-over attribute information represents no carry-over traffic, the first target traffic package with the lowest cost is determined from the traffic package corresponding to the second region information according to the use time information of each traffic package and the cost information of each traffic package.
[0077] In the embodiment of the application, the carry-over traffic can be the traffic that is not used up last month and is carried over to the next month.
[0078] Exemplarily, the region where the user has used the traffic is domestic in the user traffic information, the use range is non-directional traffic, and the traffic package A subscribed by the user is a 30-yuan 5G domestic non-directional traffic package, the traffic package B is a 10-yuan 3G domestic non-directional traffic package, and the traffic package C is a 10-yuan 3G domestic directional traffic package. Then, the use time and the cost of the traffic package A and the traffic package B are compared again to determine that the time length of the cut-off use time of each traffic package from the current time is less than the preset time length threshold, and the traffic package with the lowest cost is the first target traffic package, and then the user traffic bill is charged.
[0079] Therefore, by judging whether there is carry-over traffic in the user traffic information according to the carry-over attribute information, the carry-over traffic can be preferentially selected to charge the user traffic bill, and the customer satisfaction is improved.
[0080] In an optional implementation, the flow charging method can further include:
[0081] When the region information is the second region information, the service usage range information indicates that the flow of the flow package is non-directional flow, and the carryover attribute information indicates that the carryover flow is included, the carryover flow package corresponding to the carryover flow is determined as the first target flow package.
[0082] For example, the user flow information shows that the region where the user has used the flow is domestic, the usage range is non-directional flow, and there is carryover flow, the carryover flow is the flow package A subscribed by the user last month, and there is remaining flow carried over to this month, and the carryover flow in the flow package A is used to charge the user flow bill preferentially.
[0083] Therefore, after determining that there is carryover flow in the user flow information, the carryover flow is preferentially selected to charge the user flow bill, and the user experience is improved.
[0084] In an optional implementation, the user flow information further includes sharing attribute information, the sharing attribute information indicates that the flow package is enterprise flow and family flow, and the flow charging method can further include:
[0085] When the flow of the first target flow package is used up, and the sharing attribute information indicates that the flow package is enterprise flow and family flow, a flow package whose time length from the cutoff use time to the current time is less than a preset time length threshold and whose cost is the lowest is determined from the flow packages corresponding to the sharing attribute information, and the flow package is the second target flow package.
[0086] The user flow bill is charged according to the second target flow package.
[0087] In the embodiments of the application, the flow package corresponding to the sharing attribute information can be an enterprise flow package or a family flow package that can be shared with specific personnel, and the specific personnel can be personnel set in advance. In addition, the second target flow package can be a flow package determined from the flow packages corresponding to the sharing attribute information.
[0088] For example, the user flow information shows that the flow in the personal flow package subscribed by the user and the carryover flow has been used up, and the sharing attribute information indicates that there are enterprise and family flow packages for sharing, and then the usage time and the cost of the enterprise and family flow packages are compared to determine a flow package whose time length from the cutoff use time to the current time is less than a preset time length threshold and whose cost is the lowest, and the flow package is the second target flow package, and the user flow bill is charged.
[0089] Thus, by judging whether there is a shared traffic package according to the shared attribute information, and further using the shared traffic package when the traffic in the personal traffic package and the transferred traffic subscribed by the user is used up, the user experience is improved.
[0090] In an optional embodiment, the user traffic information further comprises out-of-package tariff information; and the traffic charging method specifically can further comprise:
[0091] When it is judged that the traffic of each traffic package is used up, determining the out-of-package traffic tariff with the lowest tariff corresponding to the out-of-package tariff information;
[0092] Charging the user traffic bill according to the out-of-package traffic tariff.
[0093] In the embodiment of the application, the out-of-package tariff information can be a tariff for using traffic outside the traffic package.
[0094] Exemplarily, when it is shown in the user traffic information that all the traffic in the traffic package subscribed by the user is used up, the out-of-package traffic tariff with the lowest tariff is determined from the out-of-package tariff information, and then the user traffic bill is charged.
[0095] Thus, by judging the out-of-package traffic tariff with the lowest tariff corresponding to the out-of-package tariff information, and further using the out-of-package traffic tariff with the lowest tariff when the traffic in the traffic package subscribed by the user is used up, the user experience is further improved.
[0096] Figure 2 Fig. 1 is a structural schematic diagram of a traffic charging device 200 according to an exemplary embodiment.
[0097] As shown in Figure 2 the traffic charging device 200 can comprise:
[0098] An acquisition module 201 is configured to acquire a user traffic bill and user traffic information subscribed by a user; wherein the user traffic information comprises information of a traffic package, usage time information of each traffic package, and tariff information of each traffic package;
[0099] A determination module 202 is configured to determine, according to the usage time information of each traffic package and the tariff information of each traffic package, a first target traffic package with the lowest tariff and a time length from a cutoff usage time of each traffic package to a current time being less than a preset time length threshold.
[0100] A charging module 203 is configured to charge the user traffic bill according to the first target traffic package.
[0101] In an optional embodiment, the user traffic information further comprises regional information of each traffic package;
[0102] The determining module 202 is further configured to, when the region information comprises the first region information or the second region information, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cutoff use time of the traffic package to a current time less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the first region information or the second region information.
[0103] In an optional implementation, the user traffic information further comprises service use range information, the service use range information indicating whether the traffic package is a directional traffic or a non-directional traffic.
[0104] The determining module 202 is further configured to, when the region information is the second region information and the service use range information indicates that the traffic of the traffic package is the directional traffic or the non-directional traffic, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cutoff use time of the traffic package to a current time less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the second region information.
[0105] In an optional implementation, the user traffic information further comprises carryover attribute information, the carryover attribute information indicating whether the traffic package includes carryover traffic.
[0106] The determining module 202 is further configured to, when the region information is the second region information, the service use range information indicates that the traffic of the traffic package is the non-directional traffic, and the carryover attribute information indicates that the traffic package does not include carryover traffic, determine, according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with the lowest cost and a time length from a cutoff use time of the traffic package to a current time less than a preset time length threshold as the first target traffic package from the traffic packages corresponding to the second region information.
[0107] In an optional implementation, the traffic charging apparatus 200 further comprises:
[0108] The determining module 202 is further configured to, when the region information is the second region information, the service use range information indicates that the traffic of the traffic package is the non-directional traffic, and the carryover attribute information indicates that the traffic package includes carryover traffic, determine a carryover traffic package corresponding to the carryover traffic as the first target traffic package.
[0109] In an optional implementation, the user traffic information further comprises sharing attribute information, the sharing attribute information indicating that the traffic package is enterprise traffic and home traffic.
[0110] The determining module 202 is further configured to, when the traffic of the first target traffic package is used up, and the shared attribute information indicates that the traffic package is a corporate traffic and a family traffic, determine, from the traffic packages corresponding to the shared attribute information, a traffic package with a time length from a cutoff use time point to a current time less than a preset time length threshold and with the lowest cost as a second target traffic package.
[0111] The charging module 203 is further configured to charge the user traffic bill according to the second target traffic package.
[0112] In an optional implementation, the user traffic information further includes out-of-package cost information.
[0113] The determining module 202 is further configured to, when it is determined that the traffic of each traffic package is used up, determine out-of-package traffic cost corresponding to the out-of-package cost information with the lowest cost.
[0114] The charging module 203 is further configured to charge the user traffic bill according to the out-of-package traffic cost.
[0115] Therefore, by obtaining the user traffic bill and the user subscribed user traffic information, and according to the use time information of each traffic package and the cost information of each traffic package, a traffic package with a time length from a cutoff use time point to a current time less than a preset time length threshold and with the lowest cost is determined, and then the user traffic bill is charged according to the traffic package, so that it is not necessary to compare and sort all traffic packages in the network, but the charging starts from a traffic package with a time length from a cutoff use time point to a current time less than a preset time length threshold and with the lowest cost among the traffic packages currently subscribed by the user, the traffic package information is less and the sorting is simple, and the use experience of the user is improved.
[0116] Figure 3 is a structural schematic diagram of an electronic device according to an example embodiment.
[0117] As shown in Figure 3 , the electronic device 3 can include a processor 301 and a memory 302 storing computer program instructions.
[0118] Specifically, the processor 301 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0119] The memory 302 can include mass storage for information or instructions. By way of example, and not limitation, the memory 302 can include a hard disk drive (HDD), floppy disk drive, flash memory, compact disk, digital versatile disk, optical disk, tape, or other storage device or a combination of two or more of these. The memory 302 can be removable or non-removable (or fixed) as appropriate. The memory 702 can be internal or external as appropriate. In certain embodiments, the memory 302 is a nonvolatile solid-state memory. In certain embodiments, the memory 302 includes read-only memory (ROM). The ROM can be a mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these, as appropriate.
[0120] The processor 301 implements the method in the embodiments by reading and executing computer program instructions stored in the memory 302, to achieve the corresponding technical effects. For brevity, the details are not described herein. Figure 1 The processor 301 implements the method in the embodiments by reading and executing computer program instructions stored in the memory 302, to achieve the corresponding technical effects. For brevity, the details are not described herein.
[0121] In one embodiment, the electronic device 3 can further include a transceiver 303 and a bus 304. As shown, the processor 301, the memory 302, and the transceiver 303 are connected through the bus 304 and complete communication with each other. Figure 3
[0122] The bus 304 includes hardware, software, or both. By way of example, and not limitation, the bus can include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (ISA) bus, an infiniband interconnect, a low pin count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus, or another suitable bus or interconnect, or a combination of two or more of these. Where appropriate, the bus 304 can include one or more buses. Although the present application describes and illustrates a particular bus, this application contemplates any suitable bus or interconnect.
[0123] The embodiments of the present application further provide a computer storage medium, which stores computer program instructions. The computer program instructions are used to implement the flow charging method described in the embodiments of the present application.
[0124] In some possible implementation, each of the aspects of the method provided by the present application can also be implemented in the form of a program product, which includes program codes for causing a computer device to perform the steps of the method according to the various exemplary embodiments of the present application described above in the specification, when the program product is run on the computer device, for example, the computer device can perform the traffic billing method recorded in the embodiments of the present application.
[0125] The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples (non-exhaustive list) of the readable storage medium include an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0126] The present application is described with reference to flowcharts and / or block diagrams of the method, device and computer program product according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as a combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable information processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable information processing apparatus generate a means for implementing the functions specified in the flow Figure 1 The functions specified in one or more flows and / or blocks. Figure 1 The functions specified in one or more flows and / or blocks.
[0127] These computer program instructions can also be stored in a computer readable storage medium capable of directing the computer or other programmable information processing apparatus to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a product including instruction means, which implements the functions specified in the flow Figure 1 The functions specified in one or more flows and / or blocks. Figure 1 The functions specified in one or more flows and / or blocks.
[0128] These computer program instructions can also be loaded onto a computer or other programmable information processing apparatus, so that a series of operation steps are performed on the computer or other programmable information processing apparatus to produce a computer implemented process, so that the instructions executed on the computer or other programmable information processing apparatus provide a means for implementing the functions specified in the flowFigure 1 one or more processes and / or functions specified in one or more blocks Figure 1 one or more processes and / or functions specified in one or more blocks
[0129] It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.
Claims
1. A flow charging method, characterized by, The method comprises: obtaining user traffic bills and user traffic information subscribed by a user; wherein the user traffic information comprises information of a traffic package, usage time information of each traffic package, regional information of each traffic package, service usage range information, carryover attribute information, and fee information of each traffic package; the regional information comprises first regional information or second regional information, the regional information representing regional restrictions of the traffic package, the first regional information representing international, and the second regional information representing domestic; the service usage range information represents whether the traffic package is directional traffic or non-directional traffic; the carryover attribute information represents whether the traffic package includes carryover traffic; determining, according to the usage time information of each traffic package and the fee information of each traffic package, a first target traffic package with the lowest fee and a time length from a cutoff usage time of each traffic package to a current time less than a preset time length threshold; and charging the user traffic bills according to the first target traffic package. The method further comprises: when the regional information is the second regional information, the service usage range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents that the traffic package includes carryover traffic, determining that a carryover traffic package corresponding to the carryover traffic is the first target traffic package.
2. The method of claim 1, wherein, The method further comprises: when the regional information is the second regional information, the service usage range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents that the traffic package includes carryover traffic, determining that a carryover traffic package corresponding to the carryover traffic is the first target traffic package. The method further comprises: when the regional information is the second regional information, the service usage range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents that the traffic package includes carryover traffic, determining that a carryover traffic package corresponding to the carryover traffic is the first target traffic package.
3. The method of claim 2, wherein, The method further comprises: when the regional information is the second regional information, the service usage range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents that the traffic package includes carryover traffic, determining that a carryover traffic package corresponding to the carryover traffic is the first target traffic package. The method further comprises: when the regional information is the second regional information, the service usage range information represents that the traffic of the traffic package is non-directional traffic, and the carryover attribute information represents that the traffic package includes carryover traffic, determining that a carryover traffic package corresponding to the carryover traffic is the first target traffic package.
4. The method of claim 3, wherein, When the region information is the second region information, the service usage range information indicates that the traffic of the traffic package is non-directional traffic, and the carryover attribute information indicates no carryover traffic, the first target traffic package is determined from the traffic packages corresponding to the second region information according to the usage time information of each traffic package and the cost information of each traffic package, the first target traffic package has a time length from a cutoff usage time to a current time less than a preset time length threshold, and has the lowest cost. When the region information is the second region information, the service usage range information indicates that the traffic of the traffic package is non-directional traffic, and the carryover attribute information indicates no carryover traffic, the first target traffic package is determined from the traffic packages corresponding to the second region information according to the usage time information of each traffic package and the cost information of each traffic package, the first target traffic package has a time length from a cutoff usage time to a current time less than a preset time length threshold, and has the lowest cost.
5. The method according to any one of claims 1 to 4, characterized in that, The user traffic information further includes shared attribute information, and the shared attribute information indicates that the traffic package is enterprise traffic and home traffic. The method further includes: When the traffic of the first target traffic package is used up and the shared attribute information indicates that the traffic package is the enterprise traffic and the home traffic, a second target traffic package is determined from the traffic packages corresponding to the shared attribute information, the second target traffic package has a time length from a cutoff usage time to a current time less than a preset time length threshold, and has the lowest cost. The user traffic call record is charged according to the second target traffic package.
6. The method according to any one of claims 1 to 4, characterized in that, The user traffic information further includes out-of-package cost information, and the method further includes: When it is determined that the traffic of each traffic package is used up, the out-of-package cost information corresponding to the lowest cost is determined; The user traffic call record is charged according to the out-of-package traffic cost.
7. A flow charging device, characterized by The apparatus includes: An acquisition module is configured to acquire a user traffic call record and user traffic information subscribed by a user, wherein the user traffic information includes information of a traffic package, usage time information of each traffic package, region information of each traffic package, service usage range information, carryover attribute information, and cost information of each traffic package; the region information includes first region information or second region information, the region information indicates a region limit for use of the traffic package, the first region information indicates international, and the second region information indicates domestic; the service usage range information indicates that the traffic package is directional traffic or non-directional traffic; and the carryover attribute information indicates whether to include carryover traffic. A determination module is configured to determine, according to the usage time information of each traffic package and the cost information of each traffic package, a first target traffic package having a time length from a cutoff usage time to a current time less than a preset time length threshold and having the lowest cost. A charging module is configured to charge the user traffic call record according to the first target traffic package. The determining module is further configured to determine that a first target traffic package corresponding to the carry-over traffic is a first target traffic package when the region information is the second region information, the service usage range information indicates that the traffic of the traffic package is non-directional traffic, and the carry-over attribute information indicates that the carry-over traffic is included.
8. An electronic device, comprising: The device comprises a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the traffic billing method according to any one of claims 1-6.
9. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, and the computer program instructions are executed by the processor to implement the traffic billing method according to any one of claims 1-6.
Citation Information
Patent Citations
Data package selection method and device
CN111132016A
Call ticket processing method and device and computer equipment
CN112135265A