Summary of the invention
The main purpose of the present invention is to provide method for pushing, device and the computer-readable storage mediums of a kind of food bill
Matter, it is intended to solve the problems, such as that user can not trace the consumption for the various kinds of foods bought in history.
To achieve the above object, the method for pushing of a kind of food bill provided by the invention, the push of the food bill
Method the following steps are included:
Obtain the corresponding payment information of food and food information of user's purchase in target time section, wherein the food
Object information includes food species, food ingredients and fuel value of food;
Classified according to the food that each food information buys the user to obtain multiple set;
The corresponding payment bill of each set is generated according to each payment information, and according to the payment bill
And the food in the corresponding set of the payment bill generates food bill;
Each food bill is pushed to the terminal of the user-association.
In one embodiment, the food bought according to each food information to the user is classified to obtain
Include: to the step of multiple set
The preset kind where the food is determined according to the food information, wherein the preset kind is according to food
The division of at least one of type, food ingredients and fuel value of food obtains;
The each food for belonging to the same preset kind is gathered as one.
In one embodiment, the corresponding payment information of food and food for obtaining user's purchase in target time section
Before the step of information, further includes:
When receiving the acquisition request of food bill, the purchase of the user and food is determined according to the acquisition request
Buy the period;
It regard the time buying section as the target time section, and executes user in the acquisition target time section and buy
The corresponding payment information of food and food information the step of.
In one embodiment, the corresponding payment information of food and food for obtaining user's purchase in target time section
Before the step of information, further includes:
When current point in time reaches setting time point, preset interval duration is obtained;
Target time section is determined according to the preset interval duration and the current point in time, and executes the acquisition mesh
The step of marking the corresponding payment information of food and food information of user's purchase in the period.
In one embodiment, the method for pushing of the food bill, further includes:
The food of user's purchase is acquired to obtain food picture, and obtains the corresponding weight of the food;
It determines the time buying point of the food, and the food pair is determined according to the food picture and the weight
The food information and payment information answered;
The payment information is pushed to the terminal;
After the payment completion information for receiving the food, by the food information, time buying point, the branch
It pays information and the user-association and saves.
In one embodiment, described that the corresponding food bill of each set is generated according to each payment information
After step, further includes:
The corresponding setting food bill of the target time section is integrated into described in acquisition;
The corresponding payment prompt information of the set is generated according to the setting food bill and the payment bill, and
The payment prompt information is pushed to the terminal.
To achieve the above object, the present invention also provides a kind of driving means of food bill, the push of the food bill
Device include processor, memory and be stored in the memory and can the processor run food bill push
The push products of program, the food bill realizes each of the method for pushing of food bill as described above when being executed by processor
A step.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
Media storage has the push products of food bill, realizes when the push products of the food bill is executed by processor as described above
Food bill method for pushing each step.
Method for pushing, device and the computer readable storage medium of food bill provided by the invention, device obtain target
The corresponding payment information of food and food information that user buys in period, thus according to each food information to each food
Object is classified to obtain multiple set, is determined the corresponding payment bill of each set further according to each payment information, finally will
Each food in payment bill and the corresponding set of the payment bill generates food bill, and each food bill is pushed
To the terminal of user-association, allow users to learn the various kinds of foods of consumption and disappearing for various kinds of foods according to food bill
Take price, improves user experience.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
The primary solutions of the embodiment of the present invention are: obtaining the corresponding payment of food of user's purchase in target time section
Information and food information, wherein the food information includes food species, food ingredients and fuel value of food;According to each
The food that the food information buys the user is classified to obtain multiple set;It is raw according to each payment information
At the corresponding payment bill of each set, and according to the payment bill and the corresponding set of the payment bill
In food generate food bill;Each food bill is pushed to the terminal of the user-association.
Gathered since device can classify to each food according to the food information of the food of user's purchase, thus
It generates and gathers corresponding payment bill, generated according to each food in payment bill and the corresponding set of the payment bill
Food bill allows users to the consumption price of the various kinds of foods for learning consumption according to food bill and various kinds of foods, mentions
High user experience.
As a kind of implementation, the information push-delivery apparatus based on food can be as shown in Figure 1.
Further, referring to Fig.1, the driving means of food bill includes: processor 101, such as CPU, memory 102,
Communication bus 103.Wherein, communication bus 103 is for realizing the connection communication between these components.
Memory 102 can be high speed RAM memory, be also possible to stable memory (non-
), such as magnetic disk storage volatilememory.As shown in Figure 1, as in a kind of memory 102 of computer storage medium
It may include the push products of food bill;And processor 101 can be used for calling the food bill stored in memory 102
Push products, and execute following operation:
Obtain the corresponding payment information of food and food information of user's purchase in target time section, wherein the food
Object information includes food species, food ingredients and fuel value of food;
Classified according to the food that each food information buys the user to obtain multiple set;
The corresponding payment bill of each set is generated according to each payment information, and according to the payment bill
And the food in the corresponding set of the payment bill generates food bill;
Each food bill is pushed to the terminal of the user-association.
In one embodiment, processor 101 can be used for calling the push journey of the food bill stored in memory 102
Sequence, and execute following operation:
The preset kind where the food is determined according to the food information, wherein the preset kind is according to food
The division of at least one of type, food ingredients and fuel value of food obtains;
The each food for belonging to the same preset kind is gathered as one.
In one embodiment, processor 101 can be used for calling the push journey of the food bill stored in memory 102
Sequence, and execute following operation:
When receiving the acquisition request of food bill, the purchase of the user and food is determined according to the acquisition request
Buy the period;
It regard the time buying section as the target time section, and executes user in the acquisition target time section and buy
The corresponding payment information of food and food information the step of.
In one embodiment, processor 101 can be used for calling the push journey of the food bill stored in memory 102
Sequence, and execute following operation:
When current point in time reaches setting time point, preset interval duration is obtained;
Target time section is determined according to the preset interval duration and the current point in time, and executes the acquisition mesh
The step of marking the corresponding payment information of food and food information of user's purchase in the period.
In one embodiment, processor 101 can be used for calling the push journey of the food bill stored in memory 102
Sequence, and execute following operation:
The food of user's purchase is acquired to obtain food picture, and obtains the corresponding weight of the food;
It determines the time buying point of the food, and the food pair is determined according to the food picture and the weight
The food information and payment information answered;
The payment information is pushed to the terminal;
After the payment completion information for receiving the food, by the food information, time buying point, the branch
It pays information and the user-association and saves.
In one embodiment, processor 101 can be used for calling the push journey of the food bill stored in memory 102
Sequence, and execute following operation:
The corresponding setting food bill of the target time section is integrated into described in acquisition;
The corresponding payment prompt information of the set is generated according to the setting food bill and the payment bill, and
The payment prompt information is pushed to the terminal.
For the present embodiment according to above scheme, device obtains the corresponding payment information of food of user's purchase in target time section
And food information, to be classified each food to obtain multiple set, further according to each according to each food information
Payment information determines the corresponding payment bill of each set, finally will be in payment bill and the corresponding set of the payment bill
Each food generates food bill, and each food bill is pushed to the terminal of user-association, is allowed users to according to food
Object bill learns the various kinds of foods of consumption and the consumption price of various kinds of foods, improves user experience.
The hardware architecture of driving means based on above-mentioned food bill proposes the reality of the method for pushing of food bill of the present invention
Apply example.
It is the first embodiment of the method for pushing of food bill of the present invention, the information of the food bill referring to Fig. 2, Fig. 2
Method for pushing the following steps are included:
Step S10 obtains the corresponding payment information of food and food information of user's purchase in target time section,
In, the food information includes food species, food ingredients and fuel value of food;
In the present invention, executing subject is the driving means of food bill, and device is equipped with image capture module and weight
Sensor, image capture module can be camera or camera.Food can be placed on device when buying food by user
On, device detects the weight of food by weight sensor, and is shot food to acquire by image capture module
The corresponding food picture of food, so that the type of food is determined according to food picture, the type and food further according to food
Weight determines the ingredient and the corresponding heat of each ingredient of food, obtains food information, it is to be understood that food information
Including food species, food ingredients and fuel value of food;Device can further determine that purchase according to the type and weight of food
The price of the food is bought, which is payment information;Device is after obtaining food information and payment information, by payment information
The terminal of user-association is pushed to, user can be paid based on the payment information, and the purchase of the food is completed, and certainly, be used
The purchase that wechat payment, Alipay payment and the form paid in cash complete food can be directly used in family, without device
Payment information push;Device is after receiving the payment completion information of food, by the time buying of food information, food
Point, payment information and user-association simultaneously save.
It is understood that being stored with the consumer record that each user buys food on device, device can be spaced one end
Time pushes the consumer record of food and food to user, and the duration at interval can be one week, one month or one day, alternatively,
Device can carry out the push of food bill according to user to the purchase number of food, for example, user reaches the purchase of food
When to preset times, device pushes food bill to user.Certainly, user can pass through the food bill push products in terminal
The acquisition request of food bill is sent to device, so that device pushes food bill to terminal, specifically, receiving food in device
When the acquisition request of object bill, acquisition request is parsed to obtain user and need the time buying section of inquiring food, and obtain user
Name (user needs to fill in materials for registration in registration) to determine user according to user name, then regard time buying section as mesh
The period is marked, then obtains the food information and payment information of the food of purchase of the user in the target time section.It needs
Bright, payment information includes the food and the corresponding price of the food of user's purchase, and food information then includes food kind
Class, food ingredients and fuel value of food.
In addition, user can be arranged at the terminal between the timing push namely the settable timing push of user of food bill
It, can be according to the time point of setting interval duration and interval duration come when determining setting when setting is spaced duration every duration
Between point, setting time point and interval duration be stored on device.If current point in time reaches setting time point, then can root
It is back-calculated to obtain target time section according to setting time point and interval duration, food account of the user within the object time is generated with this
It is single.
Step S20 classifies according to the food that each food information buys the user to obtain multiple collection
It closes;
After obtaining the corresponding food information of each food, it can according to food information to each food classify with
Multiple set are obtained, specifically, referring to figure 3., i.e. step S20 includes:
Step S21 determines the preset kind where the food according to the food information, wherein the preset kind
It is obtained according to the division of at least one of food species, food ingredients and fuel value of food;
Step S22 gathers each food for belonging to the same preset kind as one.
In the present invention, device can carry out the division of type according to food information, and the type divided is default
Type, device can be divided at least one of case food species, food ingredients, fuel value of food, be with food species
Food can be divided into carnivorous, two kinds of preset kinds of vegetables by example;If being divided with food ingredients, then food can be drawn
Be divided into, high, medium and low protide, it is high, in low, starch, high, medium and low fats (account for the percentage of food weight according to ingredient
The section at place carries out the division of senior middle school's inferior grade);If being divided with fuel value of food, then it can be divided into high, medium and low three kinds in advance
If type;If being divided with two kinds or more in food species, food ingredients and fuel value of food, the default class of division
The quantity of type is the product of the corresponding preset kind of the two division factor, for example, the factor of division is food species and food heat
Amount, the corresponding type of food species is 2 kinds, and the corresponding type of fuel value of food is in 3, then according to food species and food
Total quantity=2 for the preset kind that heat divides × 3=6.
It is understood that device carries out the label of label according to food information to food, for example, marking the food is meat
Food, high protein and high heat, thus using each food of same label as being all meat in a set namely the set
The food of food, high protein and high heat.
Step S30 generates the corresponding payment bill of each set according to each payment information, and according to described
Food in payment bill and the corresponding set of the payment bill generates food bill;
Contain the food of multiple same labels in each set, and each food is corresponding with payment information, device will
Gather the corresponding payment information of interior each food and obtain the corresponding total price of food in the set, total price is that the set is corresponding
Payment bill;Set includes the food of multiple same labels, namely gathers a corresponding unique label, and device can basis
The label and payment bill of food generate the corresponding food bill of the set namely food bill includes a certain group food in mesh
The consumption total value for marking the period, for example, user is in the consumption total value of the food of upper one week meat, high protein and high heat
100 yuan, further, food bill can also include the specific name of this group food, for example, beef, pork all adhere to separately it is carnivorous,
The food of high protein and high heat.
And so on, device produces the corresponding food bill of multiple set, and food bill and user-association are stored.
The terminal of step S40, Xiang Suoshu user-association pushes each food bill.
After device obtains food bill, device determines the terminal of the user-association, then each food account is single with pushing away
It send to the terminal, so that user checks food bill by terminal.
In technical solution provided in this embodiment, device obtains the corresponding payment of food of user's purchase in target time section
Information and food information, thus classified to each food according to each food information to obtain multiple set, further according to
Each payment information determines the corresponding payment bill of each set, finally by payment bill and the corresponding set of the payment bill
In each food generate food bill, each food bill is pushed to the terminal of user-association, allows users to root
The various kinds of foods of consumption and the consumption price of various kinds of foods are learnt according to food bill, improve user experience.
Referring to Fig. 4, Fig. 4 is the flow diagram of the second embodiment of the method for pushing of food bill of the present invention, is based on the
One embodiment, after the step S30, further includes:
Step S50 is integrated into the corresponding setting food bill of the target time section described in acquisition;
Step S60 generates the corresponding payment of the set according to the setting food bill and the payment bill and mentions
Show information, and pushes the payment prompt information to the terminal.
In the present embodiment, food bill can be set in user, and food bill can be built according to diet of the device to user
View is configured, for example, can to push user according to information such as the age of user, weight, genders each in one week for device
The dietary recommendation of kind food, such as, it is proposed that user uses 600g protein in one week;In this regard, user according to dietary recommendation come
Determine user in the food species of next week intake protein, and always taking the photograph according to the corresponding price of food species and protein
Enter amount to determine user to the setting food bill of the group food, also by taking one week intake 600g protein as an example, user selects pig
Meat, beef and the flesh of fish meet the intake of the protein of one week 600g, and the monovalent highest of beef, and the unit price of pork is most
It is low, then the corresponding highest payment amount of food account list is whole intake beef, and the corresponding minimum payment amount of food account list
It is then that all the payment amount of intake pork namely food bill is a value range, in this regard, device can be according to dietary recommendation
Setting food bill is generated to be saved, while the setting food bill can also be pushed to user.
After device generates user's corresponding food bill in the target time period, can obtain and the target time section
The corresponding setting food bill of interior set (food that set represents certain preset kind), then compares food bill and setting is eaten
Object bill, so as to learn whether price and the prices of default settings of user's actual purchase food have difference, if so, then defeated
Prompt information out then generates the very few prompt information of protein intake (with albumen for example, real consumption is less than estimated consumption
Matter citing), if real consumption is greater than estimated consumption, the excessive prompt information of protein intake is generated, then the prompt is believed
Breath pushes to user terminal.
Certainly, user can be with the setting food bill in sets itself target time section, for example, user likes eating high heat
French fries hamburger, then user may be set in the estimated consumption in French fries hamburger in target time section, namely be arranged in target
Between setting food bill in section in this, as foundation learn whether itself in target time section realizes the target of setting.
In technical solution provided in this embodiment, device obtains set pair after determining the corresponding food bill of set
The setting food bill answered to generate prompt information according to food bill and setting food bill, then will be prompted to information hair
It send to user terminal, allows users to learn it in the target time period to actually disappearing in the food of preset kind belonging to gathering
Whether expense reaches estimated consumption, improves user experience.
To achieve the above object, the present invention also provides a kind of driving means of food bill, the push of the food bill
Device include processor, memory and be stored in the memory and can the processor run food bill push
The push products of program, the food bill realizes each of the method for pushing of food bill as described above when being executed by processor
A step.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
Media storage has the push products of food bill, realizes when the push products of the food bill is executed by processor as described above
Food bill method for pushing each step.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.