The content of the invention
To overcome problem present in correlation technique, the present invention to provide a kind of data processing method and device.
A kind of first aspect according to embodiments of the present invention, there is provided data processing method, is applied to server, methods described bag
Include:
The consumer record that any one default terminal sends is received, the consumer record at least includes:Payment amount, use of paying
Family mark, consumption user mark and destination item mark;
The destination item mark is extracted from the consumer record;
By consumer record storage in the destination item identifies corresponding destination item.
Further, methods described also includes:
Judge whether to receive the settlement request to destination item clearing;
When the settlement request is received, payment amount in all consumer records and paying in the destination item
ID, calculates each paying customer and identifies corresponding paying total amount;Paying gold in all consumer records
Volume and consumption user are identified, and are calculated each consumption user and are identified corresponding consumption total amount;
Corresponding paying total amount is identified according to each paying customer and each consumption user identifies corresponding consumption total amount, meter
Calculate settlement information corresponding with all ID that the destination item is associated.
Further, methods described also includes:
Corresponding settlement information is sent to default terminal corresponding with each ID that the destination item is associated.
Further, the consumer record is also identified including kind of currencies;
Methods described also includes:
When the settlement request is received, judge whether that kind of currencies is not default goods in all consumer records
The consumer record of currency type class;
To not be the consumption note of the default kind of currencies when there is kind of currencies is not the consumer record of default kind of currencies
Record is converted to the consumer record of the default kind of currencies.
Wherein, described will not be that the consumer record of the default kind of currencies is converted to the consumer record of the default kind of currencies,
Including:
It is not the consumer record of the default kind of currencies for each, the kind of currencies mark in the consumer record is replaced
It is changed to default kind of currencies mark;
Obtain the exchange rate between the kind of currencies mark in default kind of currencies mark and the consumer record;
Using the payment amount in the consumer record payment amount corresponding with default kind of currencies is calculated with the exchange rate;
Payment amount in the consumer record is replaced with into the payment amount being calculated, for the target item
Mesh is used when settling accounts.
Wherein, it is described that corresponding paying total amount and the corresponding consumption of each consumption user mark are identified according to each paying customer
Total amount, calculates settlement information corresponding with all ID that the destination item is associated, including:
It is associated each ID for the destination item, compares the corresponding paying total amount of the ID and institute
State the corresponding consumption total amount of ID;
When the corresponding paying total amount of ID consumption total amount corresponding more than the ID, it is determined that described
The corresponding user of ID also needs first amount of money of paying, and first amount of money is the corresponding consumption total amount of the ID
And the difference of the corresponding paying total amount of the ID;
When the corresponding paying total amount of ID consumption total amount corresponding equal to the ID, it is determined that described
User without paying and need not charge again again;
When the corresponding paying total amount of ID consumption total amount corresponding less than the ID, it is determined that described
The corresponding user of ID also needs second amount of money of charging, and second amount of money is the corresponding paying total amount of the ID
And the difference of the corresponding consumption total amount of the ID.
A kind of second aspect according to embodiments of the present invention, there is provided data processing method, is applied to terminal, and methods described includes:
The consumer record of user input is received, the consumer record at least includes:Payment amount, paying customer's mark, consumption
ID and destination item are identified;
Judge whether that the transmission received for sending the consumer record is operated;
When the transmission operation is received, the consumer record is sent to predetermined server;So that the predetermined server will
The consumer record storage is in the destination item identifies corresponding destination item.
Further, methods described also includes:
Generation project request to create is simultaneously sent to the predetermined server, so that the predetermined server creates destination item;
The invitation request Concurrency that generation carries targeted customer's mark gives the predetermined server, so that the predetermined server
Asked to targeted customer mark described invitation of counterpart terminal forwarding, and, when the predetermined server receives the mesh
During the invitation response of the agreement invitation request that the corresponding terminal of mark ID sends, the targeted customer is identified and is added
To in the destination item;
Receive targeted customer mark that the predetermined server sends, being successfully joined the destination item and locally showing
Show.
Further, methods described also includes:
Receive the invitation request of the predetermined server forwarding;
When the confirmation operation for agreeing to the invitation request is received, generation is agreed to the invitation response of the invitation request and is sent
To the predetermined server;So that during the corresponding ID of the terminal is added the destination item by the predetermined server,
And, the corresponding ID of the terminal for making the predetermined server to be successfully joined in the destination item is sent to mesh
Mark terminal, the target terminal is to send the terminal invited and ask.
Wherein, it is public account book or communication group to state destination item.
A kind of third aspect according to embodiments of the present invention, there is provided data processing equipment, is applied to server, described device bag
Include:
First receiver module, for receiving the consumer record that any one default terminal sends, the consumer record at least includes:
Payment amount, paying customer's mark, consumption user mark and destination item mark;
Extraction module, for extracting the destination item mark from the consumer record;
Memory module, for the consumer record to be stored in the destination item identifies corresponding destination item.
Further, described device also includes:
First judge module, for judging whether to receive the settlement request to destination item clearing;
First computing module, for when the settlement request is received, all consumer records in the destination item
In payment amount and paying customer's mark, calculate each paying customer and identify corresponding paying total amount;According to described all
Payment amount and consumption user mark in consumer record, calculates each consumption user and identifies corresponding consumption total amount;
Second computing module, it is right with each consumption user mark for identifying corresponding paying total amount according to each paying customer
The consumption total amount answered, calculates settlement information corresponding with all ID that the destination item is associated.
Further, described device also includes:
First sending module, for sending right to default terminal corresponding with each ID that the destination item is associated
The settlement information answered.
Further, the consumer record is also identified including kind of currencies;
Described device also includes:
Second receiver module, for when the settlement request is received, being judged whether in all consumer records
Kind of currencies is not the consumer record of default kind of currencies;
Modular converter, for that will not be the default goods when there is kind of currencies is not the consumer record of default kind of currencies
The consumer record of currency type class is converted to the consumer record of the default kind of currencies.
Wherein, the modular converter includes:
First replacement unit, the consumer record for for each not being the default kind of currencies, by the consumer record
In kind of currencies mark replace with default kind of currencies mark;
Acquiring unit, for obtaining the exchange rate between the kind of currencies mark in default kind of currencies mark and the consumer record;
Computing unit, for being calculated and default kind of currencies phase with the exchange rate using the payment amount in the consumer record
Corresponding payment amount;
Second replacement unit, for the payment amount in the consumer record to be replaced with into the payment amount being calculated,
For being used when being settled accounts to the destination item.
Wherein, second computing module includes:
Comparing unit, for being associated each ID for the destination item, relatively more described ID is corresponding
Paying total amount consumption total amount corresponding with the ID;
First determining unit, for being more than the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine that the corresponding user of the ID also needs first amount of money of paying, first amount of money to be marked for the user
Know the difference of corresponding consumption total amount and the corresponding paying total amount of the ID;
Second determining unit, for being equal to the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine the user without paying again and need not charge again;
3rd determining unit, for being less than the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine that the corresponding user of the ID also needs second amount of money of charging, second amount of money to be marked for the user
Know corresponding paying total amount and the ID it is corresponding consumption total amount difference.
A kind of fourth aspect according to embodiments of the present invention, there is provided data processing equipment, is applied to terminal, and described device includes:
3rd receiver module, the consumer record for receiving user input, the consumer record at least includes:Payment amount,
Paying customer's mark, consumption user mark and destination item mark;
Second judge module, the transmission for judging whether to receive for sending the consumer record is operated;
Second sending module, for when the transmission operation is received, sending the consumer record to predetermined server;With
The predetermined server is set to store in the destination item identifies corresponding destination item the consumer record.
Further, described device also includes:
First generation module, for generating project request to create and being sent to the predetermined server, so that the preset service
Device creates destination item;
Second generation module, the invitation request Concurrency that targeted customer's mark is carried for generating gives the predetermined server,
So that the predetermined server is asked to targeted customer mark described invitation of counterpart terminal forwarding, and, when described default
Server receives the targeted customer and identifies when agreeing to the invitation response that the invitation is asked of corresponding terminal transmission, by institute
Targeted customer's mark is stated to be added in the destination item;
4th receiver module, for receiving the target that the predetermined server sends, being successfully joined the destination item
ID is simultaneously being locally displayed.
Further, described device also includes:
5th receiver module, the invitation request for receiving the predetermined server forwarding;
3rd generation module, for when the confirmation operation for agreeing to the invitation request is received, generation to agree to that the invitation is asked
The invitation response asked simultaneously is sent to the predetermined server;So that the predetermined server is by the corresponding ID of the terminal
In adding the destination item, and, the terminal-pair in making the predetermined server to be successfully joined the destination item
The ID answered is sent to target terminal, and the target terminal is to send the terminal invited and ask.
Wherein, the destination item is public account book or communication group.
The technical scheme that embodiments of the invention are provided can include the following benefits:By the present invention, with destination item phase
All users of association by the terminal of oneself can generate the consumer record that be associated with destination item and be sent to server.
What is be associated with destination item is all with by the terminal of oneself can checking the payment amount of oneself from server per family and disappear
Take the amount of money, and the payment amount and spending amount for checking other each users.In this way, all consumption note in destination item
The all user's full disclosures pair be associated with destination item are recorded, all user-to-user informations being associated with destination item are symmetrical.
And, consumption user mark, paying customer's mark and payment amount are all included in each consumer record, therefore, according to all
Consumer record can rapidly and accurately clear out the settlement information of each user being associated with destination item, i.e. can be rapid
And accurately clear out each associated user of destination item and also need the amount of money paid or the amount of money for also needing charge.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, can not limit
The system present invention.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to accompanying drawing
When, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.In following exemplary embodiment
Described implementation method does not represent all implementation methods consistent with the present invention.Conversely, they are only and such as appended power
The example of the consistent apparatus and method of some aspects described in detail in sharp claim, of the invention.
Fig. 1 is a kind of schematic diagram of a scenario shown in the embodiment of the present invention, and referring to Fig. 1, figure includes server 1 and multiple terminals
2, wherein, each terminal 2 is common communication terminal, for example:Mobile phone or panel computer etc..Each kimonos of terminal 2
Can be communicated by base station between business device 1, it is also possible to communicated by wireless network.
Fig. 2 is a kind of flow chart of the data processing method according to an exemplary embodiment, as shown in Fig. 2 the party
Method is applied in the server 1 shown in Fig. 1, is comprised the following steps.
In step S101, the consumer record of any one terminal transmission is received;
Terminal in the embodiment of the present invention is the terminal 2 shown in Fig. 1.
Destination item can be that a public account book or one communicate group etc., and each terminal 2 shown in Fig. 1 can be at this
Consumer record is stored in public account book or communication group.
Consumer record at least includes:Payment amount, paying customer's mark, consumption user mark and destination item mark;Should
Payment amount is that the paying customer identifies corresponding payment amount, and it can also be multiple that consumption user mark can be one,
The consumption user is designated the ID of the user for having consumed the payment amount, and destination item mark can be destination item
Title or numbering etc., the present invention are not limited to this.
For example, when multiple users go with and travel away from home, destination item can be the public account book that one of user creates,
Other users are the user being associated with the public account book, wherein, each user has a terminal, on the road usually
The situation for needing collective consumption can be run into, the collective consumption can be paid as paying customer by one of user,
Then this payment amount is input into public account book of the paying customer in the terminal of oneself, is then input into the user's mark of oneself
Know and identified as paying customer, and input has consumed the ID of the user of the payment amount as consumption user mark,
Then the payment amount being input into, paying customer mark, consumption user mark are submitted into terminal, terminal carries user
The mark of the payment amount, paying customer mark, consumption user mark and the public account book handed over constitutes a consumer record
And it is sent to server;The consumer record that server receiving terminal sends.
Wherein, the server in the embodiment of the present invention is the server 1 shown in Fig. 1.
In step s 102, destination item mark is extracted from the consumer record;
In step s 103, by consumer record storage in destination item identifies corresponding destination item.
During so as to need to settle accounts destination item afterwards, can remember from all consumption in local direct access destination item
Record and settled accounts.
By the embodiment shown in Fig. 2 of the present invention, all users being associated with destination item can be by the terminal of oneself
The consumer record that is associated with destination item of generation is simultaneously sent to server.What is be associated with destination item is all with per family can be with
Oneself payment amount and spending amount are checked from server by the terminal of oneself, and checks paying for other each users
Take the amount of money and spending amount.In this way, all users that all consumer records pair in destination item are associated with destination item are complete
Complete open, all user-to-user informations being associated with destination item are symmetrical.And, consumption is all included in each consumer record
ID, paying customer mark and payment amount, therefore, according to all consumer records can rapidly and accurately clear out with
The settlement information of each associated user of destination item, i.e. can rapidly and accurately clear out associated every of destination item
Individual user also needs the amount of money paid or the amount of money for also needing charge.
In an alternative embodiment of the invention, referring to Fig. 3, the method also includes:
In step s 201, judge whether to receive the settlement request to destination item clearing;
For example, when End Of Tour, all consumer records stored in the plurality of user needs to the public account book are tied
During calculation, any user can be input into settlement operations in oneself terminal, when terminal receives the settlement operations, can generate
Settlement request is simultaneously sent to server.
When the settlement request is received, in step S202, the paying gold in all consumer records in destination item
Volume and paying customer identify, and calculate each paying customer and identify corresponding paying total amount;And, according to all consumption notes
Payment amount and consumption user mark in record, calculates each consumption user and identifies corresponding consumption total amount;
Any one paying customer mark in all consumer records in for destination item, server is in all consumer records
Middle lookup paying customer identifies corresponding all payment amounts, and all payment amounts that will be found collect obtaining this pair
Take the corresponding paying total amount of ID.Other each paying customers mark in all consumer records in for destination item
Know, be performed both by aforesaid operations, so obtain the corresponding paying total amount of each paying customer.
In any one consumer record in for destination item, server can utilize the payment amount in the consumer record
Each consumption user calculated with consumption user mark in the consumer record identifies corresponding spending amount, wherein, server can
With the number that the consumption user for counting the consumer record and including is identified, an amount of money is obtained divided by the number using the payment amount,
The amount of money that will be obtained identifies corresponding spending amount as each consumption user in the consumer record.It is every for other
Bar consumer record is performed both by aforesaid operations, so obtains the corresponding consumption gold of each consumption user mark in all consumer records
Volume.
Any one consumption user mark in all consumer records in for destination item, obtains consumption user mark right
The all spending amounts answered, all spending amounts that will be found collect and obtain the corresponding consumption of consumption user mark always
The amount of money.Other each consumption users mark in all consumer records in for destination item, is performed both by aforesaid operations, such as
This obtains the corresponding consumption total amount of each consumption user.
In step S203, corresponding paying total amount is identified according to each paying customer and each consumption user mark is corresponding
Consumption total amount, calculates settlement information corresponding with all ID that destination item is associated.
Specifically, for being associated any one ID with destination item, the corresponding total gold of paying of the ID is compared
Volume consumption total amount corresponding with the ID;
When the corresponding paying total amount of ID consumption total amount corresponding more than the ID, determine that the user marks
Knowing corresponding user also needs first amount of money of paying again, and first amount of money is that the corresponding consumption total amount of the ID is marked with the user
Know the difference of corresponding paying total amount;
When the corresponding paying total amount of the ID be equal to the ID it is corresponding consumption total amount when, determine the user without
Need to pay again without charging again;
When the corresponding paying total amount of ID consumption total amount corresponding less than the ID, determine that the user marks
Knowing corresponding user also needs second amount of money of charging again, and second amount of money is that the corresponding paying total amount of the ID is marked with the user
Know the difference of corresponding consumption total amount.
For being associated other each ID with destination item, aforesaid operations are performed both by, so obtained and destination item phase
The corresponding settlement information of all ID of association.
Further, in order that obtaining user corresponding with each ID that destination item is associated passes through the terminal of oneself just
It can be seen that the settlement information of oneself, after this step, server can also be to each user being associated with destination item
Identify corresponding terminal and send corresponding settlement information respectively, these terminals are the terminal 2 shown in Fig. 1.That is, for
Any one associated ID of destination item, in order that the corresponding user of the ID just can be with the terminal of oneself
See the settlement information of oneself, server can also send the corresponding clearing of the ID to the corresponding terminal of the ID
Information.For other each ID being associated with destination item, aforesaid operations are performed both by.
In addition, while corresponding settlement information is sent respectively to the corresponding terminal of each ID, can also be to each
The corresponding terminal of ID sends each paying customer and identifies corresponding paying total amount and each consumption user mark respectively
Corresponding consumption total amount, so that each user not can be only seen the settlement information of oneself, it is also possible to see other each use
The consumption total amount and payment total amount at family.And, server can also converge to the payment amount in all consumer records
The corresponding paying total amount of all consumer records must be arrived, and all consumer records are sent to the corresponding terminal of each ID
Corresponding paying total amount, so that the corresponding user of each ID knows the how much amount of money consumed altogether.
The situation of collective consumption is repeatedly needed when running into, the multiple collective consumption may be distinguished by multiple different paying customers
Paid, different paying customers may be paid using different types of currency, for example, some paying customers make
Pay by RMB, some paying customers are paid using dollar, and some paying customers use Euro paying etc..So,
The kind of currencies of the payment amount in different consumer records will be inconsistent, when being settled accounts to destination item after, such as
Fruit is directly directly settled accounts the payment amount in all of consumer record, then final checkout result can be caused inaccurate.
Therefore, in order to obtain accurate checkout result, in an alternative embodiment of the invention, referring to Fig. 4, the method is also wrapped
Include:
When the settlement request is received, in step S301, judge whether kind of currencies not in all consumer records
It is the consumer record of default kind of currencies;
In embodiments of the present invention, in order to the payment amount of different kind of currencies is made a distinction, when paying customer is to collective
When consumption is paid, paying customer is in the terminal of oneself except the ID for being input into this payment amount, being input into oneself
As paying customer identify, and input consumed the payment amount user ID as consumption user identify outside,
Also need to be input into the corresponding kind of currencies mark of this payment amount, the kind of currencies is identified for identifying this payment amount
Kind of currencies, so, terminal will be by the paying customer of user input mark, payment amount, kind of currencies mark and paying
ID constitutes a consumer record and is sent to server.
In this step, server travels through each consumer record successively, when a consumer record is traversed, from the consumption
Kind of currencies mark is extracted in record, is compared the kind of currencies mark for extracting and is identified with default kind of currencies;If carried
The kind of currencies mark taken out is identical with default kind of currencies mark, it is determined that the consumer record is disappearing for default kind of currencies
Take record;If kind of currencies mark is different from default kind of currencies mark, it is determined that the consumer record is not default currency
The consumer record of species.
Wherein, if the kind of currencies mark in every consumer record is default kind of currencies mark, it is determined that in the absence of goods
Currency type class is not the consumer record of default kind of currencies, that is, determine that the consumer record of whole is the consumption note of default kind of currencies
Record, performs step S202.
To not be default currency kind in step s 302 when there is kind of currencies is not the consumer record of default kind of currencies
The consumer record of class is converted to the consumer record of default kind of currencies.Then step S202 is performed again.
Specifically, it is not the consumer record of default kind of currencies for any one, by the kind of currencies mark in the consumer record
Knowledge replaces with default kind of currencies mark, then obtains default kind of currencies and identifies and the kind of currencies mark in the consumer record
Between the exchange rate;Using the payment amount in the consumer record paying corresponding with default kind of currencies is calculated with the exchange rate
The amount of money, for example, carry out the payment amount in the consumer record and the exchange rate multiplying and obtain relative with default kind of currencies
The payment amount answered;Then payment amount in the consumer record is replaced with the payment amount being calculated, for it
Used when being settled accounts to destination item afterwards.
Be not the consumer record of default kind of currencies for other every, be performed both by aforesaid operations, with realize by it is all be not pre-
If the consumer record of kind of currencies is converted into the consumer record of default kind of currencies.Then step S202 is performed again.
It is right when needing after unifying to the kind of currencies in all of consumer record by the method for the embodiment of the present invention
When destination item is settled accounts, it is possible to directly settled accounts the payment amount in all of consumer record, and can obtain
Accurate checkout result.
Fig. 5 is a kind of flow chart of the data processing method according to an exemplary embodiment, as shown in figure 5, the party
Method is applied in any one terminal 2 shown in Fig. 1, is comprised the following steps.
In step S401, the consumer record of user input is received;
Destination item can be that a public account book or one communicate group etc., and each terminal 2 shown in Fig. 1 can be at this
Consumer record is stored in public account book.
Consumer record at least includes:Payment amount, paying customer's mark, consumption user mark and destination item mark;Should
Payment amount is that the paying customer identifies corresponding payment amount, and it can also be multiple that consumption user mark can be one,
The consumption user is designated the ID of the user for having consumed the payment amount, and destination item mark can be destination item
Title or numbering etc., the present invention are not limited to this.
For example, when multiple users go with and travel away from home, destination item can be the public account book that one of user creates,
Other users are the user being associated with the public account book, wherein, each user has a terminal, on the road usually
The situation for needing collective consumption can be run into, the collective consumption can be paid as paying customer by one of user,
Then this payment amount is input into public account book of the paying customer in the terminal of oneself, is then input into the user's mark of oneself
Know and identified as paying customer, and input has consumed the ID of the user of the payment amount as consumption user mark,
Then the payment amount being input into, paying customer mark, consumption user mark are submitted into terminal, terminal carries user
The mark of the payment amount, paying customer mark, consumption user mark and the public account book handed over constitutes a consumer record
And it is sent to server;The consumer record that server receiving terminal sends.
In step S402, judge whether that the transmission received for sending the consumer record is operated;
After the consumer record is submitted to terminal by user, if user wants terminal and the consumer record is sent into server
So that the server storage consumer record, the transmission that user can be input into for sending the consumer record in terminal is operated.
For terminal, the transmission whether real-time judge receives for sending consumer record is operated, when receiving the transmission
During operation, step S403 is performed.
When transmission operation is received, in step S403, the consumer record is sent to server.
So that server stores in destination item identifies corresponding destination item the consumer record.
Server in the embodiment of the present invention is the server 1 shown in Fig. 1.
Wherein, after server receives the consumer record, by consumer record storage local, to target item for after
Mesh is used when settling accounts.
Embodiment shown in Fig. 5 of the present invention supports that all users being associated with destination item can be given birth to by the terminal of oneself
Into the consumer record being associated with destination item and it is sent to server.What is be associated with destination item is all with can lead to per family
Cross the terminal of oneself and the payment amount and spending amount of oneself, and the paying for checking other each users are checked from server
The amount of money and spending amount.In this way, all users that all consumer records pair in destination item are associated with destination item are complete
Open, all user-to-user informations being associated with destination item are symmetrical.And, all include that consumption is used in each consumer record
Family mark, paying customer's mark and payment amount, therefore, can rapidly and accurately be cleared out and mesh according to all consumer records
The settlement information of each associated user of mark project, i.e. can rapidly and accurately clear out associated each of destination item
User also needs the amount of money paid or the amount of money for also needing charge.
Before the embodiment shown in Fig. 5 of the present invention, in an alternative embodiment of the invention, referring to Fig. 6, the method also includes:
In step S501, generate project request to create and be sent to server;
So that server creates destination item.
Wherein, when user needs to create a project, the establishment that can be input into for creating project in the terminal of oneself is operated
And terminal is submitted to, when the establishment that terminal receives user input is operated, generate project request to create and be sent to server;
Server receives establishment of item request, and destination item is created according to establishment of item request;After destination item is successfully created,
Transmission successfully creates the notification message of destination item to terminal;Terminal is received and shows the notification message, so that user knows service
Device successfully creates destination item.
In step S502, the invitation request Concurrency that generation carries targeted customer's mark gives server;
So that server forwards the invitation to ask to targeted customer's mark counterpart terminal, and, used when server receives target
When family identifies the invitation response for agreeing to invitation request that corresponding terminal sends, targeted customer's mark is added to destination item
In.
In embodiments of the present invention, after server successfully creates destination item, the user invasive being associated with destination item
The establishment user for building destination item.Creating user can invite other people to be together added in destination item, wherein, create and use
Family can select the ID of user to be invited to be identified as targeted customer in the establishment terminal of oneself, and submit to establishment
Terminal;Targeted customer's mark of terminal reception user's selection is created, clothes are given according to the raw invitation request Concurrency of targeted customer's mark
Business device.
Server receives invitation request, and targeted customer's mark is extracted from invitation request;Identified to each targeted customer
Corresponding terminal forwards the invitation to ask.
Corresponding terminal is identified for any one targeted customer, when the invitation that the terminal receives server forwarding is asked,
Show that the invitation is asked, when the corresponding user of the terminal sees invitation request on the terminal, if the terminal is corresponding
User is ready to add destination item, then the determination operation for agreeing to invitation request can be input into terminal;When terminal is received
When the confirmation is operated, generation agrees to the invitation response of invitation request and is sent to server;For other each terminals,
Perform aforesaid operations.
When server receives the invitation response that a terminal sends, server can add a terminal in destination item
Corresponding ID.
In step S503, targeted customer's mark that the reception server sends, being successfully joined destination item is simultaneously being locally displayed.
So, user can just know server by targeted customer's mark addition destination item.
Before the embodiment shown in Fig. 5 of the present invention, in still another embodiment of the process, referring to Fig. 7, the method also includes:
In step s 601, the invitation request of the reception server forwarding;
In embodiments of the present invention, after server successfully creates destination item, the user invasive being associated with destination item
The establishment user for building destination item.Creating user can invite other people to be together added in destination item, wherein, create and use
Family can select the ID of user to be invited to be identified as targeted customer in the establishment terminal of oneself, and submit to establishment
Terminal;Targeted customer's mark of terminal reception user's selection is created, clothes are given according to the raw invitation request Concurrency of targeted customer's mark
Business device.
Server receives invitation request, and targeted customer's mark is extracted from invitation request;Identified to each targeted customer
Corresponding terminal forwards the invitation to ask.
Corresponding terminal is identified for any one targeted customer, when the invitation that the terminal receives server forwarding is asked,
Show that the invitation is asked, when the corresponding user of the terminal sees invitation request on the terminal, if the terminal is corresponding
User is ready to add destination item, then the determination operation for agreeing to invitation request can be input into terminal;When terminal is received
When the confirmation is operated, generation agrees to the invitation response of invitation request and is sent to server;For other each targeted customers
Corresponding terminal is identified, aforesaid operations are performed both by.
In step S602, detect whether to receive the confirmation operation for agreeing to invitation request;
When confirmation operation is received, in step S603, generation agrees to that the invitation response of invitation request is simultaneously sent to clothes
Business device.
So that during the corresponding ID of the terminal is added destination item by server, and, server will be successfully joined mesh
The corresponding ID of terminal of mark project is sent to target terminal, and target terminal is the terminal for sending invitation request, so,
Sending the corresponding user of terminal of invitation request can just know that the corresponding ID of the terminal is added mesh by server
In mark project.
Fig. 8 is a kind of block diagram of the data processing equipment according to an exemplary embodiment, as shown in figure 8, the device
Including:
First receiver module 11, for receiving the consumer record that any one default terminal sends, the consumer record is at least wrapped
Include:Payment amount, paying customer's mark, consumption user mark and destination item mark;
Extraction module 12, for extracting the destination item mark from the consumer record;
Memory module 13, for the consumer record to be stored in the destination item identifies corresponding destination item.
By the embodiment shown in Fig. 8 of the present invention, all users being associated with destination item can be by the terminal of oneself
The consumer record that is associated with destination item of generation is simultaneously sent to server.What is be associated with destination item is all with per family can be with
Oneself payment amount and spending amount are checked from server by the terminal of oneself, and checks paying for other each users
Take the amount of money and spending amount.In this way, all users that all consumer records pair in destination item are associated with destination item are complete
Complete open, all user-to-user informations being associated with destination item are symmetrical.And, consumption is all included in each consumer record
ID, paying customer mark and payment amount, therefore, according to all consumer records can rapidly and accurately clear out with
The settlement information of each associated user of destination item, i.e. can rapidly and accurately clear out associated every of destination item
Individual user also needs the amount of money paid or the amount of money for also needing charge.
Further, described device also includes:
First judge module, for judging whether to receive the settlement request to destination item clearing;
First computing module, for when the settlement request is received, all consumer records in the destination item
In payment amount and paying customer's mark, calculate each paying customer and identify corresponding paying total amount;According to described all
Payment amount and consumption user mark in consumer record, calculates each consumption user and identifies corresponding consumption total amount;
Second computing module, it is right with each consumption user mark for identifying corresponding paying total amount according to each paying customer
The consumption total amount answered, calculates settlement information corresponding with all ID that the destination item is associated.
Further, described device also includes:
First sending module, for sending right to default terminal corresponding with each ID that the destination item is associated
The settlement information answered.
Further, the consumer record is also identified including kind of currencies;
Described device also includes:
Second receiver module, for when the settlement request is received, being judged whether in all consumer records
Kind of currencies is not the consumer record of default kind of currencies;
Modular converter, for that will not be the default goods when there is kind of currencies is not the consumer record of default kind of currencies
The consumer record of currency type class is converted to the consumer record of the default kind of currencies.
Wherein, the modular converter includes:
First replacement unit, the consumer record for for each not being the default kind of currencies, by the consumer record
In kind of currencies mark replace with default kind of currencies mark;
Acquiring unit, for obtaining the exchange rate between the kind of currencies mark in default kind of currencies mark and the consumer record;
Computing unit, for being calculated and default kind of currencies phase with the exchange rate using the payment amount in the consumer record
Corresponding payment amount;
Second replacement unit, for the payment amount in the consumer record to be replaced with into the payment amount being calculated,
For being used when being settled accounts to the destination item.
Wherein, second computing module includes:
Comparing unit, for being associated each ID for the destination item, relatively more described ID is corresponding
Paying total amount consumption total amount corresponding with the ID;
First determining unit, for being more than the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine that the corresponding user of the ID also needs first amount of money of paying, first amount of money to be marked for the user
Know the difference of corresponding consumption total amount and the corresponding paying total amount of the ID;
Second determining unit, for being equal to the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine the user without paying again and need not charge again;
3rd determining unit, for being less than the corresponding consumption of the ID when the corresponding paying total amount of the ID
During total amount, determine that the corresponding user of the ID also needs second amount of money of charging, second amount of money to be marked for the user
Know corresponding paying total amount and the ID it is corresponding consumption total amount difference.
Fig. 9 is a kind of block diagram of the data processing equipment according to an exemplary embodiment, as shown in figure 9, the device
Including:
3rd receiver module 21, the consumer record for receiving user input, the consumer record at least includes:Payment amount,
Paying customer's mark, consumption user mark and destination item mark;
Second judge module 22, the transmission for judging whether to receive for sending the consumer record is operated;
Second sending module 23, for when the transmission operation is received, sending the consumer record to predetermined server;
So that the predetermined server stores in the destination item identifies corresponding destination item the consumer record.
Embodiment shown in Fig. 9 of the present invention supports that all users being associated with destination item can be given birth to by the terminal of oneself
Into the consumer record being associated with destination item and it is sent to server.What is be associated with destination item is all with can lead to per family
Cross the terminal of oneself and the payment amount and spending amount of oneself, and the paying for checking other each users are checked from server
The amount of money and spending amount.In this way, all users that all consumer records pair in destination item are associated with destination item are complete
Open, all user-to-user informations being associated with destination item are symmetrical.And, all include that consumption is used in each consumer record
Family mark, paying customer's mark and payment amount, therefore, can rapidly and accurately be cleared out and mesh according to all consumer records
The settlement information of each associated user of mark project, i.e. can rapidly and accurately clear out associated each of destination item
User also needs the amount of money paid or the amount of money for also needing charge.
Further, described device also includes:
First generation module, for generating project request to create and being sent to the predetermined server, so that the preset service
Device creates destination item;
Second generation module, the invitation request Concurrency that targeted customer's mark is carried for generating gives the predetermined server,
So that the predetermined server is asked to targeted customer mark described invitation of counterpart terminal forwarding, and, when described default
Server receives the targeted customer and identifies when agreeing to the invitation response that the invitation is asked of corresponding terminal transmission, by institute
Targeted customer's mark is stated to be added in the destination item;
4th receiver module, for receiving the target that the predetermined server sends, being successfully joined the destination item
ID is simultaneously being locally displayed.
Further, described device also includes:
5th receiver module, the invitation request for receiving the predetermined server forwarding;
3rd generation module, for when the confirmation operation for agreeing to the invitation request is received, generation to agree to that the invitation is asked
The invitation response asked simultaneously is sent to the predetermined server;So that the predetermined server is by the corresponding ID of the terminal
In adding the destination item, and, the terminal-pair in making the predetermined server to be successfully joined the destination item
The ID answered is sent to target terminal, and the target terminal is to send the terminal invited and ask.
Wherein, the destination item is public account book or communication group.
Those skilled in the art will readily occur to other realities of the invention after considering specification and putting into practice invention disclosed herein
Apply scheme.The application is intended to any modification of the invention, purposes or adaptations, these modifications, purposes or
Adaptations follow general principle of the invention and including the undocumented common knowledge or used in the art of the present invention
Use technological means.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by appended right
It is required that pointing out.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and can
To carry out various modifications and changes without departing from the scope.The scope of the present invention is only limited by appended claim.