Water dispenser water taking method and system based on account sharing and readable storage medium

文档序号:274255 发布日期:2021-11-19 浏览:5次 中文

阅读说明:本技术 基于账户共享的饮水机取水方法、系统及可读存储介质 (Water dispenser water taking method and system based on account sharing and readable storage medium ) 是由 麦焱光 曾祥虎 于 2021-07-19 设计创作,主要内容包括:本发明公开了一种基于账户共享的饮水机取水方法、系统及可读存储介质,该方法包括:当接收到取水请求时,获取其中携带的账户信息和饮水机信息,并判断账户信息与饮水机信息之间是否存在关联关系;若存在关联关系,则控制与饮水机信息对应的目标饮水机出水,并根据账户信息,确定发起取水请求的用户账户的类型;若用户账户的类型为主账户类型,则对用户账户进行扣款;若用户账户的类型为从账户类型,则根据关联关系,查找用户账户对应绑定的目标主账户,并对目标主账户进行扣款。本发明通过将主账户、从账户和饮水机进行绑定,将主账户共享为扣款账户,方便了多个用户的取水,且对主账户扣款的统一操作,有利于实现快捷扣款。(The invention discloses a water dispenser water taking method, a water dispenser water taking system and a readable storage medium based on account sharing, wherein the method comprises the following steps: when a water taking request is received, account information and water dispenser information carried in the water taking request are obtained, and whether an association relationship exists between the account information and the water dispenser information is judged; if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating a water taking request according to the account information; if the type of the user account is the type of the main account, deducting the money of the user account; if the type of the user account is the slave account type, the target main account correspondingly bound with the user account is searched according to the incidence relation, and the target main account is deducted. According to the invention, the main account, the auxiliary account and the water dispenser are bound, the main account is shared as the deduction account, water taking of a plurality of users is facilitated, the main account is deducted, and the deduction is unified, so that quick deduction is realized.)

1. An account sharing-based water taking method for a water dispenser is characterized by comprising the following steps:

when a water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the account information and the water dispenser information, wherein the association relationship is a binding relationship of information among a main account, a slave account and a water dispenser;

if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating the water taking request according to the account information;

if the type of the user account is the type of the primary account, deducting the money of the user account;

if the type of the user account is the slave account type, searching a target main account correspondingly bound to the user account according to the association relation, and deducting the money of the target main account.

2. The water dispenser water taking method according to claim 1, wherein the step of acquiring the account information and the water dispenser information carried by the water taking request when the water taking request is received comprises the steps of:

when an account binding request is received, judging whether the account binding request carries multiple items of account information to be bound, and if the account binding request carries multiple items of information to be bound, splitting master binding information and slave binding information from the multiple items of information to be bound based on master and slave identifications of the multiple items of information to be bound;

if the account binding request only carries single account information to be bound, determining the single account information to be bound as main binding information;

according to the area information carried by the account binding request, searching a water dispenser to be bound corresponding to the area information;

and binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information.

3. The water dispenser taking method according to claim 2, wherein the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information is followed by the step of:

when an account adding request is received, searching a bound association relation which is corresponding to a main account and is possessed by the main account according to a main account identifier carried by the account adding request;

and determining an association relation to be added based on the bound association relation, and adding a slave account to be added corresponding to the account adding request into the association relation to be added so as to update the bound association relation of the master account corresponding to the master account identifier.

4. The water dispenser taking method according to claim 2, wherein the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information is followed by the step of:

when a unbinding request is received, determining the type of an account to be unbound, which initiates the unbinding request;

if the type of the account to be unbound is the main type, searching the incidence relation to be unbound corresponding to the account to be unbound, removing the account to be unbound from the incidence relation to be unbound, and outputting prompt information for judging whether the auxiliary account to be adjusted in the incidence relation to be unbound is adjusted to be the main account or not;

and if the type of the account to be unbound is the slave account, searching the incidence relation to be unbound corresponding to the account to be unbound, and removing the account to be unbound from the incidence relation to be unbound.

5. The water dispenser water taking method according to claim 4, wherein the step of outputting prompt information whether to adjust the to-be-adjusted slave account in the to-be-unbound association to the master account is followed by:

if receiving confirmation information for adjusting the to-be-adjusted slave account into the master account, determining a target adjustment account in the to-be-adjusted slave account according to an account confirmation identifier in the confirmation information;

and adding the target adjustment account into a new main account in the incidence relation to be unbound, and binding other sub-accounts except the target adjustment account in the sub-accounts to be adjusted with the new main account to form a new incidence relation.

6. The water dispenser taking method according to any one of claims 1 to 5, wherein the step of controlling the target water dispenser corresponding to the water dispenser information to take out water if the correlation exists comprises:

if the association relationship exists, judging whether the credit level of the user account is an alarm level;

if the alarm level is the warning level, the target water dispenser corresponding to the water dispenser information is forbidden to discharge water, and settlement prompt information is output;

and if the water dispenser is not in the warning grade, controlling the target water dispenser corresponding to the water dispenser information to discharge water.

7. The water dispenser water intake method according to any one of claims 1 to 5, wherein the step of debiting the user account comprises:

generating the water outlet amount of the target water dispenser into a water outlet amount, judging whether the account balance of the user account is matched with the water outlet amount, and if so, deducting the user account based on the water outlet amount;

if the sum of the amount of the water is not matched with the water outlet amount, judging whether the arrearage frequency of the user account in a preset period reaches a preset frequency or not and whether the arrearage amount of the user account in the preset period reaches a preset amount or not;

if the arrearage times of the user account in a preset period reach preset times and/or the arrearage amount reaches a preset amount, updating the credit level of the user account to be an alarm level, and outputting settlement prompt information;

and after the recharge information generated based on the settlement prompt information is detected, deducting the money of the user account based on the recharge information.

8. The water dispenser taking method according to any one of claims 1 to 5, wherein the step of judging whether the correlation exists between the account information and the water dispenser information is followed by the steps of:

and if the incidence relation does not exist between the account information and the water dispenser information, outputting prompt information for binding the account information and the water dispenser information.

9. An account sharing based water dispenser taking system, characterized in that the account sharing based water dispenser taking system comprises a memory, a processor and a control program stored on the memory and executable on the processor, wherein the control program when executed by the processor realizes the steps of the account sharing based water dispenser taking method according to any one of claims 1-8.

10. A readable storage medium, characterized in that the readable storage medium has a control program stored thereon, and the control program, when executed by a processor, implements the steps of the account sharing-based water dispenser water taking method according to any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of household appliances, in particular to a water dispenser water taking system and method based on account sharing and a readable storage medium.

Background

With the improvement of living standard, the requirements of people on living quality are higher and higher, and the quality of drinking water is closely related to the quality of life of people as an essential substance in life; more and more water dispensers are used in families and offices to provide high-quality drinking water for people.

The current water dispenser gradually develops into a pay water taking mode so as to avoid waste of water resources caused by excessive water taking. For paying to fetch water, a user needs to register a water fetching account, and after the water fetching account is charged by the binding deduction account, water fetching is realized by deduction payment of the water fetching account. Users maintain the respective registered water getting accounts, and water getting is relatively complex; for the deduction party, a plurality of water taking accounts need to be managed, and convenience of deduction processing is not provided. Therefore, how to simplify the water getting process of the user and quickly deduct money is a technical problem to be solved urgently at present.

Disclosure of Invention

The invention mainly aims to provide a water taking method and system of a water dispenser based on account sharing and a readable storage medium, and aims to solve the technical problems of how to simplify the water taking process of a user and quickly deduct money in the prior art.

In order to achieve the purpose, the invention provides a water taking method of a water dispenser based on account sharing, which comprises the following steps:

when a water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the account information and the water dispenser information, wherein the association relationship is a binding relationship of information among a main account, a slave account and a water dispenser;

if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating the water taking request according to the account information;

if the type of the user account is the type of the primary account, deducting the money of the user account;

if the type of the user account is the slave account type, searching a target main account correspondingly bound to the user account according to the association relation, and deducting the money of the target main account.

Optionally, when a water getting request is received, the step of obtaining account information and water dispenser information carried in the water getting request includes:

when an account binding request is received, judging whether the account binding request carries multiple items of account information to be bound, and if the account binding request carries multiple items of information to be bound, splitting master binding information and slave binding information from the multiple items of information to be bound based on master and slave identifications of the multiple items of information to be bound;

if the account binding request only carries single account information to be bound, determining the single account information to be bound as main binding information;

according to the area information carried by the account binding request, searching a water dispenser to be bound corresponding to the area information;

and binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information.

Optionally, the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information includes:

when an account adding request is received, searching a bound association relation which is corresponding to a main account and is possessed by the main account according to a main account identifier carried by the account adding request;

and determining an association relation to be added based on the bound association relation, and adding a slave account to be added corresponding to the account adding request into the association relation to be added so as to update the bound association relation of the master account corresponding to the master account identifier.

Optionally, the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information includes:

when a unbinding request is received, determining the type of an account to be unbound, which initiates the unbinding request;

if the type of the account to be unbound is the main type, searching the incidence relation to be unbound corresponding to the account to be unbound, removing the account to be unbound from the incidence relation to be unbound, and outputting prompt information for judging whether the auxiliary account to be adjusted in the incidence relation to be unbound is adjusted to be the main account or not;

and if the type of the account to be unbound is the slave account, searching the incidence relation to be unbound corresponding to the account to be unbound, and removing the account to be unbound from the incidence relation to be unbound.

Optionally, the step of outputting prompt information whether to adjust the to-be-adjusted slave account in the to-be-unbiased incidence relation to the master account includes:

if receiving confirmation information for adjusting the to-be-adjusted slave account into the master account, determining a target adjustment account in the to-be-adjusted slave account according to an account confirmation identifier in the confirmation information;

and adding the target adjustment account into a new main account in the incidence relation to be unbound, and binding other sub-accounts except the target adjustment account in the sub-accounts to be adjusted with the new main account to form a new incidence relation.

Optionally, if there is an association relationship, the step of controlling the target water dispenser corresponding to the water dispenser information to discharge water includes:

if the association relationship exists, judging whether the credit level of the user account is an alarm level;

if the alarm level is the warning level, the target water dispenser corresponding to the water dispenser information is forbidden to discharge water, and settlement prompt information is output;

and if the water dispenser is not in the warning grade, controlling the target water dispenser corresponding to the water dispenser information to discharge water.

Optionally, the step of deducting the user account includes:

generating the water outlet amount of the target water dispenser into a water outlet amount, judging whether the account balance of the user account is matched with the water outlet amount, and if so, deducting the user account based on the water outlet amount;

if the sum of the amount of the water is not matched with the water outlet amount, judging whether the arrearage frequency of the user account in a preset period reaches a preset frequency or not and whether the arrearage amount of the user account in the preset period reaches a preset amount or not;

if the arrearage times of the user account in a preset period reach preset times and/or the arrearage amount reaches a preset amount, updating the credit level of the user account to be an alarm level, and outputting settlement prompt information;

and after the recharge information generated based on the settlement prompt information is detected, deducting the money of the user account based on the recharge information.

Optionally, the step of determining whether there is an association between the account information and the water dispenser information includes:

and if the incidence relation does not exist between the account information and the water dispenser information, outputting prompt information for binding the account information and the water dispenser information.

Further, in order to achieve the above object, the present invention further provides an account sharing-based water intake system for a water dispenser, where the account sharing-based water intake system for a water dispenser includes: the account sharing method comprises a memory, a processor and a control program stored on the memory and capable of running on the processor, wherein the control program realizes the steps of the account sharing-based water dispenser water taking method when being executed by the processor.

Further, in order to achieve the above object, the present invention further provides a readable storage medium, where a control program is stored, and the control program, when executed by a processor, implements the steps of the account sharing-based water dispenser water taking method as described above.

According to the account sharing-based water dispenser water taking method and system and the readable storage medium, the two-dimensional code or the biological information acquisition device such as the human face and the fingerprint is arranged on the water dispenser, and the water taking request is triggered by scanning the two-dimensional code or acquiring the biological information. Once the water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the acquired account information and the water dispenser information, wherein the association relationship is a binding relationship between a main account, a slave account and the water dispenser information; if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating a water taking request according to the account information; if the type of the user account is the type of the main account, deducting the money of the user account; if the type of the user account is the slave account type, searching a target main account correspondingly bound to the user account according to the association relation, and deducting the money of the target main account. Therefore, the main account, the slave account and the water dispenser are bound to form a corresponding relation among the main account, the slave account and the water dispenser, the main account is set to be a deduction account, the main account is deducted whether the main account triggers a water taking request or the slave account triggers the water taking request, maintenance such as recharging and checking is avoided for each account, water taking of multiple users is facilitated, management of multiple accounts is avoided due to unified operation of deduction of the main account, and quick deduction is facilitated.

Drawings

FIG. 1 is a schematic structural diagram of a hardware operating environment related to an embodiment of a water dispenser water taking system based on account sharing according to the present invention;

FIG. 2 is a schematic flow chart illustrating a water intake method of a water dispenser based on account sharing according to a first embodiment of the present invention;

FIG. 3 is a schematic flow chart illustrating a water intake method of a water dispenser based on account sharing according to a second embodiment of the present invention;

fig. 4 is a schematic flow chart of a water dispenser water taking method based on account sharing according to a third embodiment of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The invention provides a water dispenser taking system based on account sharing, which can comprise: server, water dispenser and user terminal. The user terminal can send a water taking request to the server through the user account, and the server controls the water dispenser to discharge water and deduct money for payment according to the type of the user account.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a server hardware operating environment according to an embodiment of a water dispenser water taking system based on account sharing.

As shown in fig. 1, the server of the account sharing based water dispenser taking system may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.

Those skilled in the art will appreciate that the server hardware configuration of the account sharing based water dispenser intake system shown in fig. 1 does not constitute a limitation of the account sharing based water dispenser intake system and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.

As shown in fig. 1, a memory 1005, which is a readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a control program. The operating system is a program for managing and controlling the water taking system of the water dispenser based on account sharing and software resources, and supports the running of a network communication module, a user interface module, a control program and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.

In the server hardware structure of the account sharing based water intake system of the water dispenser shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

when a water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the account information and the water dispenser information, wherein the association relationship is a binding relationship of information among a main account, a slave account and a water dispenser;

if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating the water taking request according to the account information;

if the type of the user account is the type of the primary account, deducting the money of the user account;

if the type of the user account is the slave account type, searching a target main account correspondingly bound to the user account according to the association relation, and deducting the money of the target main account.

Further, when a water getting request is received, the step of obtaining account information and water dispenser information carried by the water getting request is performed before; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

when an account binding request is received, judging whether the account binding request carries multiple items of account information to be bound, and if the account binding request carries multiple items of information to be bound, splitting master binding information and slave binding information from the multiple items of information to be bound based on master and slave identifications of the multiple items of information to be bound;

if the account binding request only carries single account information to be bound, determining the single account information to be bound as main binding information;

according to the area information carried by the account binding request, searching a water dispenser to be bound corresponding to the area information;

and binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information.

Further, the step of binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information is carried out; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

when an account adding request is received, searching a bound association relation which is corresponding to a main account and is possessed by the main account according to a main account identifier carried by the account adding request;

and determining an association relation to be added based on the bound association relation, and adding a slave account to be added corresponding to the account adding request into the association relation to be added so as to update the bound association relation of the master account corresponding to the master account identifier.

Further, the step of binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information is carried out; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

when a unbinding request is received, determining the type of an account to be unbound, which initiates the unbinding request;

if the type of the account to be unbound is the main type, searching the incidence relation to be unbound corresponding to the account to be unbound, removing the account to be unbound from the incidence relation to be unbound, and outputting prompt information for judging whether the auxiliary account to be adjusted in the incidence relation to be unbound is adjusted to be the main account or not;

and if the type of the account to be unbound is the slave account, searching the incidence relation to be unbound corresponding to the account to be unbound, and removing the account to be unbound from the incidence relation to be unbound.

Further, the step of outputting prompt information whether to adjust the to-be-adjusted slave account in the to-be-unbiased incidence relation to the master account is followed; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

if receiving confirmation information for adjusting the to-be-adjusted slave account into the master account, determining a target adjustment account in the to-be-adjusted slave account according to an account confirmation identifier in the confirmation information;

and adding the target adjustment account into a new main account in the incidence relation to be unbound, and binding other sub-accounts except the target adjustment account in the sub-accounts to be adjusted with the new main account to form a new incidence relation.

Further, if the association relationship exists, the step of controlling the target water dispenser corresponding to the water dispenser information to discharge water comprises the following steps:

if the association relationship exists, judging whether the credit level of the user account is an alarm level;

if the alarm level is the warning level, the target water dispenser corresponding to the water dispenser information is forbidden to discharge water, and settlement prompt information is output;

and if the water dispenser is not in the warning grade, controlling the target water dispenser corresponding to the water dispenser information to discharge water.

Further, the step of debiting the user account comprises:

generating the water outlet amount of the target water dispenser into a water outlet amount, judging whether the account balance of the user account is matched with the water outlet amount, and if so, deducting the user account based on the water outlet amount;

if the sum of the amount of the water is not matched with the water outlet amount, judging whether the arrearage frequency of the user account in a preset period reaches a preset frequency or not and whether the arrearage amount of the user account in the preset period reaches a preset amount or not;

if the arrearage times of the user account in a preset period reach preset times and/or the arrearage amount reaches a preset amount, updating the credit level of the user account to be an alarm level, and outputting settlement prompt information;

and after the recharge information generated based on the settlement prompt information is detected, deducting the money of the user account based on the recharge information.

Further, after the step of judging whether the account information and the water dispenser information have the association relationship; the processor 1001 may call the control program stored in the memory 1005 and perform the following operations:

and if the incidence relation does not exist between the account information and the water dispenser information, outputting prompt information for binding the account information and the water dispenser information.

The implementation mode of the account sharing-based water taking system of the water dispenser is basically the same as that of the following account sharing-based water taking method of the water dispenser, and the detailed description is omitted here.

The invention provides a water dispenser taking method based on account sharing, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the water dispenser taking method based on account sharing.

Embodiments of the present invention provide an account sharing-based method for fetching water from a water dispenser, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein. Specifically, the account sharing-based water dispenser water taking method of the embodiment includes:

step S10, when a water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the account information and the water dispenser information, wherein the association relationship is a binding relationship of information among a main account, a slave account and a water dispenser;

the account sharing-based water dispenser water taking method is applied to a server in an account sharing-based water dispenser water taking system, a plurality of accounts are bound with a water dispenser, a main account and a secondary account are formed among the accounts, the server deducts money from the main account no matter the main account or the secondary account takes water, and an account charge sharing mode between the main account and the secondary account is formed.

Specifically, a user installs application software for taking water in a terminal such as a smart phone or a tablet computer, and registers account and water dispenser binding on the application software for taking water from the water dispenser. The two-dimension code is arranged on the water dispenser, and a user scans the two-dimension code through application software to trigger a water taking request. And after receiving the water taking request, the server acquires account information and water dispenser information carried by the water taking request. The account information is user account information registered in the application software, and the water dispenser information is information possessed by a water dispenser and is obtained by scanning a code; namely, the application software forms the user account information registered in the application software and the water dispenser information obtained by scanning the code together to form a water taking request and transmits the water taking request to the server.

Further, the server judges whether an association relationship exists between the account information and the water dispenser information, and the association relationship is formed by binding the user account and the water dispenser. And the user account comprises a main account and a slave account, the main account is directly bound with the water dispenser, and the slave account is added under the main account to form an indirect binding relationship with the water dispenser. Meanwhile, the binding can be realized by distributing uniform identifiers and can also be realized in a key-value pair mode; for identifier binding, namely, a uniform identifier is distributed to a main account, a slave account and a water dispenser with binding requirements in a server; and for the key-value pair binding, the main account is used as a key, and the water dispenser and the auxiliary account are used as values to form the association relation of the key-value pair.

It should be noted that, a device for acquiring biological information such as a human face or a fingerprint may also be disposed on the water dispenser, and a user triggers a water intake request by acquiring the biological information by approaching the human face or the fingerprint to the acquisition device. The method comprises the steps that application software collects biological information in the account registration process and transmits the biological information to a server to serve as reference account information, a collection device on the water dispenser uploads the collected biological information to the server, the server searches whether the reference account information corresponding to the biological information is contained in the biological information, and if the reference account information is contained in the biological information, the biological information is used as the account information to be obtained. And the information of the water dispenser carried in the process of collecting and uploading the biological information by the collecting device is compared and judged with the obtained account information to determine whether the correlation exists between the two.

Step S20, if the association relationship exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of the user account initiating the water taking request according to the account information;

further, if the server determines that the same identifier exists between the account information and the water dispenser information or a key value pair is formed through searching, it can be determined that an association relationship exists between the account information and the water dispenser information. At the moment, the user corresponding to the user account can take water from the water dispenser, so the server sends a control instruction to the target water dispenser corresponding to the water dispenser information to control the target water dispenser to discharge water. And meanwhile, determining the type of the user account initiating the water getting request according to the type identification carried by the account information. The type identification comprises a master identification and a slave identification so as to respectively represent a master account and a slave account.

It should be noted that the water dispenser of this embodiment supports the defaulting drinking water with limited times and limited amount, and the user account has different credit levels corresponding to different defaulting times and defaulting amount. When the arrearage exceeds a certain number of times or the arrearage exceeds a certain amount, the credit level is the warning level, and the water taking is limited. Specifically, if there is an association relationship, the step of controlling the target water dispenser corresponding to the water dispenser information to discharge water includes:

step a1, if the association exists, judging whether the credit level of the user account is an alarm level;

step a2, if the alarm level is alarm level, forbidding the target water dispenser corresponding to the water dispenser information to discharge water, and outputting settlement prompt information;

and a3, if the alarm level is not the alarm level, controlling the target water dispenser corresponding to the water dispenser information to discharge water.

Further, after the fact that the correlation exists between the account information and the water dispenser information is judged, whether the credit level of the user account is the warning level or not is continuously judged. If the user account is in the warning level, the user account is over-charged or the arrearage amount is over-charged. At the moment, water outlet of the target water dispenser is forbidden, and settlement prompt information is output to a user account to remind the user of settling arrears in time. If the credit level of the user account is judged to be not the warning level, the user is proved to have the qualification of normally taking water, so that the target water dispenser is controlled to discharge water to meet the water taking requirement of the user.

Understandably, the judgment of whether the association relationship exists between the account information and the water dispenser information includes a judgment result of no association relationship in addition to a judgment result of the association relationship. In this regard, the step of determining whether there is an association between the account information and the water dispenser information includes:

and b, if the correlation does not exist between the account information and the water dispenser information, outputting prompt information for binding the account information and the water dispenser information.

Further, if the server determines that the same identifier and the key value pair are not formed between the account information and the water dispenser information through searching, it is determined that the association does not exist between the account information and the water dispenser information, and the user corresponding to the user account cannot take water from the water dispenser. At the moment, the server outputs prompt information for binding the account information and the water dispenser information to the user account so as to remind the user to bind the account information and the water dispenser information to form an association relation between the account information and the water dispenser information and obtain the quality of taking water to the target water dispenser.

Step S30, if the type of the user account is the type of the primary account, deducting the money of the user account;

furthermore, if the type of the user account is determined to be the main account type through the type identifier, which indicates that the user account initiating the water fetching request is the main account, the user account is directly deducted to pay the water fetching cost.

Step S40, if the type of the user account is a slave account type, according to the association relationship, a target main account correspondingly bound to the user account is searched, and the target main account is deducted.

Further, if the type of the user account is determined to be the slave account type through the type identifier, it is indicated that the user account initiating the water fetching request is the slave account, and a target master account associated with the user account needs to be searched for deduction according to the association relationship. One slave account can be associated with a plurality of main accounts, different association relations are formed between the slave account and different main accounts, and the water dispensers in each association relation are fixed. Therefore, when the target main account is searched, the water dispenser information is needed to be used for distinguishing. On one hand, all the association relations bound by the user account can be searched, and then the target association relation with the water dispenser information obtained from the water taking request is searched from all the association relations, so that the main account bound in the target association relation is used as the target main account for deduction. On the other hand, the association relation of the water dispenser information binding can be directly searched, and the main account in the association relation is used as the target main account to deduct money. Therefore, the unified deduction payment of the main account in the association relationship is realized.

The water dispenser water taking method based on account sharing is characterized in that a two-dimensional code or a biological information acquisition device such as a human face and a fingerprint is arranged on a water dispenser, and a water taking request is triggered by scanning the two-dimensional code or acquiring biological information. Once the water taking request is received, acquiring account information and water dispenser information carried by the water taking request, and judging whether an association relationship exists between the acquired account information and the water dispenser information, wherein the association relationship is a binding relationship between a main account, a slave account and the water dispenser information; if the incidence relation exists, controlling the target water dispenser corresponding to the water dispenser information to discharge water, and determining the type of a user account initiating a water taking request according to the account information; if the type of the user account is the type of the main account, deducting the money of the user account; if the type of the user account is the slave account type, searching a target main account correspondingly bound to the user account according to the association relation, and deducting the money of the target main account. Therefore, the main account, the slave account and the water dispenser are bound to form a corresponding relation among the main account, the slave account and the water dispenser, the main account is set to be a deduction account, the main account is deducted whether the main account triggers a water taking request or the slave account triggers the water taking request, maintenance such as recharging and checking is avoided for each account, water taking of multiple users is facilitated, management of multiple accounts is avoided due to unified operation of deduction of the main account, and quick deduction is facilitated.

Further, referring to fig. 3, a second embodiment of the account sharing-based water dispenser water taking method according to the present invention is provided based on the first embodiment of the account sharing-based water dispenser water taking method according to the present invention.

The second embodiment of the account sharing-based water dispenser water taking method is different from the first embodiment of the account sharing-based water dispenser water taking method in that when a water taking request is received, the step of acquiring account information and water dispenser information carried by the water taking request comprises the following steps:

step S50, when receiving an account binding request, judging whether the account binding request carries multiple items of account information to be bound, if so, splitting master binding information and slave binding information from the multiple items of information to be bound based on master and slave identifications of the multiple items of information to be bound;

step S60, if the account binding request only carries a single item of account information to be bound, determining the single item of information to be bound as main binding information;

step S70, according to the area information carried by the account binding request, searching the water dispenser to be bound corresponding to the area information;

and step S80, binding the water dispenser to be bound with the split main binding information and the split auxiliary binding information, or binding the water dispenser to be bound with the determined main binding information.

The embodiment realizes binding and unbinding among the master account, the slave account and the water dispenser and midway addition of the slave account. Specifically, when a user has a need to bind his account to a certain water dispenser, he logs in to the server through his user account and initiates an account binding request. And the server receives the account binding request, identifies the account binding request and judges whether the account binding request carries a plurality of items of account information to be bound. And if the user carries a plurality of items of information to be bound, the user is required to bind a plurality of accounts. At the moment, the multiple items of to-be-bound identifications are split into the master binding information and the slave binding information according to the respective master and slave identifications of the multiple items of to-be-bound information.

The main binding information is a main account set by a user when initiating an account binding request, and the auxiliary binding information is an auxiliary account set by the user when initiating the account binding request; the main binding information is one item, and the representation is set to be a main account for payment of a certain account; the slave binding information may be multiple items, characterizing a slave account that shares payment with the master account.

Further, if only a single account information to be bound is carried in the identified account binding request, it indicates that the user only has a requirement of binding one account. At this time, the item of information to be bound is directly used as main binding information, so that an account corresponding to the main binding information is set as a main account for payment.

Furthermore, the server identifies the area information carried by the account binding request, wherein the area information represents the area where the water dispenser to be bound is located, and the area information can be a specific location, such as a certain house number of a certain cell, or a certain geographical area, such as a certain area of a certain city. For a specific location, it is indicated that the user has a requirement to bind with a certain water dispenser in the specific location; and for the geographical area, the user is required to be bound with all the water dispensers in the geographical area.

Further, the water dispensers in the area corresponding to the area information are searched, and the searched water dispensers are used as the water dispensers to be bound corresponding to the area information. Wherein, each water dispenser transmits respective information to the server in advance, and the information comprises the information of the position of the water dispenser. Therefore, the water dispensers in the area corresponding to the area information can be searched according to the information of the representation position, and the water dispensers to be bound are further determined.

Furthermore, for a plurality of items of information to be bound, the split main binding information and the split auxiliary binding information are both bound with the water dispenser to be bound; that is, the same identifier is assigned to three or the three are formed as a key value pair. The main binding information and the water dispenser to be bound belong to direct binding, and the auxiliary binding information and the water dispenser to be bound belong to indirect binding; and the slave binding information is added to the master binding information, and the payment is shared by the master account corresponding to the master binding information. For the main binding information determined by the single item of account information to be bound, directly binding the main binding information with the water dispenser to be bound; that is, both are assigned the same identifier or formed as a key-value pair.

Understandably, a user may have an adding requirement for an account bound by the user in the process of using the water dispenser, namely adding a new slave account for other people to use; such as for a company primary account, a new employee account is added. For this, the present embodiment is provided with an account addition mechanism. Specifically, the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information includes:

step c1, when receiving an account adding request, according to a primary account identifier carried by the account adding request, searching a binding association relation corresponding to the primary account identifier;

step c2, determining an association relation to be added based on the bound association relation, and adding the slave account to be added corresponding to the account adding request to the association relation to be added, so as to update the bound association relation of the master account corresponding to the master account identifier.

Further, the main account user initiates an account addition request to the server through the account, or after a user needing to be newly added registers the account at the terminal of the user, the account addition request is initiated to the server through the account. And the server receives the account adding request and identifies the main account identifier carried in the account adding request, wherein the main account identifier represents the main account to which the new slave account needs to be bound. And the server searches according to the primary account identifier, determines each incidence relation bound before representing the primary account, and takes the incidence relation as the bound incidence relation of the primary account.

Furthermore, the server returns the found bound association relationship to the terminal initiating the account adding request, so that the terminal user can select the association relationship which needs to be added to the slave account. And the terminal user determines the water dispenser needing to take water according to the water dispensers in the bound association relationship, and feeds back the association relationship of the water dispensers to the server as the association relationship to be added in the bound association relationship. The server reads the identifier or the key value pair of the incidence relation to be added, and the identifier is allocated to the account to be added corresponding to the account adding request, or the account to be added corresponding to the account adding request is used as the value of the key value pair, so that the account to be added corresponding to the account adding request is added to the incidence relation to be added. Therefore, the new account is added into the bound association relation of the main account, and the main account performs unified payment on the water intake of the newly added account.

Understandably, in the process of using the water dispenser, a user may have the requirement of deleting an old account in addition to the requirement of adding a new account; such as deleting an account of a staff out of work for a company primary account, or a company incorporating deleting a primary account, etc. For this, the present embodiment is provided with an account unbinding mechanism. Specifically, the step of binding the water dispenser to be bound with the split master binding information and slave binding information, or binding the water dispenser to be bound with the determined master binding information includes:

step d1, when a unbinding request is received, determining the type of the account to be unbound which initiates the unbinding request;

step d2, if the type of the account to be unbiased is the main type, searching the to-be-unbound association corresponding to the account to be unbound, unbinding the account to be unbound from the to-be-unbound association, and outputting prompt information for judging whether to adjust the to-be-adjusted slave account in the to-be-unbound association to the main account;

step d3, if the type of the account to be unbound is a slave account, searching the association relationship to be unbound corresponding to the account to be unbound, and removing the account to be unbound from the association relationship to be unbound.

Further, the primary account user initiates a unbinding request to the server through the account thereof, or a user who needs to unbind initiates a unbinding request to the server through the account thereof. And the server receives the unbinding request and identifies the type identifier carried in the unbinding request, and the type identifier represents whether the account to be unbound, which needs to be bound, is a master account or a slave account. If the type of the account to be unbound is identified as the main type through the type identifier, and the representation needs to unbind the main account in the association relationship, the server searches each previously bound association relationship of the account to be unbound serving as the main account, and returns the searched bound association relationship to the terminal initiating the binding request, so that the terminal user can select the association relationship needing to be unbound. And the terminal user determines the water dispenser needing to be unbound according to the water dispensers in the bound association relationship, feeds back the association relationship of the water dispensers to the server as the association relationship to be unbound in the bound association relationship, and removes the account to be unbound from the association relationship to be unbound by the server.

Understandably, because the removed account is the primary account, after the primary account is removed, the secondary accounts in the original association relationship no longer have sharable payment accounts. Therefore, for normal use of other slave account users, after the to-be-unbiased account which is the master account in the to-be-unbiased incidence relation is unbound, the slave account in the to-be-unbound incidence relation is used as the to-be-adjusted slave account, and prompt information whether the to-be-adjusted slave account is adjusted to the master account or not is output to the account which initiates the unbinding request. And the to-be-adjusted auxiliary account is adjusted to be a new main account to be used as a new shared payment account, so that normal water getting charge of other accounts in the association to be unbound is ensured.

Further, if the type of the account to be unbound is identified as the slave type through the type identifier, and the representation needs to unbind the slave account in the association relationship, the server searches each previously bound association relationship of the account to be unbound as the slave account, and returns the found bound association relationship to the terminal initiating the binding request, so that the terminal user can select the association relationship needing to be unbound. And the terminal user determines the water dispenser needing to be unbound according to the water dispensers in the bound association relationship, feeds back the association relationship of the water dispensers to the server as the association relationship to be unbound in the bound association relationship, and directly removes the account to be unbound from the association relationship to be unbound by the server.

Wherein, for the case that the account to be unbiased is the primary account, the step of outputting the prompt information whether to adjust the secondary account to be adjusted in the association relationship to be unbound to the primary account includes:

step d4, if receiving the confirmation information for adjusting the to-be-adjusted slave account to the master account, determining a target adjustment account in the to-be-adjusted slave account according to the account confirmation identifier in the confirmation information;

and d5, adding the target adjustment account into the new main account in the to-be-unbound incidence relation, and binding other sub-accounts except the target adjustment account in the to-be-adjusted sub-accounts with the new main account to form a new incidence relation.

Furthermore, after the account initiating the unbinding request receives the prompt information, if the account has the adjustment requirement, the slave account needing to be adjusted to the main account is selected from the slave accounts to be adjusted, and confirmation information for adjusting the slave account to be adjusted to the main account is fed back to the server. The confirmation information carries the identification of the selected slave account, the server reads the identification as the account confirmation identification after receiving the confirmation information, and determines the target adjustment account in the slave account to be adjusted according to the account confirmation identification. The target adjustment account is the slave account that is selected to be adjusted to the master account.

Further, the server may add the target adjustment account as a new primary account to be unbound in the association by assigning a primary identity to the target adjustment account. And simultaneously binding other slave accounts except the target adjustment account in the slave accounts to be adjusted with the new master account to form a new association relationship, so that the new master account pays for water intake of each slave account in the new association relationship.

According to the embodiment, the main account, the slave account and the water dispenser are bound to form the association relationship, and the adding mechanism and the unbinding mechanism are set for the association relationship, so that the main account in the association relationship can be used for uniformly deducting fees, the fee deducting account sharing is realized, meanwhile, the expansion and the release of the association relationship are facilitated, and the development of the water dispenser on the fee deducting account sharing is promoted.

Further, referring to fig. 4, a third embodiment of the account sharing-based water dispenser water taking method according to the present invention is provided based on the first or second embodiment of the account sharing-based water dispenser water taking method according to the present invention.

The third embodiment of the account sharing-based water dispenser taking method is different from the first or second embodiment of the account sharing-based water dispenser taking method in that the step of deducting the user account comprises the following steps of:

step S31, generating the water outlet amount of the target water dispenser into a water outlet amount, judging whether the account balance of the user account is matched with the water outlet amount, and if the account balance is matched with the water outlet amount, deducting the money of the user account based on the water outlet amount;

step S32, if the sum is not matched with the water outlet amount, judging whether the arrearage frequency of the user account in a preset period reaches a preset frequency and whether the arrearage limit of the user account in the preset period reaches a preset limit;

step S33, if the arrearage times of the user account in a preset period reach preset times and/or the arrearage amount reaches a preset amount, updating the credit level of the user account to be an alarm level, and outputting settlement prompting information;

and step S34, after the recharging information generated based on the settlement prompting information is detected, deducting the money of the user account based on the recharging information.

The embodiment realizes water getting and deducting under the condition that the account balance of the main account is sufficient and insufficient. Specifically, the server records the water yield of the target water dispenser and generates the water yield corresponding to the water yield according to the preset relation between the water yield and the water charge. And then reading the account balance of the user account, and judging whether the account balance is matched with the water outlet amount. If the account balance is greater than or equal to the water outlet amount, the account balance can be judged to be matched with the water outlet amount, so that the user account can be deducted based on the water outlet amount, and the water outlet amount is subtracted from the account balance of the user account to obtain a new account balance.

Further, if the account balance is determined to be less than the outlet amount, the account balance is not matched with the outlet amount. At the moment, whether the arrearage frequency of the user account in the preset period reaches the preset frequency or not is detected, and whether the arrearage limit of the user account in the preset period reaches the preset limit or not is detected. The preset period is a preset time period, such as one month or one quarter. And, the number of arrearable money and the arrearable money amount are set within a preset period. And when the accumulated debt times of the user account in the preset period reaches the set debt times or the accumulated debt amount reaches the set debt amount, the qualification of getting water from debt is not provided.

Therefore, if the detected arrears number reaches the arrears number, or the arrears amount reaches the preset amount, or both reach respective standards, the credit level of the user account is updated to the warning level, and settlement prompt information is output to remind the user to settle the arrears, and water fetching is forbidden before settling the arrears. And once the charging information generated by clearing the arrearage of the user based on the settlement prompting information is detected, deducting the user account based on the charging information to settle the water intake expense.

Further, if the detected arrearage times do not reach the arrearage times and the arrearage limit does not reach the preset limit and reaches the preset limit, the current water intake expense is recorded as the accumulation of the arrearage times and the arrearage amount, the accumulated arrearage amount is cleared after the user actively charges or charges based on the prompt information, and the accumulated arrearage times are cleared.

The embodiment realizes the limited times and limited amount of owing fee water intaking by setting the credit level of the user account, and avoids the problem that large amount of funds are difficult to withdraw due to long-term owing fee while the user can use the system conveniently.

The embodiment of the invention also provides a readable storage medium. The readable storage medium stores a control program which, when executed by the processor, implements the steps of the account sharing-based water dispenser fetching method as described above.

The readable storage medium of the present invention may be a computer readable storage medium, and the specific implementation manner of the readable storage medium of the present invention is basically the same as that of each embodiment of the account sharing-based water dispenser water taking method, and will not be described herein again.

The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:饮品自动售卖机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!