Automatic charging method and mobile communication terminal thereof
Technical field
The present invention relates to moving communicating field, relate more specifically to a kind of automatic charging method and mobile communication terminal thereof.
Background technology
Along with the development of mobile communication technology, the application function of mobile communication is more and more abundanter.Mobile communication is except traditional phone and SMS at present, the application of the movement-based communication networks such as QQ, Fetion, microblogging, little letter emerges in an endless stream especially, widened greatly people communication, exchange the visual field, the application of mobile communication has become the part of people's lives and has seemed by for important.
In view of the importance of mobile communication for people's life, for guaranteeing the unimpeded of mobile communication, the adequate and systematic service of mobile communication is also in continuous improvement.For supplementing with money of convenient vast mobile communication subscriber, the method for service that mobile communication is supplemented this infrastructure service with money also becomes diversified.Provided at present that rechargeable card is supplemented, bought in the operator business hall with money, the multiple modes of supplementing with money such as supplementing (StoreFront or network) with money is supplemented and acted on behalf of in the operator website with money, satisfied greatly the supplement demand of mobile communication subscriber under varying environment.
Yet the above various modes of supplementing with money all need the user to go to complete according to the judgement of self to supplement operation with money, usually can occur because the user fails in time to supplement with money the situation that causes arrearage that Mobile Communication Service is interrupted.When this situation occurs in special moment, may will retrieve to the loss that the user causes.
Therefore, be necessary to provide a kind of method of automatic value-charging and mobile communication terminal thereof to overcome defects.
Summary of the invention
The purpose of this invention is to provide a kind of automatic charging method, to realize the automatic value-charging of mobile communication account, effectively avoid interrupting owing in time not supplementing the Mobile Communication Service that causes with money, simplify supplementing with money of mobile communication account.
Another object of the present invention is to provide a kind of mobile communication terminal with automatic value-charging function, to realize the automatic value-charging of mobile communication account, effectively avoids interrupting owing in time not supplementing the Mobile Communication Service that causes with money, simplifies supplementing with money of mobile communication account.
To achieve these goals, the invention provides a kind of automatic charging method, comprise the steps:
(1) judge whether the current time is consistent with the scheduled time;
(2) obtain the remaining sum of mobile communication account according to the judged result of (1);
(3) judge that whether described remaining sum is less than threshold value;
(4) sending the payment user name of third party's payment platform and payment cipher and predetermined recharge amount and call number according to judged result supplements with money to described third party's payment platform.
Compared with prior art, at first the present invention judges whether the current time is consistent with the scheduled time, obtain again the remaining sum of mobile communication account, judge that more whether described remaining sum is less than threshold value, sending at last the payment user name of third party's payment platform and payment cipher and predetermined recharge amount and call number supplements with money to described third party's payment platform, realized the automatic value-charging of mobile communication account, effectively avoided interrupting owing in time not supplementing the Mobile Communication Service that causes with money, simplified supplementing with money of mobile communication account.
Preferably, described step (2) is specially: according to the judged result of (1) send the inquiry into balance note to operator to obtain described remaining sum.
Particularly, described step (1) also comprises before:
The described scheduled time, described threshold value, described payment user name, described payment cipher, described predetermined recharge amount and described call number are set.
Particularly, described step (4) also comprises afterwards:
(5) receive and resolve supplementing feedback information with money and pointing out successful recharging or failure according to the described feedback information of supplementing with money of described third party's payment platform.
Particularly, described step (5) also comprises before:
Whether receive the feedback information of supplementing with money of described third party's payment platform in the default duration of judgement;
According to judged result prompting supplement with money unsuccessfully, reminding user checks the account balance of described third party's payment platform and the account balance of mobile communication account.
Accordingly, the present invention also provides a kind of mobile communication terminal with automatic value-charging function, comprising:
The first judge module is used for judging whether the current time is consistent with the scheduled time;
Acquisition module is for obtain the remaining sum of mobile communication account according to the judged result of described the first judge module;
The second judge module is used for judging that whether described remaining sum that described acquisition module obtains is less than threshold value;
Supplement module with money, be used for judged result according to described the second judge module and send the payment user name of third party's payment platform and payment cipher and predetermined recharge amount and call number and supplement with money to described third party's payment platform.
Particularly, described mobile communication terminal also comprises:
Module is set, is used for arranging the described scheduled time, described threshold value, described payment user name, described payment cipher, described predetermined recharge amount and described call number.
Particularly, described mobile communication terminal also comprises:
Parsing module is used for receiving and resolving supplementing feedback information with money and pointing out successful recharging or failure according to the described feedback information of supplementing with money of described third party's payment platform.
Particularly, described mobile communication terminal also comprises:
The 3rd judge module is used for judgement and presets the feedback information of supplementing with money of whether receiving described third party's payment platform in duration;
Reminding module, be used for according to the judged result prompting of described the 3rd judge module supplement with money unsuccessfully, reminding user checks the account balance of described third party's payment platform and the account balance of mobile communication account.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Description of drawings
Fig. 1 is an embodiment flow chart of automatic charging method of the present invention.
Fig. 2 is the example structure block diagram with mobile communication terminal of automatic value-charging function of the present invention.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, in accompanying drawing, similar element numbers represents similar element.
With reference to Fig. 1, automatic charging method of the present invention comprises the steps:
Step S101 arranges the scheduled time, threshold value, payment user name, payment cipher, predetermined recharge amount and call number; As: it is that " 100 ", payment user " user " by name, payment cipher are that " 50 " and call number are " 13712340000 " for " pass ", predetermined recharge amount for " 9:00 ", threshold value that the scheduled time is set;
Step S102 judges whether the current time is consistent with the described scheduled time, if, execution in step S103, otherwise, repeating said steps S102; As: the current time is " 9:00 ", so judge that the current time is consistent with the scheduled time; And for example: the current time is " 8:00 ", so judge the current time and the scheduled time is inconsistent and continue to judge;
Step S103, according to the judged result of described step S102 send the inquiry into balance note to operator to obtain described remaining sum; As: send short message content " CXYE " to 10086, obtain 10086 answer short message, resolve the remaining sum that short message content obtains the mobile communication account and be " 80 ";
Whether step S104 judges described remaining sum less than threshold value, if, execution in step S105, on the contrary repeating said steps S102 is to described step S104; As: because the remaining sum of mobile communication account is " 80 ", it is less than threshold value " 100 ", so execution in step S105;
Step S105 sends the described payment user name of third party's payment platform and described payment cipher and described predetermined recharge amount and described call number according to described step S104 judged result and supplements with money to described third party's payment platform; Wherein, described payment user name, described payment cipher, described predetermined recharge amount and described call number will be sent to according to the interface standard that described third party's payment platform provides described third party's payment platform; As: third party's payment platform as described in the payment user name " user " that arranges in step S101 as described in sending, payment cipher " pass ", predetermined recharge amount " 50 " and call number " 13712340000 " are given, described third party's payment platform carries out authentication to payment user name " user ", the payment cipher " pass " of receiving, the account balance of authentication by rear more described third party's payment platform whether more than or equal to this recharge amount " 50 ", if supplement predetermined recharge amount " 50 " with money for described call number " 13712340000 ";
Whether step S107 receives the feedback information of supplementing with money of described third party's payment platform in the default duration of judgement, if, execution in step S108, otherwise, execution in step S107; Wherein, describedly supplement the character string that feedback information is the different meanings of representative of described third party's payment platform feedback with money; It will be apparent to those skilled in the art that the unstable feedback information of supplementing with money that may cause to receive in default duration described third party's payment platform of mobile communications network; As: as described in default duration be 10 minutes, judge the feedback information of supplementing with money of whether receiving described third party's payment platform in 10 minutes; As: the feedback information of supplementing with money of receiving is " YEBZ "; And for example: the feedback information of supplementing with money of receiving is " OK ";
Step S107, prompting is supplemented with money unsuccessfully, reminding user checks the account balance of described third party's payment platform and the account balance of mobile communication account; As: as described in not receiving in 10 minutes third party's payment platform supplement feedback information with money, " supplement with money unsuccessfully, please check the account balance of payment platform and the account balance of mobile communication account " so eject information;
Step S108 receives and resolves supplementing feedback information with money and pointing out successful recharging or failure according to the described feedback information of supplementing with money of described third party's payment platform.As: receiving and supplementing feedback information with money is character string " YEBZ ", resolves and learns that account balance is not enough, so eject information " Sorry, your ticket has not enough value, supplements with money unsuccessfully "; And for example: receiving and supplementing feedback information with money is " OK ", resolves and learns successful recharging, so eject information " successful recharging ".
With reference to Fig. 2, the mobile communication terminal 100 with automatic value-charging function of the present invention comprises:
Module 10 is set, is used for arranging the scheduled time, threshold value, payment user name, payment cipher, predetermined recharge amount and call number;
The first judge module 20 is used for judge that the current time is whether consistent with the described described scheduled time that module 10 settings are set;
Acquisition module 30 is for obtain the remaining sum of mobile communication account according to the judged result of described the first judge module 20; Be specially, the first judge module 20 is judged the current time when consistent with the scheduled time, acquisition module 30 send the inquiry into balance notes to operator to obtain remaining sum;
The second judge module 40 is used for judging that whether described remaining sum that described acquisition module 30 obtains is less than threshold value;
Supplement module 50 with money, be used for judged result according to described the second judge module 40 and send the payment user name of third party's payment platform and payment cipher and predetermined recharge amount and call number and supplement with money to described third party's payment platform; Be specially, when the second judge module 40 judgement remaining sums during less than threshold value, can indicate and supplement module 50 with money and start working, otherwise, can indicate the first judge module 20 to continue judge that the current time is whether consistent with the described described scheduled time that module 10 settings are set;
The 3rd judge module 60 is used for judgement and presets the feedback information of supplementing with money of whether receiving described third party's payment platform in duration; As: default duration is 10 minutes;
Reminding module 70, be used for according to the judged result prompting of described the 3rd judge module 60 supplement with money unsuccessfully, reminding user checks the account balance of described third party's payment platform and the account balance of mobile communication account; Be specially, the determination result is NO when the 3rd judge module 60, namely do not receive the feedback information of supplementing with money of third party's payment platform in default duration, 70 of reminding modules can be pointed out and be supplemented with money unsuccessfully, reminding user checks the account balance of described third party's payment platform and the account balance of mobile communication account;
Parsing module 80 is used for receiving and resolve supplementing feedback information with money and pointing out successful recharging or failure according to the described feedback information of supplementing with money of described third party's payment platform according to the judged result of described the 3rd judge module 60; When judgment result is that of the 3rd judge module 60 is, namely receive the feedback information of supplementing with money of third party's payment platform in default duration, parsing module 80 receives and resolves supplements feedback information with money, supplement feedback information with money when " ok " when what parse, can point out successful recharging, supplement feedback information with money when " wrong " when what parse, can point out and supplement with money unsuccessfully.
can find out according to above description, described mobile communication terminal 100 first judges by the first judge module 20 whether the current time is consistent with the scheduled time, obtain again the remaining sum of mobile communication account by acquisition module 30, judge that by the second judge module 40 whether described remaining sum is less than threshold value again, send the payment user name of third party's payment platforms and payment cipher and predetermined recharge amount and call number and supplement with money to described third party's payment platform by supplementing module 50 with money at last, realized the automatic value-charging of mobile communication account, effectively avoided interrupting owing in time not supplementing the Mobile Communication Service that causes with money, simplified supplementing with money of mobile communication account.
Above invention has been described in conjunction with most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain various modification, equivalent combinations of carrying out according to essence of the present invention.