Summary of the invention
The application's technical problem to be solved is, a kind of method, server, terminal and system of traffic resource assignment are provided, with solve according in the prior art because the resource in the set meal is to give the user and the user can only use according to the resource corresponding service according to traffic assignments in current life cycle, and the technical problem that surplus resources is wasted in the set meal in current life cycle that causes.
For solving the problems of the technologies described above, first aspect, the embodiment of the present application provide a kind of method of traffic resource assignment, are applied to server, comprising:
The transitional information that receiving terminal sends; Described transitional information be described terminal response in the user to set meal in the corresponding transitional information of described operation that generates of the operation of resource conversion, described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
Judge whether described transitional information mates the resource transformation rule; Corresponding relation between the source stock number that described resource transformation rule is the source service resources and the target resource amount of target service resource;
If then according to described transitional information, in the set meal of described user's current life cycle, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection.
Optionally, the described source service resources that in the set meal of the current life cycle of described user, reclaims described source stock number the resource collection, and in described set meal, distribute in the resource collection after the target service resource of described target resource amount, also comprise:
According to the service resources expense in the set meal be in the described set meal in the resource collection stock number of each service resources charge.
Second aspect, the embodiment of the present application also provide the method for another kind of traffic resource assignment, are applied to terminal, comprising:
In response to the operation of user to resource conversion in the set meal, generate the corresponding transitional information of described operation; Described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
Send described transitional information to server, so that described server judges whether described transitional information mates the resource transformation rule if then according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection; Wherein, the corresponding relation between the described resource transformation rule source stock number that is each service resources when conversion mutually and the target resource amount.
Optionally, described in response to the operation of user to resource conversion in the set meal, generate the corresponding transitional information of described operation, comprising:
In response to the triggering command of resource conversion in the set meal, show the adjusting interface of each service resources in the set meal to the user;
According to the operation of user on described adjusting interface, obtain source service resources, source stock number, target service resource and target resource amount in the described resource conversion;
According to described source service resources, source stock number, target service resource and target resource amount, generate described transitional information.
Optionally, also comprise:
In response to the query manipulation of user to resource in the set meal, send the query requests of resource in the set meal to described server, so that described server is transferred total resources and the surplus yield of each service resources in the interior resource collection of the described set meal of current time, as the stock number data of resource in the described set meal;
Receive the stock number data of resource in the described set meal that described server sends and show to the user.
Optionally, also comprise:
In response to the query manipulation of user to the resource transformation rule, send the query requests of described resource transformation rule to described server, so that described server obtains the data message of described resource transformation rule;
Receive the data message of the described resource transformation rule that described server sends and show to the user.
The third aspect, the embodiment of the present application also provide a kind of server of traffic resource assignment, comprising:
First receiver module is used for the transitional information that receiving terminal sends; Described transitional information be described terminal response in the user to set meal in the corresponding transitional information of described operation that generates of the operation of resource conversion, described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
Judge module is used for judging whether described transitional information mates the resource transformation rule; Corresponding relation between the source stock number that described resource transformation rule is the source service resources and the target resource amount of target service resource;
Resource distribution module, the judged result that is used at described judge module is under the situation that is, according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection.
Optionally, also comprise:
Accounting module, being used for according to the service resources expense in the set meal is the stock number charging of each service resources of resource collection in the described set meal.
Fourth aspect, the embodiment of the present application also provide a kind of terminal of traffic resource assignment, comprising:
Information generating module is used for the operation to resource conversion in the set meal in response to the user, generates the corresponding transitional information of described operation; Described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
First sending module, be used for sending described transitional information to server, so that described server judges whether described transitional information mates the resource transformation rule if then according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection; Wherein, the corresponding relation between the described resource transformation rule source stock number that is each service resources when conversion mutually and the target resource amount.
Optionally, information generating module specifically comprises:
Regulate the showing interface submodule, be used for the triggering command in response to resource conversion in the set meal, show the adjusting interface of each service resources in the set meal to the user;
Conversion parameter obtains submodule, is used for according to the operation of user on described adjusting interface, obtains source service resources, source stock number, target service resource and target resource amount in the described resource conversion;
Transitional information generates submodule, is used for according to described source service resources, source stock number, target service resource and target resource amount, generates described transitional information.
Optionally, also comprise:
Second sending module, be used in response to the query manipulation of user to resource in the set meal, send the query requests of resource in the set meal to described server, so that described server is transferred the total resources of each service resources in the interior resource collection of the described set meal of current time and the surplus yield of each service resources, as the stock number data of resource in the described set meal;
Second receiver module shows for the stock number data of resource in the described set meal that receives described server transmission and to the user.
Optionally, also comprise:
The 3rd sending module is used in response to the query manipulation of user to the resource transformation rule, sends the query requests of described resource transformation rule to described server, so that described server obtains the data message of described resource transformation rule;
The 3rd receiver module shows for the data message of the described resource transformation rule that receives described server transmission and to the user.
The 5th aspect, the embodiment of the present application also provide a kind of system of traffic resource assignment, comprising: aforementioned any described server of embodiment and, aforementioned any described terminal of embodiment.
Compared with prior art, the application has the following advantages:
The technical scheme that the application adopts, terminal response in the user to set meal in the corresponding transitional information of the operation of resource conversion and the described operation that generates and send to server, server judges whether this transitional information mates the resource transformation rule then, if coupling, then server is according to transitional information, in the set meal of described user's current life cycle, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection; Wherein, transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the conversion of this resource, and the resource transformation rule is the corresponding relation between the target resource amount of the source stock number of source service resources and target service resource.Technical scheme by the application, server can be adjusted each service resources in the resource collection in the set meal of the current life cycle of this user according to the user to the operation of resource conversion in the set meal, thereby make that system can unspent service resources exchanges the required service resources of user in the resource collection for the user utilizes in the set meal in the current life cycle, system can distribute to other with the surplus resources that reclaims and need use this professional user like this, thereby has avoided resource waste.
In addition, because each professional resource can be changed mutually in current life cycle in the interior resource collection of user's set meal, thereby make the user can be in current life cycle with set meal in surplus resources in the resource collection be used for having used up the business of resource, thereby reduced the total resources that the user obtains in the system, thereby reduced the consumption of system resource for the user.
Embodiment
In order to make those skilled in the art person understand the application's scheme better, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all belong to the scope of the application's protection.
Resource among the application can be the required Internet resources of miscellaneous service that the network operator server of mobile communication provides for user terminal, as air time, mobile Internet data flow or note quantity etc.
The inventor is through discovering, server when each life cycle of user is distributed the domestic-investment source of set meal for the user according to each traffic assignments, the user also must be to use according to business during resource in using set meal, will cause the resource user of server-assignment to make like this and too many or too much for use, thereby make system resource be wasted.For example, contain 200 note resources of short message service and the 150M data traffic resource of mobile Internet business in the set meal, then the user can only utilize the note resource to finish short message service and can not utilize the data traffic resource to finish short message service in use; If the note resource uses in the set meal in the current life cycle, then server must just can make the user continue to finish short message service for the user distributes the outer note resource of set meal again, this will cause existing the user to make exhaustless data traffic resource in the resource of system assignment, thereby the system that not only makes can not distribute to these data traffic resources other users' uses again and cause waste, also makes the user not cause user's expenses for its data traffic resource paying that has to use.
Based on above-mentioned research, the application's main thought is: according to user's conversion operations to each service resources in the set meal on terminal, obtain source service resources in the resource conversion that the user triggers according to the actual requirements, the source stock number, target service resource and target resource amount, on server, the resource collection source service resources of source stock number is reclaimed and distributes the target service resource of target resource amount then in the set meal in the current life cycle of this user, like this, the user can will make exhaustless service resources be converted to the service resources that other need use according to the actual requirements in its set meal, thereby the system that makes can reclaim and distribute to the user but the user makes exhaustless service resources, and, make that also the user does not need to pay for its service resources that does not have to use again.For example, if the note resource in user's set meal has used up but the data traffic resource does not use up, then the user can be converted to remaining data traffic resource in the set meal note resource and continues to use short message service in the set meal.
Below in conjunction with accompanying drawing, describe the specific implementation of method, terminal, server and the system of traffic resource assignment among the application in detail by embodiment.
Referring to Fig. 1, show the basic flow sheet of the method embodiment 1 of traffic resource assignment among the application.Present embodiment can be applied to server, can may further comprise the steps:
The transitional information that S101, receiving terminal send; Described transitional information be described terminal response in the user to set meal in the corresponding transitional information of described operation that generates of the operation of resource conversion, described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion.
Generate when wherein, transitional information is operation by terminal resource conversion in the user carries out set meal.When resource is changed in the user need be to set meal, terminal can be showed a resource adjustments interface to the user, so that the user imports its source service resources that need change, source stock number and target service resource, target resource amount, after user's input is finished, terminal is obtained these input data and is generated transitional information, in order to these input data are sent to server by transitional information.
Need to prove, the process of resource conversion can be one to one, the conversion of one-to-many or multi-to-multi.That is, the resource transfer process can be following any one conversion: a provenance service resources is converted to a kind of target service resource; One provenance service resources is converted to the plurality of target service resources; Multiple source service resources is converted to a kind of target service resource; Multiple source service resources is converted to the plurality of target service resources.Therefore, what comprise in the transitional information is each provenance service resources and its corresponding source stock number, and each target service resource and its corresponding target resource amount.
S102, judge whether described transitional information mates the resource transformation rule, if then enter S103; Corresponding relation between the source stock number that described resource transformation rule is the source service resources and the target resource amount of target service resource.
In the present embodiment, when resource is changed, resource conversion for fear of customer requirements is unreasonable, corresponding relation in rational resource can being changed between the target resource amount of the source stock number of source service resources and target service resource is preset in the server as the resource transformation rule, make server come transitional information is judged according to the resource transformation rule that presets, thereby server can only be carried out the resource conversion of customer requirements under the situation of transitional information and resource transformation rule coupling.Usually, the resource conversion rationally refers to the source service resources of source stock number and the target resource of target resource amount is of equal value, namely the value of Zhuan Huan both sides in set meal is identical, in addition, resource conversion can also comprise rationally in user's the set meal that the up resources amount of source service resources is not less than the source stock number in the resource collection.Certainly, the resource transformation rule can provide professional rate to arrange voluntarily according to it by operator particularly.
Need to prove that the resource transformation rule can comprise the corresponding relation of stock number when any two kinds of service resources are changed in the set meal.When judging whether to mate, in a kind of possible implementation, the resource transformation rule is the exchange proportion between the service resources of every pair of conversion, then this implementation can be: the exchange proportion of first query source service resources and target service resource, whether the ratio of reference source stock number and target resource amount is consistent with the exchange proportion that inquiry obtains then, if unanimity then coupling is described is not if inconsistent then explanation matches.When judging whether to mate, in the another kind of possible implementation, the service resources of every pair of conversion is set to a resource transformation rule in each stock number that can change, then this implementation can be: the corresponding resource transformation rule of source service resources of searching the source stock number, and then the corresponding resource transformation rule of the target service resource of from the resource transformation rule that finds, searching the target service amount, if can find then show transitional information coupling resource transformation rule, if can not find then show the transitional information resource transformation rule that do not match; Perhaps, also can search according to target service resource and target resource amount earlier, and then search according to source service resources and source stock number.In addition, when having multiple source service resources and/or plurality of target service resources in the transitional information, the judgement whether transitional information and resource transformation rule are mated can be to determine a kind of forwarding operation resource earlier, the target resource amount of the stock number of all source service resources and target service resource is all converted to the stock number of forwarding operation resource corresponding in the resource transformation rule, judge then the stock number of the forwarding operation resource that converts to of stock number and all target service resources of the forwarding operation resource that converts to of active service resources whether equate, if then show transitional information coupling resource transformation rule, if otherwise show the transitional information resource transformation rule that do not match.
For S102, a module or system can be set in server carry out, for example, a mobile data service system (MAPP Server) is set in server carries out S102.At this moment, MAPP Server can also carry out subscription authentication to transitional information before carrying out S102, authentication by the time carry out S102 again.
S103, according to described transitional information, in the set meal of described user's current life cycle, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection.
For the user arranges different resource collections, wherein the interior resource collection of the set meal of current life cycle has each interior service resources of set meal of customization in server.When current life cycle begins, server distributes each service resources in the set meal according to the stock number in the set meal of customization in the resource collection, carry out resource when conversion according to transitional information to set meal in the resource collection service resources adjust, carry out recovery and the reallocation of stock number.Wherein, resource collection can be a tables of data in the database or the set of several tables of data in the set meal, records the numerical value of the stock number of each service resources in the set meal and each service resources correspondence in tables of data.When conversion, can directly change stock number numerical value in the tables of data of resource collection in the set meal, replace this original stock number numerical value with original stock number numerical value of source service resources in the tables of data and the difference of the source stock number numerical value in the transitional information, original stock number numerical value and the target resource numerical quantity sum in the transitional information with target service resource in the tables of data are replaced this original stock number numerical value, and then the tables of data after each change of storage.Need to prove, in set meal, generally record the total resources numerical value of each service resources in the set meal and the surplus resources numerical quantity of usefulness not in the tables of data of resource collection simultaneously, so when resource is changed, need revise total resources numerical value and surplus resources numerical quantity simultaneously.
Concerning S103, server can arrange a module or system carries out, and for example, a charge system (Billing system) is set in server carries out S103.
After S103 is finished, server can also send confirmation to terminal, so that notifying the interior resource of user's set meal to finish conversion also can use immediately, and can in confirmation, be written into the stock number numerical value of each service resources in the set meal of conversion back, in order to show stock number numerical value after the conversion to the user.For example, if be provided with MAPP Server respectively in the server and the Billing system carries out S102 and S103, then the Billing system can send the conversion success message to MAPP Server after executing S103, and MAPP Server sends confirmation to terminal more then.
In addition, after S103, present embodiment can also comprise: according to the service resources expense in the set meal be in the described set meal in the resource collection stock number of each service resources charge.For example, the outer data traffic resource expense of set meal is 0.0003 yuan/KB if the data traffic resource expense in the set meal is included in the set meal expense, then in the set meal that gets by conversion in the resource collection data traffic resource when chargeing, be also contained in the tunica dinner cost with in, and no longer charge according to 0.0003 yuan outer/KB of set meal.Like this, the user is under the constant situation of set meal expense, can need use but resource has used up in the set meal other service resources making exhaustless service resources convert it in the set meal, thereby save the consumption of user to total resources, reduce the expense that the user pays for resource consumption.
Be understandable that, in the present embodiment, when entering an item of expenditure in the accounts day, can also provide the statement of expense that charges according to resource collection in the set meal after the conversion for the user.For example, if be provided with MAPPServer respectively in the server and the Billing system carries out S102 and S103, then the Billing system is after executing S103, can charge according to the service resources of resource expense in the set meal for resource collection in the set meal after changing, and generate the set meal statement of expense and send to MAPP Server, MAPP Server sends to terminal with the set meal statement of expense more then.Wherein, MAPP Server can send to terminal to the set meal statement of expense that the set meal statement of expense carries out sending after adaptive after adaptive again according to the characteristic of the terminal that will send, and in addition, MAPPServer can also this set meal statement of expense of buffer memory.
In addition, after S103, server can also charge for the performed resource conversion of user according to the conversion rate that operator sets.Arranging of conversion rate can be to set a fixing conversion charges for each conversion, perhaps, can be for every kind of target service resource arranges a fixing unit target resource amount expense, perhaps, can be for every provenance service resources a fixing unit source stock number expense to be set.
By above-mentioned S101~S103, present embodiment can realize that the user is converted to exhaustless source service resources in the set meal that its needs use according to oneself demand but resource has used up in the set meal target service resource.Because present embodiment need trigger the resource conversion by the user, and transitional information also is that the operation according to the user generates, so for the ease of the operation of user to the resource conversion, present embodiment also provides following two kinds of execution modes that can increase on the basis of S101~S103.
First kind of execution mode can comprise: in the user triggers set meal during the query manipulation of resource, the query requests of resource in the set meal that the server receiving terminal sends, transfer total resources and the surplus yield of each service resources in the interior resource collection of the described set meal of current time, as the stock number data of resource in the described set meal, and described stock number data are sent to terminal so that terminal shows to the user.Adopt present embodiment, make the user can inquire resource situation in the own current set meal, thereby source service resources, source stock number, target service resource and the target resource amount of resource conversion can be set according to resource situation in the current set meal.
Second kind of execution mode can comprise: when the user triggers the query manipulation of resource transformation rule, the query requests of the described resource transformation rule that the server receiving terminal sends, obtain the data message of described resource transformation rule, and send to this data message of reception to terminal so that terminal shows to the user.Adopt present embodiment, make the user can inquire all resource transformation rules, thereby source service resources, source stock number, target service resource and the target resource amount of resource conversion can be set according to the resource transformation rule, thereby make transitional information to be complementary with the resource transformation rule.
Technical scheme by present embodiment, server can be adjusted each service resources in the resource collection in the set meal of the current life cycle of this user according to the user to the operation of resource conversion in the set meal, thereby make that system can unspent service resources exchanges the required service resources of user in the resource collection for the user utilizes in the set meal in the current life cycle, each professional resource can be changed mutually in current life cycle in the interior resource collection of user's set meal, thereby make the user can be in current life cycle with set meal in surplus resources in the resource collection be used for having used up the business of resource, the expense of having saved resource consumption for the user.
Referring to Fig. 2, show the flow chart of the method embodiment 2 of traffic resource assignment among the application.Present embodiment can be applied to terminal, can may further comprise the steps:
S201, in response to the operation of user to resource conversion in the set meal, generates the transitional information of described operation correspondence; Described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion.
Wherein, the user can carry out at the adjusting interface that terminal provides during to the operation of resource conversion.Corresponding to the execution mode of regulating the interface, referring to Fig. 3, S201 can specifically comprise:
S301, in response to the triggering command of resource conversion in the set meal, show the adjusting interface of each service resources in the set meal to the user.
In the present embodiment, can a client be installed in terminal and bring in realization.The user is to the triggering command of resource conversion in the set meal, can be when adopting mode such as clickable icon to start client on the terminal the user terminal to the triggering command of client.
Wherein, the user regulates the list of slide block, button or the stock number numerical value input frame composition that can comprise miscellaneous service resource in the set meal in the interface etc., so that can or import the operation that the stock number numerical value that need arrange is finished the resource conversion by sliding slider, button click in input frame.Correspondingly, in client, slider control, button control or form controls etc. can be set.The user in addition, regulates the stock number that can also show each service resources in the resource collection in the current set meal in the interface, so that can arrange the resource situation after the conversion according to current resource situation.
S302, according to the operation of user on described adjusting interface, obtain source service resources, source stock number, target service resource and target resource amount in the conversion of described resource.
Wherein, can obtain source service resources, source stock number, target service resource and the target resource amount of user in regulating the resource conversion of importing at the interface by the slider control on the client, button control or form controls.Particularly, the user can choose source service resources and target service resource at the adjusting interface earlier, and then the numerical value of source stock number and target resource amount is set; Terminal then can be obtained source service resources and target service resource from regulating the interface earlier, obtains the source stock number of user's setting and the numerical value of target resource amount then.
S303, according to described source service resources, source stock number, target service resource and target resource amount, generate described transitional information.
Wherein, in transitional information, can comprise source service resources, source stock number, target service resource and target resource amount, can also comprise target resource amount after the conversion of each service resources, so that server can directly be adjusted in the set meal stock number of each service resources in the resource collection according to conversion back target resource amount, do not adjust in the set meal of back the stock number of each service resources in the resource collection and do not need again to calculate according to source stock number and target resource amount.
Need to prove, when the user arranges source stock number and target resource amount, can arrange according to the ratio in the resource transformation rule that the conversion information that can retrain user's submission like this meets the resource conversion rule.For example, can be at user's input source service resources, target service resource and wherein during a kind of stock number of service resources, automatically calculate the stock number of another kind of service resources according to the proportional meter of resource transformation rule, and do not need the user that the stock number of two kinds of service resources is all imported, so just can avoid the user to submit to too much not matching the conversion request of resource transformation rule.
Then return Fig. 2, after S201 is complete, enter S202.
S202, the described transitional information of transmission are to server, so that described server judges whether described transitional information mates the resource transformation rule if then according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection; Wherein, the corresponding relation between the described resource transformation rule source stock number that is each service resources when conversion mutually and the target resource amount.
Similar in the method embodiment 1 of server to aforementioned applications, present embodiment is also corresponding to provide following two kinds of execution modes that can increase on the basis of S201 and S202, be convenient to the user to the operation of resource conversion.
First kind of execution mode can comprise: in response to the query manipulation of user to resource in the set meal, send the query requests of resource in the set meal to described server, so that described server is transferred total resources and the surplus yield of each service resources in the interior resource collection of the described set meal of current time, as the stock number data of resource in the described set meal; Receive the stock number data of resource in the described set meal that described server sends and show to the user.Adopt present embodiment, make the user can inquire resource situation in the own current set meal, thereby source service resources, source stock number, target service resource and the target resource amount of resource conversion can be set according to resource situation in the current set meal.
Second kind of execution mode can comprise: in response to the query manipulation of user to the resource transformation rule, send the query requests of described resource transformation rule to described server, so that described server obtains the data message of described resource transformation rule; Receive the data message of the described resource transformation rule that described server sends and show to the user.Adopt present embodiment, make the user can inquire all resource transformation rules, thereby source service resources, source stock number, target service resource and the target resource amount of resource conversion can be set according to the resource transformation rule, thereby make transitional information to be complementary with the resource transformation rule.
Need to prove that the execution mode in the present embodiment can be brought in realization by the client that a resource conversion is installed in terminal.Utilize this client, can be in response to the user to the operation of resource conversion, to the query manipulation of resource in the set meal and/or to the query manipulation of resource transformation rule, and send the query requests of resource in transitional information, the set meal and/or the query requests of resource transformation rule to server, and the data message of the stock number data of resource and/or resource transformation rule is to show to the user in the set meal that can reception server sends.
Technical scheme by present embodiment, server can be adjusted each service resources in the resource collection in the set meal of the current life cycle of this user according to the user to the operation of resource conversion in the set meal, thereby make that system can unspent service resources exchanges the required service resources of user in the resource collection for the user utilizes in the set meal in the current life cycle, thereby make the user can be in current life cycle with set meal in surplus resources in the resource collection be used for having used up the business of resource, the expense of having saved resource consumption for the user.
In order to make those skilled in the art more be expressly understood the application's technical scheme, be elaborated with the technical scheme of a concrete application scenarios to the application below.In this application scenarios, the App(application program that changes by resource on the terminal, application program) realize, on server, realize by MAPP Server and Billing system.
Referring to Fig. 4, show the flow chart of the method scene embodiment of traffic resource assignment among the application.In the present embodiment, the user is the stock number data of resource in query resource transformation rule and the current set meal on the App of terminal earlier, and then resource is changed.Present embodiment can may further comprise the steps:
S401, App send resource query requests and resource transformation rule query requests in the set meal by MAPP Server to the Billing system.
S402, Billing system generated query object information: the Billing system transfers in the set meal stock number data in the resource collection and obtains resource transformation rule data message from database, and with data and the information generated query object information transferred.
S403, Billing system send to MAPP Server with Query Result information.
It is adaptive that the Query Result information of S404, MAPP Server is carried out termination property.
S405, MAPP Server send to App with the Query Result information after adaptive.
S406, App show the data in the Query Result information to the user.
S407, App generate transitional information: in response to the operation of user to the resource conversion, obtain source service resources, source stock number, target service resource and target resource amount in the resource conversion, and generate transitional information accordingly.
S408, App send user's set meal resource conversion request to MAPP Server: include the transitional information that generates among the S401 in this user's set meal resource conversion request.
Subscription authentication is carried out in S409, the user's set meal of MAPP Server resource conversion request.
S410, MAPP Server judge whether the service resources setting in the transitional information is reasonable: namely, judge whether transitional information and resource transformation rule mate; If enter S411.
S411, MAPP Server send set meal resource change request to the Billing system: this set meal resource change request is to be packaged into by user's set meal resource conversion request behind the subscriber identity authentication.
S412, Billing system adjust the service resources in the interior resource collection of set meal in the database: the transitional information according in the set meal resource change request, come the tables of data of resource collection in the set meal is changed according to source service resources, source stock number, target service resource and target resource amount.
Adopt the technical scheme of present embodiment, make that server system can unspent service resources exchanges the required service resources of user in the resource collection for the user utilizes in the set meal in the current life cycle, thereby avoided resource waste.Simultaneously, also make the user can be in current life cycle with set meal in surplus resources in the resource collection be used for having used up the business of resource, the expense of having saved resource consumption for the user.
Need to prove that present embodiment is a kind of execution mode of present techniques scheme under specific application scenarios just.Wherein S401~S406 for the inquiry of resource in the set meal and to the inquiry of resource transformation rule can but be not limited to resource S407 after and carry out before changing, even the user is current not to carry out the resource conversion, also can be to the inquiry of resource in the set meal and/or to the inquiry of resource transformation rule.
Corresponding to method embodiment, the application provides a kind of server of traffic resource assignment.
Referring to Fig. 5, show the structure chart of the server example 1 of traffic resource assignment among the application, the server of present embodiment can comprise:
First receiver module 501 is used for the transitional information that receiving terminal sends; Described transitional information be described terminal response in the user to set meal in the corresponding transitional information of described operation that generates of the operation of resource conversion, described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
Judge module 502 is used for judging whether described transitional information mates the resource transformation rule; Corresponding relation between the source stock number that described resource transformation rule is the source service resources and the target resource amount of target service resource;
Resource distribution module 503, the judged result that is used at described judge module 502 is under the situation that is, according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection.
Referring to Fig. 6, show the structure chart of the server example 2 of traffic resource assignment among the application, the server of present embodiment can also comprise except comprising all structures shown in Figure 5:
Accounting module 601, being used for according to the service resources expense in the set meal is the stock number charging of each service resources of resource collection in the described set meal.
Corresponding to method embodiment, the application also provides a kind of terminal of traffic resource assignment.
Referring to Fig. 7, show the structure chart of the terminal embodiment 1 of traffic resource assignment among the application, the terminal of present embodiment can comprise:
Information generating module 701 is used for the operation to resource conversion in the set meal in response to the user, generates the corresponding transitional information of described operation; Described transitional information comprises source service resources, source stock number, target service resource and the target resource amount in the described resource conversion;
First sending module 702, be used for sending described transitional information to server, so that described server judges whether described transitional information mates the resource transformation rule if then according to described transitional information, in the set meal of the current life cycle of described user, reclaim the source service resources of described source stock number the resource collection, and distribute the target service resource of described target resource amount in the described set meal in the resource collection; Wherein, the corresponding relation between the described resource transformation rule source stock number that is each service resources when conversion mutually and the target resource amount.
Wherein, optional, referring to the structure chart of information generating module execution mode 1 shown in Figure 8, the information generating module 701 in the present embodiment can specifically comprise:
Regulate showing interface submodule 801, be used for the triggering command in response to resource conversion in the set meal, show the adjusting interface of each service resources in the set meal to the user;
Conversion parameter obtains submodule 802, is used for according to the operation of user on described adjusting interface, obtains source service resources, source stock number, target service resource and target resource amount in the described resource conversion;
Transitional information generates submodule 803, is used for according to described source service resources, source stock number, target service resource and target resource amount, generates described transitional information.
Referring to Fig. 9, show the structure chart of the terminal embodiment 2 of traffic resource assignment among the application, the terminal of present embodiment can also comprise except comprising all structures shown in Figure 7:
Second sending module 901, be used in response to the query manipulation of user to resource in the set meal, send the query requests of resource in the set meal to described server, so that described server calculates the total resources of each service resources in the interior resource collection of the described set meal of current time and the surplus yield of each service resources, as the stock number data of resource in the described set meal;
Second receiver module 902 shows for the stock number data of resource in the described set meal that receives described server transmission and to the user.
Referring to Figure 10, show the structure chart of the terminal embodiment 3 of traffic resource assignment among the application, the terminal of present embodiment can also comprise except comprising all structures shown in Figure 7:
The 3rd sending module 1001 is used in response to the query manipulation of user to the resource transformation rule, sends the query requests of described resource transformation rule to described server, so that described server obtains the data message of described resource transformation rule;
The 3rd receiver module 1002 shows for the data message of the described resource transformation rule that receives described server transmission and to the user.
Corresponding to method embodiment, the application also provides a kind of system of traffic resource assignment.
Referring to Figure 11, show the structure chart of the system embodiment 1 of traffic resource assignment among the application, the system of present embodiment can comprise: the described server 1101 of aforementioned arbitrary execution mode and, the described terminal 1201 of aforementioned arbitrary execution mode.
Adopt the technical scheme of server, terminal and system embodiment among the application, make that server system can unspent service resources exchanges the required service resources of user in the resource collection for the user utilizes in the set meal in the current life cycle, thereby avoided resource waste.Simultaneously, also make the user can be in current life cycle with set meal in surplus resources in the resource collection be used for having used up the business of resource, the expense of having saved resource consumption for the user.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.Do not having under the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
For device, equipment and/or system embodiment, because it corresponds essentially to method embodiment, so relevant part gets final product referring to the part explanation of method embodiment.Device described above, equipment and/or system embodiment only are schematic, wherein said module and/or unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills namely can understand and implement under the situation of not paying creative work.
The above only is the application's embodiment; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection range.