Disclosure of Invention
The invention aims to provide a charging channel classifying and scheduling method and a charging channel classifying and scheduling system based on charging codes, wherein the charging channel classifying and scheduling method classifies charging channels based on the charging codes, and achieves the purpose of uniformly configuring similar charging channels.
The invention aims to provide a charging channel classifying and scheduling method and a charging channel classifying and scheduling system based on charging codes.
The invention aims to provide a charging channel classifying and scheduling method and a charging channel classifying and scheduling system based on charging codes, wherein a data server rapidly and efficiently acquires a charging channel by adopting a cache service and a real-time query mode, so that the query speed of the data server is improved, the number of times of querying a database is reduced, and the pressure of the data server is greatly reduced.
The invention aims to provide a charging channel classifying and scheduling method and system based on charging codes, which adopt subordinate charging control conditions to match and inquire charging channels, thereby realizing the fine operation of different charging channels with the same tariff conditions and improving the charging efficiency of the charging channels and the charging experience of users.
The invention aims to provide a charging channel classifying and scheduling method and a charging channel classifying and scheduling system based on charging codes, wherein the charging channel classifying and scheduling method utilizes reasonable basic information management, quickly searches and positions matched charging channels in the charging process, and simultaneously solves the complicated problem of separate account checking of different charging channels with the same codes.
The invention aims to provide a charging channel classifying and scheduling method and a charging channel classifying and scheduling system based on charging codes, wherein the charging channel classifying and scheduling method strengthens the maintenance of basic information of the charging codes in a unified management mode, is convenient for operators to manage and adjust a code pool in a unified way, and standardizes configuration flows.
In order to achieve any of the above objects, the present invention provides a charging channel classifying and scheduling method based on charging codes, comprising the steps of:
s1, classifying at least one charging channel according to a classification standard, wherein the classified charging channels form classified charging codes, the charging channels comprise charging limiting condition information, and the charging limiting condition information comprises global limiting condition information and detail limiting condition information;
s2, acquiring a charging request, wherein the charging request comprises request limiting data corresponding to the charging limiting condition information;
s3: according to the request limit data, matching a specific classified charging code conforming to the request limit data; and
and S4, matching and scheduling a specific charging channel conforming to the request limit data from the specific classified charging codes according to the request limit data.
In some embodiments, the step S1 comprises the following steps; and matching the global constraint condition information of each charging channel with a first classification standard, and forming a first classification charging code by the charging channels when the global constraint condition information of the charging channels accords with the first classification standard.
In some embodiments, the step S3 includes the steps of:
s31, matching the first global constraint condition information of the first classified charging codes with the request constraint data, and executing the step S32 when the first global constraint condition information is not matched with the request constraint data; and
s32, matching second global constraint condition information of a second classified charging code with the request constraint data, and selecting the second classified charging code as the specific classified charging code.
In some embodiments, the step S4 includes the steps of:
s41, matching first detail limit data of a first charging channel in the specific classification charging codes with the request limit data, and executing step S42 when the first detail limit data does not accord with the request limit data;
s42, matching second detail limit data of a second charging channel in the specific classification charging code with the request limit data, and selecting the second charging channel as the specific charging channel.
In some embodiments, the categorization criteria are implemented as a charging implementation of the charging channel, and the global constraint includes the charging implementation data.
In some embodiments, the detail constraint data comprises at least one of channel base information, SP information, user information.
The invention provides a charging channel classifying and scheduling system based on charging codes, which is characterized by comprising the following components:
a data unit, wherein the data unit stores at least one charging channel database, wherein the charging channel database comprises charging constraint condition information corresponding to each charging channel, wherein the charging constraint condition information comprises global constraint condition information and detail constraint condition information;
the matching unit comprises a standard module and a matching module, wherein the standard module stores at least one classifying standard, the matching module is communicated with the standard module and the data unit, and at least one charging channel is classified into a classified charging code according to the classifying standard.
In some embodiments, the billing channel classification scheduling system based on billing codes includes:
the interactive unit comprises an input module and at least one charging request, wherein the charging request comprises request limiting data corresponding to the charging limiting condition information; and
the scheduling unit comprises a matching module, wherein the matching module is communicatively connected with the interaction unit and the matching module to obtain the request limit data and the global limit condition data of the classified charging codes to match a specific classified charging code.
In some embodiments, the scheduling unit comprises a scheduling module, wherein the scheduling module is communicatively connected to the interaction unit and the matching module to obtain the request restriction data and the specific categorization charging code, matching to obtain a specific charging channel.
In some embodiments, the scheduling unit matches and schedules the specific charging channel or the specific charging code pool by using a buffer service and a real-time query.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the invention, fall within the scope of protection of the invention.
It will be appreciated by those skilled in the art that in the present disclosure, the terms "longitudinal," "transverse," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," etc. refer to an orientation or positional relationship based on that shown in the drawings, which is merely for convenience of description and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore the above terms should not be construed as limiting the present invention.
It will be understood that the terms "a" and "an" should be interpreted as referring to "at least one" or "one or more," i.e., in one embodiment, the number of elements may be one, while in another embodiment, the number of elements may be plural, and the term "a" should not be interpreted as limiting the number.
The SP charging method is a charging method for realizing charging between an operator and an application Service provider by using the SP provider as an intermediary by sending a charging request to a Service provider (hereinafter referred to as SP provider) through a user terminal when using a Service provided by the application Service provider. The basic flow of the SP charging mode is that the application service provider first obtains one or more available charging channels from the SP provider, where the charging channels refer to a charging route allocated by the SP provider, including but not limited to: the system comprises a primary short message, a secondary short message, a primary verification code, a secondary verification code, networking, a pure instruction form and other various combination forms, wherein each charging channel corresponds to a specific charging standard. And then, when the user side selects a specific service item, sending a charging request to the SP provider, matching a proper charging channel through the charging request by the SP provider, and deducting corresponding fees from an operator to an application server according to the charging channel, thereby realizing a method of consuming deductions.
In the prior art, the SP charging adopts a single channel method, namely, an SP provider provides a large number of charging channels, each charging channel corresponds to a specific charging standard, namely, corresponding charging channels are arranged according to different user demands of different user groups, and the problems of redundant data, complex management, difficult operation and the like of the charging channels are directly caused.
In general, a billing channel provided by an SP provider includes a series of data, and as shown in fig. 1, the billing channel includes channel base information, SP profile information, billing restriction condition information, and the like, specifically, the channel base information includes, but is not limited to, channel ID, channel name, tariff, carrier, billing type (short message or authentication code), belonging code ID (foreign key), creation update time, online and offline identification, and the like.
The SP profile information includes, but is not limited to, SP keywords, SP names, etc., and the billing restriction condition information includes, but is not limited to, mask/allow applications, regions, SDK versions, application channels; shielding the time period and date; the method comprises the steps of a first short message, a second short message, a first verification code, a second verification code, networking, a pure instruction form and other various combinations.
It can be said that any one charging channel corresponds to a specific type of charging service. Some charging channels have different corresponding charging limiting conditions, some charging channels have different corresponding channel basic information, and some charging channels have different corresponding SP brief information, that is, the SP provider provides the charging channels with different channel basic information, SP brief information, charging limiting condition information or a combination thereof.
For example, when the charging modes corresponding to the same SP provider pay by short messages, the charging channels corresponding to the "Zhejiang province client" and the "Shanghai city client" may be different, because the charging limitation conditions of the two are different, so as to correspond to the charging channels of different charging display condition information. Therefore, when the user realizes SP charging through the charging channel, a plurality of problems occur, wherein the more prominent problem is that the charging channels are matched in a one-to-one correspondence mode according to charging requests when the SP is charged, so that the proper charging channel is selected, the pressure of a database server is greatly increased, the inquiring effect is influenced, and the user experience utilization degree is reduced.
In order to solve the existing problems, the present invention provides a charging channel classification scheduling method and system based on charging codes, and for convenience of description, the charging channel classification scheduling method and system will be referred to as charging channel classification scheduling method and system based on charging codes hereinafter, which are not different in meaning. The charging channel classifying and scheduling method classifies the charging channels according to the set classifying standard to form classifying charging codes, and deploys most charging limiting conditions into the charging codes so as to achieve the purpose of globally controlling the same type of charging channels. When the charging channel is obtained, a mode of matching the buffer service with real-time query is adopted, so that the query speed is improved, the times of querying a database are reduced, and the pressure of a database server is greatly reduced; the maintenance of basic information of the charging codes is enhanced, the unified management and adjustment of the code pools by operators are facilitated, and the configuration flow is standardized.
As shown in fig. 2, at least one charging channel is classified into classified charging codes according to the classification criteria, and different classified charging codes further constitute a code pool. Alternatively, the SP provider provides a code pool, wherein the code pool comprises at least one categorized billing code, wherein the categorized billing codes are distinguishable from each other, and the categorized billing code comprises at least one billing channel, wherein billing channels categorized under the same categorized billing code have the same feature point but remain distinguishable from each other.
As shown in fig. 3, the classified charging codes include, but are not limited to, SP detailed information, account settlement information and global constraint information, wherein the SP detailed information includes, but is not limited to, SP keywords, SP names, and the global constraint information includes settlement proportion, weight, mask/allow application, region; the method comprises the steps of dividing and sharing time period shielding, IP dividing and sharing shielding, application type shielding, time period shielding, date section shielding, number section shielding, day-month measurement testing quantity, code day-month total quantity, single user day-month upper limit, application day-upper limit, on-line and off-line mark, creation of update time and the like, and whether global conditions, basic information, instruction number or interception verification code number in the data are networked or not determines a charging implementation mode, that is, the global limiting conditions comprise a charging implementation method of a charging channel.
It is noted that each charging channel is different from each other, and the charging channels classified under the same classification charging code meet the requirement of the global constraint condition information. In this way, when a specific charging channel is matched and scheduled, only a specific classifying charging code is matched, and then the specific charging channel in the classifying charging code is searched for in a matching way, so that the pressure and difficulty of matching and scheduling are reduced. That is, the charging channels categorized in the same categorizing charging code have the same global constraint information.
The invention provides a charging channel classifying and scheduling system based on charging codes, wherein the charging channel classifying and scheduling system comprises a data unit 11 and a matching unit 12, wherein the data unit 11 comprises a charging channel database K, wherein a charging channel provided by an SP provider is stored in the charging channel database K in a storable data form, wherein the charging channel comprises channel basic information, SP brief information and charging limiting condition information, and notably, the charging limiting condition comprises global limiting condition information and detail limiting condition information, and of course, the global limiting condition information and the local limiting condition information are artificial partitions, and the global limiting condition information and the local limiting condition information are not particularly different.
In a specific embodiment of the present invention, the charging channels are categorized according to a charging implementation method of the charging channels, and at this time, the global constraint condition information includes charging implementation method data of the charging channels. Specifically, the charging realization method of the charging channel comprises various combinations of one-time short message, multiple-time short messages, one-time verification code, multiple-time verification code, networking, pure instruction form and the like.
The matching unit 12 includes a standard module 121 and a classifying module 122, wherein the matching unit 12 is communicatively connected to the data unit 11, specifically, the classifying module 122 is communicatively connected to the data unit 11 to obtain the charging channel and the data information corresponding to the charging channel, and the classifying module 122 is communicatively connected to the standard module 121 to classify the charging channel according to a classification standard.
Specifically, the standard module 121 has built-in categorization criteria, which may be built-in and may be reset to the standard module 121. In a specific embodiment of the present invention, the classification standard is a charging implementation method of a charging channel, where the classification standard is implemented as a charging implementation method of a charging channel, for example, a short message, a plurality of short messages, a verification code, a plurality of verification codes, networking, a pure instruction form, and other various combinations.
The classifying module 122 is communicatively connected to the standard module 121, and meanwhile, the classifying module 122 is communicatively connected to the data unit 11 to obtain data information of the charging channel, specifically, the classifying module 121 obtains global constraint condition information and classifying standard of the corresponding charging channel, compares the classifying standard with the global constraint condition information, and classifies charging channels meeting the same classifying standard as the same classifying charging code. At this time, the classified charging codes include the global constraint information, wherein the global constraint information corresponds to the classified standard, and marks the data condition of the specific classified charging codes.
In addition, the classified charging codes integrate the data of the charging channels and acquire SP detailed information, in such a way that the charging channels belonging to the same global constraint are classified into the same classified charging codes, and a plurality of classified charging codes are combined to form the code pool.
The charging channel classification scheduling system further comprises an interaction unit 13, wherein the interaction unit 13 comprises an input module 131 and an output module 132, wherein the input module 131 obtains charging request data, the charging request data is from an external end, the charging request data corresponds to at least one charging channel, and the output module 132 outputs a specific charging channel corresponding to the charging request data.
The charging request data comprises but is not limited to request limit data, wherein the request limit data comprises request data, user information data, application side information data and the like, the request data comprises data of charging amount, a charging realization method and the like, the user information data comprises data of user province, user identity and the like, and the application side data comprises data of application side information, code priority and the like.
The charging request data includes data corresponding to the global constraint condition information, for example, when the global constraint condition information is a charging implementation method, the request data in the charging request data corresponds to the global constraint condition information, and when the global constraint condition information is a provincial request, the user information data corresponds to the global constraint condition information.
The charging channel classification scheduling system further comprises a scheduling unit 14, wherein the scheduling unit 14 comprises a matching module 141 and a scheduling module 142, wherein the matching module 141 is communicatively connected to the input module 131 and the classification module 122, the matching module 141 obtains the charging request data, more specifically, the matching module 141 obtains the charging request data corresponding to the global constraint condition information, and the matching module 141 obtains the code pool, and matches the classification charging codes from the code pool according to the charging request data.
The input module 131 acquires the charging request data, more specifically, the input module 131 acquires charging request data matching the global constraint information.
At this time, the matching module 141 traverses the code pool according to the charging request data, specifically, the matching module 141 matches the charging request data with the global constraint condition information, and when the charging request data satisfies the global constraint condition information, selects a classified charging code corresponding to the global display condition information. For example, if the global constraint information of a specific classification code pool is short message charging and the charging request data is required to be WAP charging, the classification code pool does not meet the matching requirement.
The scheduling module 142 is communicatively connected to the matching module 141 to obtain that the matching module 141 matches a particular pool of categorizing codes and obtains a particular billing channel within the pool of categorizing codes. The scheduling module 142 is communicatively connected to the input module 131 and the classifying module 122, specifically, the scheduling module 142 obtains the charging request data and the detail constraint condition information of the corresponding charging channel, where the detail constraint condition information correspondingly matches the charging request data, and the scheduling module 142 schedules the adapted charging channel according to the charging request data.
It should be noted that, in the embodiment of the present invention, the scheduling unit 14 adopts a cache service+real-time query manner, so as to increase the query speed, reduce the number of times of querying the database, and greatly reduce the pressure of the database server; the maintenance of basic information of the charging codes is enhanced, and operators can manage and adjust the code pools uniformly and normalize configuration flows and the like conveniently.
In addition, the matching module 141 and the scheduling module 142 may operate independently or simultaneously, so as to perform more refined operation on the same tariff, different channels and the like according to the charging control conditions of the affiliation, and provide charging efficiency and user charging experience.
According to another aspect of the present invention, there is provided a charging channel classification scheduling method based on a charging code, wherein the charging channel classification scheduling method includes the steps of:
s1, classifying at least one charging channel according to a classification standard, wherein the classified charging channels form classified charging codes, and the charging channels comprise charging limiting condition information;
s2, acquiring a charging request, wherein the charging request comprises request limiting data corresponding to the charging limiting condition information;
s3: according to the request limit data, matching a specific classified charging code conforming to the request limit data; and
and S4, matching and scheduling a specific charging channel conforming to the request limit data from the specific classified charging codes according to the request limit data.
It should be noted that, in the step S1, the charging constraint information includes global constraint information and detail constraint information of a charging channel, and the charging channel is classified as the classified charging channel according to the global constraint information.
The step S1 comprises the following steps of; and matching the global constraint condition information of each charging channel with a first classification standard, and forming a first classification charging code by the charging channels when the global constraint condition information of the charging channels accords with the first classification standard. In addition, in the embodiment of the present invention, the categorizing criteria are implemented as a charging implementation method of the charging channel, and each categorizing criteria corresponds to a categorizing charging code of a category.
In the step S3, the step S3 further includes:
s31, matching the first global constraint condition information of the first classified charging codes with the request constraint data, and executing the step S32 when the first global constraint condition information is not matched with the request constraint data; and
s32, matching second global constraint condition information of a second classified charging code with the request constraint data, and selecting the second classified charging code as the specific classified charging code.
Wherein in the step S2, the charging request includes request restriction data corresponding to the global restriction condition information and request restriction data corresponding to the detail restriction condition information. The request limiting data comprise request data, user information data, application side information data and the like, the request data comprise data such as charging amount, charging realization method and the like, the user information data comprise data such as user province, user identity and the like, and the application side data comprise data such as application side information, code priority and the like.
Correspondingly, in the step S4, the step S4 further includes:
s41, matching first detail limit data of a first charging channel in the specific classification charging codes with the request limit data, and executing step S42 when the first detail limit data does not accord with the request limit data;
s42, matching second detail limit data of a second charging channel in the specific classification charging code with the request limit data, and selecting the second charging channel as the specific charging channel.
Further, the specific charging channel is scheduled to realize SP charging according to the specific charging channel. In addition, in the embodiment of the invention, the charging channel classifying and scheduling method adopts a cache service and real-time query mode, thereby improving the query speed, reducing the times of querying a database and greatly relieving the pressure of a database server; the maintenance of basic information of the charging codes is enhanced, and operators can manage and adjust the code pools uniformly and normalize configuration flows and the like conveniently. The caching service and the real-time query data are mutually formed, when the information such as codes, channels and the like is needed for charging, the caching service is firstly searched, and if the caching service exists, the needed data is directly returned; if the data does not exist, the database is queried in real time, the queried data is returned, the returned data is added to the cache service, and the time is set, when the data reaches the set time in the cache service, the cache service automatically destroys and cleans the expired data, so that the memory space of the server is saved, memory overflow is prevented, and meanwhile, the problem that the cache service cannot be updated when related information in the code pool is updated is solved.
The present invention is not limited to the above-described preferred embodiments, and any person who can obtain other various products under the teaching of the present invention, however, any change in shape or structure of the product is within the scope of the present invention, and all the products having the same or similar technical solutions as the present application are included.