CN109087081B - Conditional electronic red envelope processing method and device - Google Patents

Conditional electronic red envelope processing method and device Download PDF

Info

Publication number
CN109087081B
CN109087081B CN201810814224.4A CN201810814224A CN109087081B CN 109087081 B CN109087081 B CN 109087081B CN 201810814224 A CN201810814224 A CN 201810814224A CN 109087081 B CN109087081 B CN 109087081B
Authority
CN
China
Prior art keywords
red packet
conditional electronic
electronic red
conditional
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810814224.4A
Other languages
Chinese (zh)
Other versions
CN109087081A (en
Inventor
张浩盛
殷腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810814224.4A priority Critical patent/CN109087081B/en
Publication of CN109087081A publication Critical patent/CN109087081A/en
Application granted granted Critical
Publication of CN109087081B publication Critical patent/CN109087081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules

Abstract

The invention relates to the technical field of communication, in particular to a conditional electronic red packet processing method and device, which are used for receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender, generating a conditional electronic red packet and sending the conditional electronic red packet to a conditional electronic red packet receiver; when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up qualification time, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time duration meeting the picking up qualification to pick up the conditional electronic red packet.

Description

Conditional electronic red envelope processing method and device
Technical Field
The invention relates to the technical field of communication, in particular to a conditional electronic red packet processing method and device.
Background
With the development of electronic devices such as smart phones and tablet computers, the electronic devices have various functions such as communication, entertainment, reading and payment, and have the characteristics of openness, equality, rapidness, multiple elements and the like, and at present, particularly smart phones have become an indispensable tool in life of most people.
However, the smart phone also has a plurality of problems when changing the life style of people, for example, the user spends more time on the smart phone every day, and the smart phone is used for too long, so that not only the time of the people in the real life in the places of relatives or friends and the like is reduced, but also the posture of looking down at the smart phone for a long time can have adverse effects on cervical vertebra and eyesight. In practice, most of the times of frequently using the smart phone are unnecessary, so it is very necessary to solve the problem that the current user uses the smart phone for too long, and no solution for the problem exists in the prior art.
Disclosure of Invention
The embodiment of the invention provides a conditional electronic red envelope processing method and device, which are used for solving the problem that a user uses a smart phone for too long time in the prior art.
The specific technical scheme provided by the embodiment of the invention is as follows:
one embodiment of the invention provides a conditional electronic red packet processing method, which comprises the following steps:
receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to the conditional electronic red packet receiver;
when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up time, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time duration meeting the picking up qualification to pick up the conditional electronic red packet; the time length of the conditional electronic red packet receiver or the conditional electronic red packet sender is the time length from the specified starting time to the time length when the corresponding terminal is used.
In combination with one embodiment of the present invention, the generating conditional electronic red packets specifically includes:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
In combination with one embodiment of the present invention, the conditional electronic packet sending instruction further includes first indication information identifying that the packet mode is a normal mode; the conditional electronic red package instruction also comprises a time duration threshold;
checking whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification, specifically including:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
And when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
In combination with one embodiment of the present invention, the conditional electronic red packet sending instruction further includes second instruction information for identifying the red packet mode as a fight mode and the specified start time; wherein the prescribed start time is later than the time at which the conditional electronic red packet was created;
after the conditional electronic red package is sent to the conditional electronic red package receiver, the method further comprises:
sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, and transferring the amount of the preset amount to the conditional electronic red packet.
In connection with one embodiment of the present invention, further comprising:
and sending a message that the conditional electronic red package receiver accepts the conditional electronic red package challenge to the conditional electronic red package sender.
In combination with one embodiment of the present invention, the checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement specifically includes:
when the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
when the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
In combination with one embodiment of the present invention, the machine duration is calculated by subtracting the screen-on duration in the call process from the screen-on duration of the terminal from the specified starting time to the retrievable time.
In connection with one embodiment of the present invention, further comprising:
and when the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is larger than the preset proportion of the time length threshold, sending a time length reminding message to prompt the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
In connection with one embodiment of the present invention, further comprising:
and if the current time is determined to reach the retrievable time, sending a conditional electronic red packet retrievable reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
In connection with one embodiment of the present invention, further comprising:
if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to be qualified for getting, sending the message of failure to the conditional electronic red packet sender and/or the conditional electronic red packet receiver for too long time.
Another embodiment of the present invention provides a conditional electronic red packet processing apparatus, including:
the receiving module receives a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
the generation module is used for generating the conditional electronic red packet according to the conditional electronic red packet sending instruction;
the first sending module is used for sending the conditional electronic red packet to the conditional electronic red packet receiver;
The verification module is used for verifying whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification for taking when receiving the request for taking the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, and allowing the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meeting the qualification for taking if the current time is confirmed to exceed or reach the qualification for taking; the time length of the conditional electronic red packet receiver or the conditional electronic red packet sender is the time length from the specified starting time to the time length when the corresponding terminal is used.
In combination with another embodiment of the present invention, the generating a conditional electronic red packet, the generating module is specifically configured to:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
In combination with another embodiment of the present invention, the conditional electronic packet sending instruction further includes first indication information identifying that the packet mode is a normal mode; the conditional electronic red package instruction also comprises a time duration threshold;
The verification module is specifically configured to, when verifying whether the conditional electronic red packet receiver and/or the machine duration of the conditional electronic red packet sender meets the qualification requirement:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
and when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
In combination with another embodiment of the present invention, the conditional electronic red packet sending instruction further includes second indication information for identifying that the red packet mode is a fight mode, and the specified start time; wherein the prescribed start time is later than the time at which the conditional electronic red packet was created;
The first sending module is further configured to, after sending the conditional electronic red packet to the conditional electronic red packet receiver:
sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, and transferring the amount of the preset amount to the conditional electronic red packet.
In combination with another embodiment of the present invention, further comprising:
and the second sending module is used for sending the message that the conditional electronic red packet receiver accepts the conditional electronic red packet challenge to the conditional electronic red packet sender.
In combination with another embodiment of the present invention, when checking whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement, the checking module is specifically configured to:
when the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
When the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
In combination with another embodiment of the present invention, the machine duration is calculated by subtracting the screen-on duration in the call process from the screen-on duration of the terminal from the specified starting time to the retrievable time.
In combination with another embodiment of the present invention, further comprising:
the first prompting module is used for sending a machine-using duration prompting message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender when the machine-using duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is not less than the preset proportion of the machine-using duration threshold value.
In combination with another embodiment of the present invention, further comprising:
and the second prompting module is used for sending a conditional electronic red packet retrievable prompting message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender if the current time is determined to reach the retrievable time.
In combination with another embodiment of the present invention, further comprising:
and the third prompting module is used for sending a message of failure to the conditional electronic red packet sender and/or the conditional electronic red packet receiver for too long time if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to accord with the qualification.
Another embodiment of the present invention provides a server including:
at least one memory for storing program instructions;
and the at least one processor is used for calling the program instructions stored in the memory and executing any one of the conditional electronic red packet processing methods according to the obtained program instructions.
Another embodiment of the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any one of the conditional electronic red packet processing methods described above.
In the embodiment of the invention, a conditional electronic red packet sending instruction from a conditional electronic red packet sender is received; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver; generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to the conditional electronic red packet receiver; when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up time, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time duration meeting the picking up qualification to pick up the conditional electronic red packet; the conditional electronic red packet receiver or the conditional electronic red packet sender uses the time length from the specified starting time to the time length when the corresponding terminal is used, so that whether a user qualifies for getting the electronic red packet is checked through the counted time length based on the conditional electronic red packet.
Drawings
FIG. 1 is a diagram of an application scenario of a conditional electronic red packet processing method in an embodiment of the present invention;
FIG. 2 is a flow chart of a conditional electronic red packet processing method in an embodiment of the invention;
FIG. 3 is a schematic diagram of a conditional electronic red packet sending interface in a normal mode in an embodiment of the invention;
FIG. 4 is a schematic diagram of a conditional electronic red envelope display interface in a normal mode in an embodiment of the invention;
FIG. 5 is a schematic diagram of a reminding interface for machine duration according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a conditional electronic red envelope retrievable hint interface according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a conditional electronic red envelope sending interface in a combat mode in an embodiment of the present invention;
FIG. 8 is a schematic diagram of a conditional electronic red envelope display interface for a combat mode in an embodiment of the present invention;
FIG. 9 is a flow chart of conditional electronic red packet sending logic in an embodiment of the invention;
FIG. 10 is a flow chart of conditional electronic red envelope retrieval logic in accordance with an embodiment of the present invention;
FIG. 11 is a schematic diagram of a conditional electronic red envelope processing apparatus according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a server structure according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
To facilitate an understanding of embodiments of the present invention, several concepts will be briefly described as follows:
electronic red packet: different from the traditional entity red packet, the red packet is distributed based on the network, so that the method is simpler and more convenient, and the conditional electronic red packet indicates that the electronic red packet meeting the qualification of taking is required when the electronic red packet is taken in the embodiment of the invention.
Instant messaging (Instant Messaging, IM): is a terminal service, which allows two or more people to use the network to instantly transfer text messages, files, voice and video communication.
At present, some commonly used social software, payment software, shopping software, takeaway software and the like have an electronic red package function and mainly can be divided into the following types: 1) Electronic red package of social attributes: the system is mainly used in instant messaging software, and can be used for transferring payment or contact emotion and the like; 2) Electronic red package of payment software: the electronic red package which is usually cashed after the user uses the payment software can be used for motivating the user to use the payment software again, improving the retention rate of the user and the like; 3) Shopping electronic red bags: typically sent to the user by a shopping Application (APP) or a shop, which can be used directly to offset a portion of the cash amount when purchasing the goods. Shopping APP can promote daily life through the electronic red packages, and shops can also stimulate users to consume in own shops through the electronic red packages; 4) Take-out electronic red package: the take-out electronic red package is similar to the shopping electronic red package, and is generally used for stimulating a user to use the take-out APP of the user to promote daily life, and a shop can stimulate the user to take out at a shop point of the user.
Through researching and analyzing the commonly used electronic red packets, it can be known that different types of electronic red packets have interpersonal emotion characteristics or can have certain excitation and induction effects on user behaviors, so in the embodiment of the invention, in order to solve the problem that a user uses a smart phone for too long, a novel conditional electronic red packet processing method is provided, and the interpersonal emotion characteristics of the electronic red packets and the excitation induction characteristics of the user behaviors can be combined, so that the electronic red packets can play a more positive role on the user, the time of using the smart device by the user, such as the smart phone, is reduced, and the smart phone is taken as an example in the following because the use of the smart phone is more common.
Referring to fig. 1, an application scenario structure diagram of a conditional electronic red packet processing method in an embodiment of the present invention at least includes a conditional electronic red packet sender, a conditional electronic red packet receiver, and a server.
The conditional electronic red packet sender and the conditional electronic red packet receiver are terminals facing users and can be any intelligent devices such as intelligent mobile phones, tablet computers, portable personal computers, intelligent televisions and the like. The terminal can be provided with various APP, such as instant messaging APP, e.g. WeChat, etc.
The conditional electronic red packet sender and the conditional electronic red packet receiver can be respectively connected with the server through the Internet to realize mutual communication.
The server provides various network services for the terminal, and for different terminals or application programs on the terminal, the server can be regarded as a background server for providing corresponding network services, for example, the conditional electronic red packet sender sends the conditional electronic red packet to the conditional electronic red packet receiver through the WeChat APP, and then the server is a WeChat background server and can provide corresponding services for the conditional electronic red packet sender and the conditional electronic red packet receiver.
The server can be a server, a server cluster formed by a plurality of servers or a cloud computing center.
In order to solve the problem that a user uses a smart phone for too long in the prior art, the embodiment of the invention provides a conditional electronic red packet processing method, which is used for receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver; generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to a conditional electronic red packet receiver; when receiving a request for getting the conditional electronic red packet from a conditional electronic red packet receiver and/or a conditional electronic red packet sender, checking whether the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the getting qualification, and if the current time is confirmed to exceed or reach the getting qualification, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time length meeting the getting qualification to get the conditional electronic red packet; the time length of the conditional electronic red packet receiver or the conditional electronic red packet sender is the time length of the terminal corresponding to the preset starting time to the retrievable time.
In this way, the retrievable time is set, and the time length for using the conditional electronic red packet is counted in the retrievable time and the time length after the conditional electronic red packet is created, when the conditional electronic red packet is retrieved, whether the conditional electronic red packet receiver or the conditional electronic red packet sender has the qualification for getting is checked by using the time length, the excitation attribute of the conditional electronic red packet can be fully utilized, the purpose of reducing the time of using the smart phone by the conditional electronic red packet and the time length for using the conditional electronic red packet is achieved, the user can spontaneously reduce some unnecessary time for using the smart phone, and the more positive effect is achieved.
Further, the conditional electronic packet sending instruction further includes a packet mode, that is, includes first indication information for identifying the packet mode as a normal mode, or second indication information for identifying the packet mode as a fight mode, that is, two possible packet modes including a normal mode and a fight mode are further provided in the embodiment of the present invention, and for different packet modes, the packet instruction further needs to carry different time information, and provides a verification manner for corresponding qualification acquisition, which specifically includes:
First kind: normal mode. If the red packet mode is a common mode, the conditional electronic red packet instruction also comprises a time duration threshold;
checking whether the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement can be divided into the following two aspects:
first aspect: and checking a conditional electronic red packet receiver.
When the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification; when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold of the time length of the time, the conditional electronic red packet receiver does not accord with the qualification.
The specified starting time may be the time when the conditional electronic red packet receiver receives the conditional electronic red packet, or may be the starting time specified in the conditional electronic red packet instruction, which is not limited in the embodiment of the present invention.
Second aspect: and checking the conditional electronic red packet sender.
When the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification; when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time length of the time, the conditional electronic red packet sender does not accord with the qualification.
That is, when the conditional electronic red packet sender sends the conditional electronic red packet, the red packet mode may be selected, if the conditional electronic red packet sender selects the normal mode, the time duration threshold may be increased, which may be used to control the time duration of the user, and the time duration of the conditional electronic red packet receiver or the terminal corresponding to the conditional electronic red packet sender in the period of time is counted until the time duration is retrievable, and when the time duration is greater than or equal to the time duration threshold, the conditional electronic red packet cannot be retrieved, so that the time duration of the user using the smart phone may be controlled to a certain extent.
Second kind: and (5) a fight mode. If the red packet mode is the fight mode, the conditional electronic red packet sending instruction also comprises the specified starting time; wherein the prescribed start time is later than the time when the conditional electronic red package was created, i.e. the prescribed start time is set by the conditional electronic red package sender, and the aforementioned retrievable time can also be understood as the end time of the challenge. The conditional electronic red package in the fight mode indicates that a challenge is initiated by the conditional electronic red package sending direction to the conditional electronic red package receiving party, and a party with shorter time length can get the conditional electronic red package compared with the time length of each party in a certain time period, namely, the conditional electronic red package in the fight mode allows the conditional electronic red package sending party and the conditional electronic red package receiving party to have opportunities to get the conditional electronic red package.
In order to improve the feasibility and effectiveness of the challenge of the conditional electronic red packet, in the embodiment of the present invention, after the conditional electronic red packet is sent to the conditional electronic red packet receiver, the method further includes: sending a conditional electronic red packet challenge receiving instruction to a conditional electronic red packet receiving party, deducting the amount of the preset amount from an account corresponding to the conditional electronic red packet receiving party if the conditional electronic red packet receiving party receives the conditional electronic red packet challenge, and transferring the amount of the deducted preset amount to the conditional electronic red packet. At this time, if the conditional electronic purse receiver accepts the challenge, the amount in the conditional electronic purse includes the amount that both sides transfer.
Checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification of getting the qualification, and providing a possible implementation manner in the embodiment of the invention, wherein when the time duration of the conditional electronic red packet receiver is smaller than the time duration of the conditional electronic red packet sender, the conditional electronic red packet receiver meets the qualification of getting the qualification, and the conditional electronic red packet sender does not meet the qualification of getting the qualification; when the time of the conditional electronic red packet receiver is longer than or equal to the time of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
Therefore, the two parties can determine the qualification of getting the conditional electronic red packet by comparing the time length of the spelling machine, and the time length of the two parties using the smart phone or other smart devices can be controlled by the excitation characteristic of the electronic red packet, so that the user can be helped to reduce the time of the indulging smart phone.
In the embodiment of the present invention, when the time length of the machine is counted, several possible embodiments are further provided, where the first mode is: respectively acquiring the bright screen time length, the call time length and the dark screen time length of the terminal in the call process; and calculating the difference between the bright screen time and the call time, and calculating the sum of the difference and the dark screen time in the call process, wherein the sum is used as the machine-using time. The second way is: and respectively acquiring the screen-lighting time length of the terminal and the screen-lighting time length in the call process, calculating the difference between the screen-lighting time length and the screen-lighting time length in the call process, and taking the difference as the machine-using time length.
The terminal can represent a terminal corresponding to the conditional electronic red packet sender or a terminal corresponding to the conditional electronic red packet receiver, so that the machine duration of the conditional electronic red packet sender and the machine duration of the conditional electronic red packet receiver can be obtained.
Optionally, the internet described above uses standard communication techniques and/or protocols. The internet is typically the internet, but may be any network including, but not limited to, any combination of a mobile data network, private network, or virtual private network, such as a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, 2/3/4G network, and the like. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible Markup Language, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure socket layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet Protocol Security, IPsec), and the like. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
It should be noted that, the application scenario architecture diagram in the embodiment of the present invention is to more clearly illustrate the technical solution in the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention, and for other application scenario architectures and applications, the technical solution provided by the embodiment of the present invention is also applicable to similar problems.
In various embodiments of the present invention, the conditional electronic red packet processing method is used for the conditional electronic red packet receiver, the conditional electronic red packet sender and the server shown in fig. 1 as an example. Based on the above embodiments, referring to fig. 2, a flowchart of a conditional electronic red packet processing method according to an embodiment of the present invention is shown, where the method includes:
step 200: receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver.
Further, the conditional electronic red packet sending instruction in the embodiment of the present invention may further include red packet mode indication information, other time information, and the like, where the red packet mode includes a normal mode and a fight mode, which will be specifically described later.
That is, when the conditional electronic red package sender needs to send the conditional electronic red package, the information such as the retrievable time, the conditional electronic red package receiver, the red package amount and the like is set, and submitted to the background server, and the server receives the conditional electronic red package sending instruction including the information.
Further, the method further comprises the following steps: at least the amount of the red packet, the retrievable time, the red packet mode and the like are stored, that is, the information in the conditional electronic red packet sending instruction is stored and can be stored in a corresponding database so as to facilitate the subsequent conditional electronic red packet generation and the retrieval qualification verification.
Step 210: generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to a conditional electronic red packet receiver.
When executing step 210, the method specifically includes:
firstly, generating a conditional electronic red packet according to a conditional electronic red packet sending instruction.
Specifically: deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
And then, sending the conditional electronic red packet to a conditional electronic red packet receiver.
In the embodiment of the invention, different processing modes can be adopted for different red packet modes:
1) If the red packet mode is the normal mode, namely the conditional electronic red packet sending instruction further comprises first indication information for identifying the red packet mode as the normal mode, the conditional electronic red packet is sent to a conditional electronic red packet receiver, and then the creation process of the conditional electronic red packet is completed.
2) If the red packet mode is a fight mode, that is, the conditional electronic red packet sending instruction further includes second instruction information for identifying the red packet mode as the fight mode, the conditional electronic red packet sending method further includes: sending a conditional electronic red packet challenge receiving instruction to a conditional electronic red packet receiving party, deducting the amount of the preset amount from an account corresponding to the conditional electronic red packet receiving party if the conditional electronic red packet receiving party receives the conditional electronic red packet challenge, and transferring the amount of the deducted preset amount to the conditional electronic red packet.
Because of the fight mode, it is necessary to determine whether the conditional electronic red packet receiver accepts the challenge, and if the conditional electronic red packet receiver does not accept the challenge all the time or does not accept the challenge beyond the acceptable time, the conditional electronic red packet is considered to be invalid, and the amount in the conditional electronic red packet is returned to the account corresponding to the conditional electronic red packet sender. If the conditional electronic red packet receiver accepts the challenge, the amount of the preset amount is deducted from the account corresponding to the conditional electronic red packet receiver, wherein the preset amount can be equal to the amount of the red packet transferred by the conditional electronic red packet sender, or can be set by the conditional electronic red packet receiver, or can be set randomly.
The method for receiving the challenge by the conditional electronic red packet receiver may be, for example, a click operation on the conditional electronic red packet directly, or a control or a button for receiving the challenge is set on the conditional electronic red packet interface, and if the conditional electronic red packet receiver clicks the control or the button, the conditional electronic red packet receiver determines to receive the challenge.
Further, in order to improve reliability of the conditional electronic red envelope challenge, in the embodiment of the present invention, after the conditional electronic red envelope receiver receives the conditional electronic red envelope challenge, deducting an amount of a preset amount from an account corresponding to the conditional electronic red envelope receiver, and transferring the deducted amount of the preset amount to the conditional electronic red envelope, the method further includes: and sending a message for receiving the conditional electronic red packet challenge by the conditional electronic red packet receiver to the conditional electronic red packet sender. In this way, the conditional electronic red package sender may be informed that the other party has accepted the challenge to prepare the conditional electronic red package sender.
Step 220: when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up time, allowing the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meeting the picking up qualification to pick up the conditional electronic red packet.
The time length of the conditional electronic red packet receiver is the time length from the specified starting time to the retrievable time when the terminal of the conditional electronic red packet receiver is used.
The time length of the conditional electronic red packet sender is the time length that the terminal of the conditional electronic red packet sender is used from the specified starting time to the retrievable time.
According to the different red packet modes, the execution of step 220 can be divided into two cases:
first case: if the conditional electronic red packet sending instruction further comprises first indication information for identifying that the red packet mode is a common mode, namely that the red packet mode is the common mode, the conditional electronic red packet sending instruction further comprises a machine time duration threshold value.
Checking whether the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification of getting the conditional electronic red packet, specifically comprising:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification; when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold of the time length of the time, the conditional electronic red packet receiver does not accord with the qualification;
and/or the number of the groups of groups,
When the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification; when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time length of the time, the conditional electronic red packet sender does not accord with the qualification.
The normal mode is initiated by a conditional electronic red packet sender, and the conditional electronic red packet mode for acquiring qualification of the time duration is checked by setting the time duration threshold.
And the electronic red package in the normal mode may also have conditional electronic red package pickup opportunities for both the conditional electronic red package receiver and the conditional electronic red package sender, for example, if the conditional electronic red package is sent through a one-to-one instant messaging session, only the conditional electronic red package receiver has pickup opportunities, and if the conditional electronic red package is sent to the group chat, both the conditional electronic red package sender and the conditional electronic red package receiver may have pickup opportunities.
Further, after the conditional electronic red package is sent to the conditional electronic red package receiver, the conditional electronic red package receiver is informed of the time for getting and the time for using machine.
Thus, after the conditional electronic red packet receiver receives the conditional electronic red packet, the machine time is counted until the retrievable time is counted, if the retrievable time is not reached, the conditional electronic red packet receiver clicks to retrieve the conditional electronic red packet, and also prompts that the retrievable time is not reached, and if the retrievable time is reached, the conditional electronic red packet receiver clicks to retrieve the conditional electronic red packet, and then checks the retrieval qualification, and only the time is less than the machine time threshold, the amount of the conditional electronic red packet can be obtained.
Further, in order to improve processing effectiveness and reliability and improve user experience, in the embodiment of the invention, if it is determined that the time of use of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is greater than a preset proportion of a time threshold of use, a time reminding message is sent to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
For example, when the preset proportion is 80%, and the time length of the conditional electronic red packet receiver reaches 80% of the time length threshold, the conditional electronic red packet receiver is prompted to approach the time length threshold, so that the conditional electronic red packet receiver can control the time length of the receiver and possibly stop using the smart phone, and further, the user can be helped to reduce the time length of using the smart phone.
Further, the embodiment of the invention further comprises: and if the current time is determined to reach the retrievable time, sending a conditional electronic red packet retrievable reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
The method for prompting or sending the message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender may be voice, text, etc., which is not limited in the embodiment of the present invention.
Second case: if the conditional electronic red package sending instruction further comprises second indication information for identifying that the red package mode is the fight mode, namely, the red package mode is the fight mode, the conditional electronic red package sending instruction further comprises a specified starting time.
The fight mode is initiated by the conditional electronic red packet sender, and both the conditional electronic red packet sender and the conditional electronic red packet receiver have conditional electronic red packet receiving opportunities, and the conditional electronic red packet mode for receiving qualification is checked by comparing the machine time lengths of the two parties.
That is, if the conditional electronic red package sender selects the fight mode, when the conditional electronic red package is initiated, not only the retrievable time, the conditional electronic red package receiver, and the red package amount, but also the prescribed start time are required to be set, and the conditional electronic red package can be obtained by the party having a shorter time than the time between the prescribed start time and the retrievable time, and the retrievable time at this time can be regarded as the end time of the fight.
Checking whether the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification of getting the conditional electronic red packet, specifically comprising:
when the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
when the time of the conditional electronic red packet receiver is longer than or equal to the time of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
Further, the method further comprises the following steps: and if the current time is determined to reach the retrievable time, sending a conditional electronic red packet retrievable reminding message to the conditional electronic red packet sender and the conditional electronic red packet receiver.
Aiming at the two situations, when determining that the conditional electronic red packet sender gets the conditional electronic red packet or determining that the conditional electronic red packet receiver gets the conditional electronic red packet, the method correspondingly specifically comprises the following steps:
if the conditional electronic red packet receiver meets the qualification, transferring the amount in the conditional electronic red packet to an account corresponding to the conditional electronic red packet receiver; or alternatively, the first and second heat exchangers may be,
And if the conditional electronic red packet sender meets the qualification, transferring the amount in the conditional electronic red packet into an account corresponding to the conditional electronic red packet sender.
For example, if the set amount of the red packet is M in the normal mode, and when the conditional electronic red packet receiver is determined to get the conditional electronic red packet, if the amount of the conditional electronic red packet is M, the amount of M is transferred to the account corresponding to the conditional electronic red packet receiver.
For another example, if the set amount of the red packet is M, after the conditional electronic red packet receiver receives the challenge, the conditional electronic red packet receiver also transfers M amount, and the amount in the conditional electronic red packet becomes 2M, if it is determined that the conditional electronic red packet receiver gets the conditional electronic red packet, the 2M amount is transferred to the account corresponding to the conditional electronic red packet receiver, and if it is determined that the conditional electronic red packet sender gets the conditional electronic red packet, the 2M amount is transferred to the account corresponding to the conditional electronic red packet sender.
Further, in an embodiment of the present invention, the method further includes: if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to be qualified for getting, the message that the machine-using time is too long and the picking is failed is sent to the conditional electronic red packet sender and/or the conditional electronic red packet receiver, and if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to be qualified for getting, the corresponding party can be notified to excite the party to reduce the time for using the smart phone next time.
The embodiment of the invention also provides a method for calculating the time length of the computer aiming at the time length of the conditional electronic red packet sender or the time length of the conditional electronic red packet receiver, wherein the time length of the computer is calculated by subtracting the time length of the screen on the call in the process from the time length of the screen on the terminal from the specified starting time to the retrievable time.
For example, the duration of the bright screen is time_bright, the duration of the call is time_cal, the duration of the dark screen in the call process is time_dark_call, the duration of the machine is time_user, and the duration of the bright screen in the call process is time_bright_call.
The duration of the bright screen in the call process is time bright_call=time cal-time dark_call, and the calculation mode of the duration of the call is as follows: time_user=time_bright_time_call+time_dark_call.
For another example, the duration of the bright screen in the call process can be directly counted, and the calculation mode of the duration of the machine is as follows: time_user=time_bright_time_bright_call.
This is because, when a user uses a smart phone, the smart phone is usually on-screen, and thus, the method of counting the time duration of use is mainly to count the time_bright of the on-screen. However, the user may have a situation of emergency call, the call time should not be counted in the time of the user playing the smart phone, so the call time is also required to be deducted, and when the smart phone is close to the face, the smart phone may be automatically hidden in consideration of the call, the part of time is not counted in the time_bright, but counted in the time_call, and therefore the part of time is required to be added back.
Of course, other manners of counting the machine duration may be adopted, and the embodiment of the present invention is not limited.
In the embodiment of the invention, a conditional electronic red packet sending instruction from a conditional electronic red packet sender is received; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver; generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to a conditional electronic red packet receiver; when receiving a request for getting the conditional electronic red packet from a conditional electronic red packet receiver and/or a conditional electronic red packet sender, checking whether the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the getting qualification, and if the current time is confirmed to exceed or reach the getting qualification time, allowing the user to get the conditional electronic red packet by the conditional electronic red packet receiver and/or the conditional electronic red packet sender, thus, when sending the conditional electronic red packet, at least setting the getting qualification time, counting the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender, when getting the red packet, checking the getting qualification according to the time length of the machine, only when the current time length of the conditional electronic red packet is confirmed to be qualified, and helping the user to reduce the time of using a smart phone.
Based on the above embodiments, two modes of conditional electronic red packages in the embodiments of the present invention are specifically described below.
First mode: for convenience of description, only the conditional electronic red envelope receiver has the opportunity to pick up the conditional electronic red envelope.
When a conditional electronic red packet sender sends a conditional electronic red packet sending instruction, after a common mode is selected, the red packet amount needs to be set, and two additional time parameters need to be added:
first time point: the retrievable time time_active is later than the retrievable time, and the conditional electronic red packet is activated to enter a clickable state, i.e. a retrievable state, and is in a non-clickable state until the retrievable time.
Second time point: the time-interval threshold is used, and the set retrievable time is not required to be set by the conditional electronic red packet sender, and the set starting time is the time when the conditional electronic red packet receiver receives the conditional electronic red packet.
The conditional electronic red packet processing method in the embodiment of the invention specifically comprises the following steps:
firstly, referring to fig. 3, a schematic diagram of a conditional electronic red packet sending interface in a normal mode in an embodiment of the present invention is shown, for example, after a conditional electronic red packet sender selects a conditional electronic red packet receiver, when sending the conditional electronic red packet, the red packet amount is set to 100 yuan, the retrievable time is 4 months, 4 days, 18:00, and the time duration threshold is 10 minutes, so that a server receives a conditional electronic red packet sending instruction, stores the set information into a database, generates a conditional electronic red packet, and sends the conditional electronic red packet to the conditional electronic red packet receiver.
Then, referring to fig. 4, a schematic diagram of a conditional electronic red packet display interface in the normal mode in the embodiment of the present invention is shown, after the conditional electronic red packet is sent out, chat thumbnails are displayed in a dialog box of the conditional electronic red packet sender and the conditional electronic red packet receiver, for example, the chat thumbnails are displayed on the conditional electronic red packet: the time of the acquisition is 4 months, 4 days, 18:00, and the time period is 10 minutes.
And then, when the conditional electronic red packet receiver receives the conditional electronic red packet, starting counting the time duration of the conditional electronic red packet receiver, and if the acceptable time is not reached yet, sending a time duration reminding message to the conditional electronic red packet receiver when the time of the user of the conditional electronic red packet receiver for accumulating the use of the smart phone reaches a preset proportion of a time duration threshold, for example, the preset proportion is 90%, that is, the accumulated time duration of the conditional electronic red packet receiver is 10 x 90% =9 minutes. Referring to fig. 5, a schematic diagram of a machine duration reminding interface according to an embodiment of the present invention is shown, for example, to prompt a user to "machine duration fast to 10 minutes la, notice to rest.
Finally, if the retrievable time is reached, a conditional electronic red packet retrievable reminding message is also sent to the conditional electronic red packet receiver, as shown in fig. 6, for example, a user is prompted to indicate that the conditional electronic red packet has reached the retrievable time, at this time, the conditional electronic red packet receiver checks its retrievable qualification when clicking to retrieve the conditional electronic red packet, and according to the time duration of the conditional electronic red packet receiver from the time of receiving the conditional electronic red packet to the retrievable time, if the time duration threshold is less than the time duration threshold, the authority to retrieve the conditional electronic red packet is obtained, and if the time duration threshold is greater than or equal to the time duration threshold, the amount of the conditional electronic red packet is not met, although the conditional electronic red packet can be clicked, the conditional electronic red packet cannot be retrieved, and after clicking, the receiver sends a message indicating that the conditional electronic red packet fails to retrieve the time duration of the conditional electronic red packet.
Second mode: and (5) a fight mode.
The conditional electronic red package sender can initiate challenges to the conditional electronic red package receiver, the duration of the conditional electronic red package sender is shorter than the duration of who uses the smart phone in the specified time, and the conditional electronic red package can be obtained by the person with shorter duration using the smart phone. When a conditional electronic red package sender sends a conditional electronic red package sending instruction, after a combat mode is selected, the red package amount needs to be set, and two additional time parameters need to be added:
first time point: the starting time time_start is specified, namely, the time for starting the counting machine duration is set by the conditional electronic red packet sender.
Second time point: the end time_end, namely the retrievable time, is only used for describing the fight mode conveniently and corresponds to the time_start, so the time_end is used for describing, counting the time of the machine duration is ended, and the conditional electronic red packet enters the retrievable state when counting is ended.
The conditional electronic red packet processing method in the embodiment of the invention specifically comprises the following steps:
firstly, referring to fig. 7, a schematic diagram of a conditional electronic red packet sending interface in a fight mode in an embodiment of the present invention is shown, for example, after a conditional electronic red packet sender selects a conditional electronic red packet receiver, when sending the conditional electronic red packet, the red packet amount is set to 100 yuan, the starting time is 4 months, 5 days, 15:00, and the ending time is 4 months, 5 days, 18:00, and further the server receives a conditional electronic red packet sending instruction, stores the set information into a database, generates a conditional electronic red packet, and sends the conditional electronic red packet to the conditional electronic red packet receiver.
It should be noted that, because the conditional electronic red packet sending is used to set the time_start and the time_end, in order to ensure fairness and effectiveness, the time of the time_start needs to be later than the time of the conditional electronic red packet receiving party to finish the money-adding into the red packet, otherwise, an error is prompted, but the time_start may be earlier than the time of the conditional electronic red packet receiving party to accept the challenge, and the time_end needs to be later than the time_start.
Then, referring to fig. 8, a schematic diagram of a conditional electronic red packet display interface of a fight mode in an embodiment of the present invention is shown, after the conditional electronic red packet is sent, chat thumbnails are displayed in a dialog box of a conditional electronic red packet sender and a conditional electronic red packet receiver, for example, the chat thumbnails are displayed on the conditional electronic red packet: start time 4 months 5 days 15:00, end time 4 months 5 days 18:00.
And then, after the conditional electronic red packet receiver receives the conditional electronic red packet, clicking the conditional electronic red packet to accept the challenge, and if the conditional electronic red packet receiver is determined to accept the conditional electronic red packet challenge, deducting the amount of the preset amount from the account corresponding to the conditional electronic red packet receiver, and transferring the amount of the deducted preset amount into the conditional electronic red packet.
For example, the amount of the red packet is 100 yuan, and after the conditional electronic red packet receiver receives the challenge, the conditional electronic red packet receiver needs to insert the amount of the preset amount, for example, insert the same amount into the conditional electronic red packet, and then the amount in the conditional electronic red packet is 200 yuan.
Finally, counting the time-start to time-end time of the conditional electronic red packet sender and the conditional electronic red packet receiver respectively, if the time-end time is reached, the conditional electronic red packet sender and the conditional electronic red packet receiver can send a conditional electronic red packet retrievable reminding message, similar to the above-mentioned figure 6, the interface implementation is not repeated here, at this time, the conditional electronic red packet sender and the conditional electronic red packet receiver can both retrieve the conditional electronic red packet by clicking, and according to the time-end time, the retrieval qualification of both parties can be checked, the amount of the conditional electronic red packet can be obtained by the party with shorter time, namely 200 yuan, and the party with longer time can click the conditional electronic red packet, but the message with overlong time and failed retrieval can be prompted.
It should be noted that the interface schematic diagrams in fig. 3 to 8 are only simple schematic diagrams, and other interface display manners may be adopted or other controls may be included when the interface is actually implemented, which is not limited in the embodiment of the present invention.
Further, in the embodiment of the present invention, for the conditional electronic red packet in the normal mode or the fight mode, a plurality of conditional electronic red packet receivers may be corresponding.
For example, for a certain micro-group chat, the conditional electronic red packet sender may send the conditional electronic red packet to the micro-group chat, if the micro-group chat is in a normal mode, the time spent by the members in the group chat is counted respectively, if the time spent by a plurality of members is less than the time spent threshold, the amount in the conditional electronic red packet can be allocated according to a certain rule, for example, the amount in the conditional electronic red packet can be allocated to each member meeting the receiving qualification randomly.
For example, if the challenge mode is a fight mode, a plurality of members may accept the challenges of the conditional electronic red packet sender, and the members receiving the challenges need to be charged with the sum of the preset sum, for example, equal sum is charged, if N members accept the challenges, the sum of the conditional electronic red packet is M, the sum of the conditional electronic red packet becomes (n+1) ×m, the time duration of the members receiving the challenges may be counted, and compared with the time duration of the conditional electronic red packet sender, and if the time duration of the members is smaller than the time duration of the conditional electronic red packet sender, the sum of the conditional electronic red packet may be randomly allocated to each member meeting the receiving qualification.
The above embodiments are further described below with specific application scenarios. Based on the above embodiment, the conditional electronic red packet processing method in the embodiment of the present invention may be described in the following three parts:
1) A first part: the conditional electronic red package sending logic mainly comprises a basic information setting interface for providing the conditional electronic red package for a user, and storage of related information of the conditional electronic red package of a background server, specifically referring to fig. 9, is a flow chart of the conditional electronic red package sending logic in the embodiment of the invention, and comprises the following steps:
step 900: the user clicks the send red packet button.
Step 901: when the red packet mode is selected, step 902 is executed, and when the fight mode is selected, step 903 is executed.
Step 902: setting a retrievable time active and a time interval threshold.
Here, the description will be made taking the case where the predetermined start time is taken as an example of the time when the conditional electronic red packet receiver receives the conditional electronic red packet in the normal mode, and the predetermined start time needs to be set after the normal mode is selected in the normal mode.
Step 903: a prescribed start time time_start and end time_end are set.
The end time_end is the time that can be taken up here. And in step 902 and step 903, the red packet amount parameter needs to be set, which is the same as the red packet amount set in the existing conditional electronic red packet scheme.
Step 904: and sending a conditional electronic red packet sending instruction.
Step 905: and storing information of the conditional electronic red package.
For example, information including a red packet amount, a red packet pattern, time_active and time_interval, or time_start and time_end.
Step 906: deducting the amount of the money of the red packet from the account corresponding to the conditional electronic red packet sender.
Step 907: the conditional electronic package is sent to the conditional electronic package receiver, and if the package mode is the normal mode, step 911 is executed, and if the package mode is the fight mode, step 908 is executed.
Step 908: waiting for the conditional electronic red packet recipient to accept the challenge.
For example, when sending the conditional electronic red package to the conditional electronic red package receiver, a conditional electronic red package challenge instruction may be simultaneously sent to the conditional electronic red package receiver to determine whether the conditional electronic red package receiver accepts the challenge.
Step 909: and if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, deducting the amount of the preset amount from the account corresponding to the conditional electronic red packet receiver.
Step 910: and sending a message for receiving the conditional electronic red packet challenge by the conditional electronic red packet receiver to the conditional electronic red packet sender.
Step 911: conditional electronic red envelope creation is complete.
The steps 900 to 904 are performed on the terminal side of the conditional electronic red packet sender, and the steps 905 to 911 are performed on a server in the background.
2) A second part: the machine-using duration statistics logic is mainly responsible for creating a subprocess in the background of the terminal, and is used for counting the machine-using duration of the conditional electronic red packet sender and the conditional electronic red packet receiver, but not the use duration of a certain APP, and can be divided into two cases:
first case: if the electronic red packet receiver is in a common mode and only has the opportunity of picking up the electronic red packet under the condition, the time length statistics logic only works on the terminal of the electronic red packet receiver under the condition, after the electronic red packet receiver under the condition receives the electronic red packet under the condition, the time length of the electronic red packet receiver under the condition can be counted by creating a subprocess, when the time_active is reached, the statistics is finished, and a statistics result, namely the time length of the electronic red packet receiver under the condition, is sent to a background server, and then the subprocess is closed.
And if the conditional electronic red packet receiver and the conditional electronic red packet sender both have the opportunity to get the conditional electronic red packet, the machine duration statistics logic also works on the terminal of the conditional electronic red packet receiver.
Second case: if the operation mode is the fight mode, the machine duration statistics logic works on the terminals of the conditional electronic red packet sender and the conditional electronic red packet receiver at the same time, after the time_start is reached, a subprocess is created on the terminals of the conditional electronic red packet sender and the conditional electronic red packet receiver at the same time to conduct duration statistics, when the time_end is reached, the statistics is completed, the machine durations of the conditional electronic red packet sender and the conditional electronic red packet receiver are sent to a background server, and then the subprocess is closed.
The statistical method of the machine duration mainly utilizes an application program interface (Application Programming Interface, API) of a terminal operating system to monitor whether the terminal is in a bright screen state or not, and the specific calculation formula is as follows:
time_usephone=time_bright-time_bright_call
wherein, time_user is the time length of the telephone, time_bright is the time length of the bright screen, and time_bright_call is the time length of the bright screen in the process of communication.
3) Third section: the conditional electronic red packet retrieval logic mainly comprises verification of conditional electronic red packet receiving party and conditional electronic red packet sending party retrieval qualification, and specifically referring to fig. 10, a conditional electronic red packet retrieval logic flow chart in an embodiment of the invention is shown, and comprises:
Step 1000: clicking to get the conditional electronic red envelope.
Step 1001: and acquiring the conditional electronic red packet ID and the user ID.
The user Identification (ID) indicates an ID of clicking to get the conditional electronic red packet, which is a conditional electronic red packet sender or a conditional electronic red packet receiver in the embodiment of the present invention, and is referred to herein as a user for convenience of description.
Specifically: for the normal mode, if only the user on the conditional electronic red packet receiver side can click to get the conditional electronic red packet, the user ID at this time indicates the conditional electronic red packet receiver ID, and if the user on the conditional electronic red packet receiver side and the user on the conditional electronic red packet sender side can click to get the conditional electronic red packet, for example, when sending in a group chat session, the user ID at this time indicates the conditional electronic red packet receiver ID or the conditional electronic red packet sender ID; for the fight mode, both users can click to get the conditional electronic red packet, and after clicking to get the red packet, the background server is required to check the qualification of getting, so that at the moment, the user ID represents the conditional electronic red packet receiver ID or the conditional electronic red packet sender ID, and after clicking to get the conditional electronic red packet, the user ID (user_id) and the conditional electronic red packet ID (redbag_id) are sent to the background server.
Step 1002: and inquiring according to the conditional electronic red packet ID and the user ID.
The method specifically comprises the following steps: 1) And inquiring the stored information of the conditional electronic red packet according to the conditional electronic red packet ID, wherein the information comprises information such as the red packet amount, the red packet mode, the time_active and the time_interval, or the time_start and the time_end.
2) And inquiring the corresponding machine duration according to the user ID.
Step 1003: the user's qualification is verified.
In the embodiment of the invention, after the server verifies the qualification of the user, the verification result can be sent to the corresponding terminal, namely to the corresponding conditional electronic red packet sender or the conditional electronic red packet receiver, and then the conditional electronic red packet receiver or the conditional electronic red packet sender can learn whether the qualification of the user is met or not according to the verification result returned by the server.
Step 1004: whether the qualification is satisfied is determined, if so, step 1005 is executed, and if not, step 1006 is executed.
Step 1005: the acquisition is successful and the funds are paid out.
Step 1006: the reminding machine is used for too long, and the picking fails.
The steps 1000 to 1001 and the steps 1004 to 1005 are performed on the terminal side of the conditional electronic red packet sender or the conditional electronic red packet receiver, and the steps 1002 to 1003 are performed on a server in the background.
In addition, it is worth to be noted that in the embodiment of the invention, the server executes the operation of checking and acquiring qualification, so that the data security and the accuracy of the checking result can be improved, and the user is prevented from tampering the related data at the terminal. The operation of checking the qualification may be performed by the terminal of the conditional electronic packet sender or the conditional electronic packet receiver because the related information of the conditional electronic packet is also transmitted when the creation of the conditional electronic packet is generated, so that the conditional electronic packet receiver or the conditional electronic packet sender is also provided with the checking capability, the check by the terminal can be performed in the case of the disconnection, and the calculation pressure of the server can be reduced.
In this way, by processing the conditional electronic red package sending logic and the receiving logic, and by counting the time spent, the conditional electronic red package can be received only if the conditional electronic red package meets the receiving qualification, and the conditional electronic red package is utilized to motivate the user to reduce the time of using the smart phone, so that the effectiveness and the interestingness of the conditional electronic red package processing are improved, the time of using the smart time can be controlled to a certain extent, the user can invest more time and energy to do other things, for example, can pay more attention to doing something, or can have more time accompanies the family of friends instead of everyone playing the smart phone at low head.
Based on the above embodiments, referring to fig. 11, in the embodiment of the present invention, the conditional electronic red packet processing apparatus specifically includes:
a receiving module 1110 that receives a conditional electronic red packet transmission instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
the generating module 1120 is configured to generate a conditional electronic red packet according to the conditional electronic red packet sending instruction;
a first sending module 1130, configured to send the conditional electronic red packet to the conditional electronic red packet receiver;
a verification module 1140, configured to, when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, verify whether a machine-use duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets a picking-up qualification, and if it is confirmed that the current time has exceeded or reached the picking-up time, allow the conditional electronic red packet receiver and/or the conditional electronic red packet sender whose machine-use duration meets the picking-up qualification to pick up the conditional electronic red packet; the time length of the conditional electronic red packet receiver or the conditional electronic red packet sender is the time length from the specified starting time to the time length when the corresponding terminal is used.
Optionally, the generating a conditional electronic red packet, the generating module 1120 is specifically configured to:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
Optionally, the conditional electronic red packet sending instruction further includes first indication information for identifying that the red packet mode is a common mode; the conditional electronic red package instruction also comprises a time duration threshold;
the verification module 1140 is specifically configured to, when verifying whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
And when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
Optionally, the conditional electronic red packet sending instruction further includes second indication information for identifying that the red packet mode is a fight mode, and the specified starting time;
the first sending module 1130 is further configured to, after sending the conditional electronic red package to the conditional electronic red package receiver:
sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, and transferring the amount of the preset amount to the conditional electronic red packet.
Optionally, the method further comprises:
a second sending module 1150, configured to send a message that the conditional electronic red packet receiver accepts a conditional electronic red packet challenge to the conditional electronic red packet sender.
Optionally, when checking whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification, the checking module 1140 is specifically configured to:
When the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
when the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
Optionally, the machine duration is calculated by subtracting the screen-on duration in the call process from the screen-on duration of the terminal from the specified starting time to the retrievable time.
Optionally, the method further comprises:
and the first prompting module 1160 is configured to send a machine duration reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender when it is determined that the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is greater than a preset proportion of the machine duration threshold.
Optionally, the method further comprises:
and the second prompting module 1170 is configured to send a conditional electronic red packet retrievable reminder message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender if it is determined that the current time has reached the retrievable time.
Optionally, the method further comprises:
and the third prompting module 1180 is configured to send a message that the machine time is too long and the pickup is failed to the conditional electronic red packet sender and/or the conditional electronic red packet receiver if it is determined that the conditional electronic red packet sender and/or the conditional electronic red packet receiver do not meet the pickup qualification.
Based on the above embodiments, referring to fig. 12, in an embodiment of the present invention, a server is shown in a schematic structure.
Embodiments of the present invention provide a server that may include a processor 1210 (Center Processing Unit, CPU), a memory 1220, an input device 1230, an output device 1240, etc., where the input device 1230 may include a keyboard, a mouse, a touch screen, etc., and the output device 1240 may include a display device, such as a liquid crystal display (Liquid Crystal Display, LCD), cathode Ray Tube (CRT), etc.
The memory 1220 may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides the processor 1210 with program instructions and data stored in the memory 1220. In an embodiment of the present invention, the memory 1220 may be used to store a program of the conditional electronic red packet processing method.
Processor 1210, by calling the program instructions stored in memory 1220, processor 1210 is configured to execute according to the obtained program instructions:
receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to the conditional electronic red packet receiver;
when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up time, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time duration meeting the picking up qualification to pick up the conditional electronic red packet; the time length of the conditional electronic red packet receiver or the conditional electronic red packet sender is the time length from the specified starting time to the time length when the corresponding terminal is used.
Optionally, when the conditional electronic red packet is generated, the processor 1210 is specifically configured to:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
Optionally, the conditional electronic red packet sending instruction further includes first indication information for identifying that the red packet mode is a common mode; the conditional electronic red package instruction also comprises a time duration threshold;
the processor 1210 is specifically configured to, when checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
And when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
Optionally, the conditional electronic red packet sending instruction further includes second instruction information for identifying that the red packet mode is a fight mode and the specified starting time;
the processor 1210 is further configured to, after sending the conditional electronic red package to the conditional electronic red package recipient:
sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, and transferring the amount of the preset amount to the conditional electronic red packet.
Optionally, the processor 1210 is further configured to:
and sending a message that the conditional electronic red package receiver accepts the conditional electronic red package challenge to the conditional electronic red package sender.
Processor 1210, when verifying whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification requirement, processor 1210 is specifically configured to:
When the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
when the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet sender does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
Optionally, the machine duration is calculated by subtracting the screen-on duration in the call process from the screen-on duration of the terminal from the specified starting time to the retrievable time.
Optionally, the processor 1210 is further configured to:
and when the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is not less than the preset proportion of the time length threshold, sending a time length reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
Optionally, the processor 1210 is further configured to:
and if the current time is determined to reach the retrievable time, sending a conditional electronic red packet retrievable reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
Optionally, the processor 1210 is further configured to:
if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to be qualified for getting, sending the message of failure to the conditional electronic red packet sender and/or the conditional electronic red packet receiver for too long time.
For ease of illustration, embodiments of the present invention are illustrated with a portable multifunction device 1300 that includes a touch screen, and those skilled in the art will appreciate that embodiments of the present invention are equally applicable to other devices, such as handheld devices, vehicle mount devices, wearable devices, computing devices, and various forms of User Equipment (UE), mobile Station (MS), terminal (terminal), terminal device (Terminal Equipment), etc.
Fig. 13 shows a block diagram of a portable multifunction device 1300 including a touch screen, which device 1300 may include an input unit 1330, a display unit 1340, a gravitational acceleration sensor 1351, a proximity light sensor 1352, an ambient light sensor 1353, a memory 1320, a processor 1390, a radio frequency unit 1310, audio circuitry 1360, a speaker 1361, a microphone 1362, a WiFi (wireless fidelity ) module 1370, a bluetooth module 1380, a power supply 1393, an external interface 1397, and the like, according to some embodiments.
It will be appreciated by those skilled in the art that fig. 13 is merely an example of a portable multifunction device and is not intended to be limiting of the portable multifunction device and may include more or fewer components than shown, or may combine certain components, or may be different components.
The input unit 1330 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the portable multifunction device. In particular, the input unit 1330 may include a touch screen 1331 and other input devices 1332. The touch screen 1331 may collect touch operations on or near the user (e.g., operations on or near the touch screen by the user using any suitable object such as a finger, a joint, a stylus, etc.), and actuate the corresponding connection device according to a predetermined program. The touch screen can detect the touch action of a user on the touch screen, convert the touch action into a touch signal, send the touch signal to the processor 1390, and receive and execute a command sent by the processor 1390; the touch signal includes at least touch point coordinate information. The touch screen 1331 may provide an input interface and an output interface between the device 1300 and a user. In addition, the touch screen may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1330 may include other input devices in addition to the touch screen 1331. In particular, other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys 1332, switch keys 1333, etc.), a trackball, mouse, joystick, etc.
The display unit 1340 may be used to display information input by a user or information provided to the user as well as various menus of the apparatus 1300. Further, the touch screen 1331 may overlay the display panel 1341, and upon detection of a touch operation thereon or thereabout by the touch screen 1331, the touch screen is communicated to the processor 1390 to determine a type of touch event, and the processor 1390 then provides a corresponding visual output on the display panel 1341 based on the type of touch event. In this embodiment, the touch screen and the display unit may be integrated into one component to implement the input, output, and display functions of the apparatus 1300; for convenience of description, in the embodiment of the invention, the touch screen represents a functional set of the touch screen and the display unit; in some embodiments, the touch screen and the display unit may also be provided as two separate components.
The gravity acceleration sensor 1351 may detect the acceleration in each direction (typically three axes), and meanwhile, the gravity acceleration sensor 1351 may also be used to detect the gravity and direction when the terminal is stationary, and may be used to identify applications of the gesture of the mobile phone (such as landscape/portrait screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer, and knocking), and so on.
The apparatus 1300 may also include one or more proximity light sensors 1352 for turning off and disabling the touch screen when the apparatus 1300 is in close proximity to the user (e.g., near the ear when the user is making a call) to avoid user misoperation of the touch screen; the device 1300 may also include one or more ambient light sensors 1353 for keeping the touch screen closed when the device 1300 is in a user's pocket or other dark area to prevent the device 1300 from consuming unnecessary battery power or being mishandled when in a locked state, and in some embodiments the proximity light sensor and the ambient light sensor may be integrated into one component or may be two separate components. Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. may also be configured with the apparatus 1300 and are not described herein. While fig. 13 shows a proximity light sensor and an ambient light sensor, it is to be understood that it is not a necessary component of the apparatus 1300 and may be omitted entirely as desired without changing the essence of the invention.
The memory 1320 may be configured to store instructions and data, where the memory 1320 may mainly include a storage instruction area and a storage data area, and the storage data area may store an association relationship between a joint touch gesture and an application function; the store instruction area may store instructions required by an operating system, at least one function, and the like; the instructions may cause the processor 1390 to perform a conditional electronic red packet processing method in an embodiment of the invention.
Processor 1390 is the control center of device 1300 and, using various interfaces and lines to connect the various parts of the overall handset, performs the various functions of device 1300 and processes data by executing or executing instructions stored in memory 1320 and invoking data stored in memory 1320, thereby performing overall monitoring of the handset. Optionally, the processor 1390 may include one or more processing units; preferably, the processor 1390 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1390. In some embodiments, the processor, memory, may be implemented on a single chip, or they may be implemented separately on separate chips in some embodiments. In an embodiment of the present invention, the processor 1390 is further configured to invoke instructions in the memory to implement the conditional electronic red packet processing method in an embodiment of the present invention.
The radio frequency unit 1310 may be used for receiving and transmitting information or receiving and transmitting signals during a call, specifically, after receiving downlink information of a base station, processing the downlink information by the processor 1390; in addition, the data of the design uplink is sent to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (Low Noise Amplifier, LNAs), diplexers, and the like. In addition, the radio frequency unit 1310 may also communicate with network devices and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
Audio circuitry 1360, speaker 1361, microphone 1362 may provide an audio interface between the user and the device 1300. The audio circuit 1360 may transmit the received electrical signal after audio data conversion to the speaker 1361, where the electrical signal is converted to a sound signal by the speaker 1361 and output; on the other hand, the microphone 1362 converts the collected sound signals into electrical signals, which are received by the audio circuit 1360 and converted into audio data, which are processed by the audio data output processor 1390 and sent to, for example, another terminal via the radio frequency unit 1310, or the audio data are output to the memory 1320 for further processing, and the audio circuit may also include a headphone jack 1363 for providing a connection interface between the audio circuit and headphones.
WiFi is a short-range wireless transmission technology, and the device 1300 can help users to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 1370, so that wireless broadband Internet access is provided for the users. Although fig. 13 shows a WiFi module 1370, it is understood that it does not belong to the necessary constitution of the apparatus 1300, and can be omitted entirely as required within a range that does not change the essence of the invention.
Bluetooth is a short-range wireless communication technology. By using bluetooth technology, communication between mobile communication terminal devices such as palm computer, notebook computer and mobile phone can be effectively simplified, communication between these devices and Internet (Internet) can be successfully simplified, and data transmission between device 1300 and Internet becomes more rapid and efficient through bluetooth module 1380, thus widening the road for wireless communication. Bluetooth technology is an open scheme that enables wireless transmission of voice and data. However, fig. 13 shows a WiFi module 1370, but it is understood that it does not belong to the necessary constitution of the apparatus 1300, and can be omitted entirely as required within a range not changing the essence of the invention.
The apparatus 1300 further includes a power source 1393 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 1390 via a power management system 1394, such that charge, discharge, and power management functions are performed via the power management system 1394.
The device 1300 also includes an external interface 1397, which may be a standard Micro USB interface, or may enable a multi-pin connector, which may be used to connect the device 1300 to communicate with other devices, or may be used to connect a charger to charge the device 1300.
Although not shown, the apparatus 1300 may further include a camera, a flash, etc., which will not be described herein.
Based on the above embodiments, in the embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the conditional electronic red packet processing method in any of the method embodiments described above.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims and the equivalents thereof, the present invention is also intended to include such modifications and variations.

Claims (13)

1. A conditional electronic red envelope processing method, comprising:
Receiving a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
generating a conditional electronic red packet according to the conditional electronic red packet sending instruction, and sending the conditional electronic red packet to the conditional electronic red packet receiver;
when receiving a request for picking up the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, checking whether the time duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the picking up qualification, and if the current time is confirmed to exceed or reach the picking up time, allowing the conditional electronic red packet receiver and/or the conditional electronic red packet sender with the time duration meeting the picking up qualification to pick up the conditional electronic red packet; the machine duration of the conditional electronic red packet receiver or the conditional electronic red packet sender is as follows: the method comprises the steps of subtracting the screen-lighting time length in the conversation process from the screen-lighting time length of the corresponding terminal from the specified starting time to the retrievable time;
The conditional electronic red packet sending instruction further comprises second instruction information for identifying the red packet mode as a fight mode and the specified starting time;
after the conditional electronic red package is sent to the conditional electronic red package receiver, the method further comprises:
sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, transferring the amount of the preset amount to the conditional electronic red packet, and sending a message that the conditional electronic red packet receiver receives the conditional electronic red packet challenge to the conditional electronic red packet sender; wherein the prescribed start time is later than the time for transferring the deducted amount of the preset amount to the conditional electronic red packet;
if the conditional electronic red packet is sent to a group chat, both the conditional electronic red packet sender and the conditional electronic red packet receiver can get the conditional electronic red packet, and the amount of money in the conditional electronic red packet is randomly distributed to all members meeting the qualification of getting;
The checking whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification, comprising the following steps:
when the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
when the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet receiver does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
2. The method of claim 1, wherein the generating a conditional electronic red envelope specifically comprises:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
3. The method according to claim 1 or 2, wherein the conditional electronic packet sending instruction further includes first indication information identifying that the packet mode is a normal mode; the conditional electronic red package instruction also comprises a time duration threshold;
Checking whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification, specifically including:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
when the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
and when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
4. The method as recited in claim 3, further comprising:
and when the time length of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is larger than the preset proportion of the time length threshold, sending a time length reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
5. The method as recited in claim 1, further comprising:
and if the current time is determined to reach the retrievable time, sending a conditional electronic red packet retrievable reminding message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender.
6. The method as recited in claim 1, further comprising:
if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to be qualified for getting, sending the message of failure to the conditional electronic red packet sender and/or the conditional electronic red packet receiver for too long time.
7. A conditional electronic red envelope processing apparatus, comprising:
the receiving module receives a conditional electronic red packet sending instruction from a conditional electronic red packet sender; wherein, the conditional electronic red packet sending instruction at least comprises the red packet amount, the retrievable time and the conditional electronic red packet receiver;
the generation module is used for generating the conditional electronic red packet according to the conditional electronic red packet sending instruction;
the first sending module is used for sending the conditional electronic red packet to the conditional electronic red packet receiver;
The verification module is used for verifying whether the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meets the qualification for taking when receiving the request for taking the conditional electronic red packet from the conditional electronic red packet receiver and/or the conditional electronic red packet sender, and allowing the machine duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender meeting the qualification for taking if the current time is confirmed to exceed or reach the qualification for taking; the machine duration of the conditional electronic red packet receiver or the conditional electronic red packet sender is as follows: the method comprises the steps of subtracting the screen-lighting time length in the conversation process from the screen-lighting time length of the corresponding terminal from the specified starting time to the retrievable time;
the conditional electronic red packet sending instruction further comprises second instruction information for identifying the red packet mode as a fight mode and the specified starting time;
the first sending module is further configured to, after sending the conditional electronic red packet to the conditional electronic red packet receiver:
Sending a conditional electronic red packet challenge instruction to the conditional electronic red packet receiver, deducting the amount of a preset amount from an account corresponding to the conditional electronic red packet receiver if the conditional electronic red packet receiver receives the conditional electronic red packet challenge, transferring the amount of the preset amount to the conditional electronic red packet, and sending a message that the conditional electronic red packet receiver receives the conditional electronic red packet challenge to the conditional electronic red packet sender; wherein the prescribed start time is later than the time for transferring the deducted amount of the preset amount to the conditional electronic red packet;
if the conditional electronic red packet is sent to a group chat, both the conditional electronic red packet sender and the conditional electronic red packet receiver can get the conditional electronic red packet, and the amount of money in the conditional electronic red packet is randomly distributed to all members meeting the qualification of getting;
the verification module is specifically configured to:
when the time length of the conditional electronic red packet receiver is smaller than that of the conditional electronic red packet sender, the conditional electronic red packet receiver accords with the qualification for getting, and the conditional electronic red packet sender does not accord with the qualification for getting;
When the time length of the conditional electronic red packet receiver is longer than or equal to the time length of the conditional electronic red packet sender, the conditional electronic red packet receiver does not accord with the qualification for getting, and the conditional electronic red packet sender accords with the qualification for getting.
8. The apparatus of claim 7, wherein the generating a conditional electronic red packet, the generating module is specifically configured to:
deducting the amount of the red packet from the account corresponding to the conditional electronic red packet sender, and transferring the amount into the conditional electronic red packet.
9. The apparatus of claim 7 or 8, wherein the conditional electronic packet forwarding instruction further includes first indication information identifying that the packet mode is a normal mode; the conditional electronic red package instruction also comprises a time duration threshold;
the verification module is specifically configured to, when verifying whether the conditional electronic red packet receiver and/or the machine duration of the conditional electronic red packet sender meets the qualification requirement:
when the time length of the conditional electronic red packet receiver is smaller than the time length threshold, the conditional electronic red packet receiver accords with the qualification;
When the time length of the conditional electronic red packet receiver is greater than or equal to the time length threshold, the conditional electronic red packet receiver does not accord with the receiving qualification;
and/or the number of the groups of groups,
when the time length of the conditional electronic red packet sender is smaller than the time length threshold, the conditional electronic red packet sender accords with the qualification;
and when the time length of the conditional electronic red packet sender is greater than or equal to the time length threshold of the time, the conditional electronic red packet sender does not accord with the qualification.
10. The apparatus as recited in claim 9, further comprising:
the first prompting module is used for sending a machine-using duration prompting message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender when the machine-using duration of the conditional electronic red packet receiver and/or the conditional electronic red packet sender is not less than the preset proportion of the machine-using duration threshold value.
11. The apparatus as recited in claim 7, further comprising:
and the second prompting module is used for sending a conditional electronic red packet retrievable prompting message to the conditional electronic red packet receiver and/or the conditional electronic red packet sender if the current time is determined to reach the retrievable time.
12. The apparatus as recited in claim 7, further comprising:
and the third prompting module is used for sending a message of failure to the conditional electronic red packet sender and/or the conditional electronic red packet receiver for too long time if the conditional electronic red packet sender and/or the conditional electronic red packet receiver are determined not to accord with the qualification.
13. A computer-readable storage medium having stored thereon a computer program, characterized by: the computer program implementing the steps of the method according to any of claims 1-6 when executed by a processor.
CN201810814224.4A 2018-07-23 2018-07-23 Conditional electronic red envelope processing method and device Active CN109087081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810814224.4A CN109087081B (en) 2018-07-23 2018-07-23 Conditional electronic red envelope processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810814224.4A CN109087081B (en) 2018-07-23 2018-07-23 Conditional electronic red envelope processing method and device

Publications (2)

Publication Number Publication Date
CN109087081A CN109087081A (en) 2018-12-25
CN109087081B true CN109087081B (en) 2024-01-09

Family

ID=64838156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810814224.4A Active CN109087081B (en) 2018-07-23 2018-07-23 Conditional electronic red envelope processing method and device

Country Status (1)

Country Link
CN (1) CN109087081B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084577A (en) * 2019-04-15 2019-08-02 上海掌门科技有限公司 Resource payment method and equipment
CN111047311A (en) * 2019-12-20 2020-04-21 上海思依暄机器人科技股份有限公司 Data packet distribution control method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677339A (en) * 2015-12-31 2016-06-15 广州华多网络科技有限公司 Virtual gift configuration method and device based on Internet
CN105915437A (en) * 2016-04-14 2016-08-31 浙江翼信科技有限公司 Electronic resource distribution method and apparatus
CN106056369A (en) * 2016-06-02 2016-10-26 财付通支付科技有限公司 Information processing method and device
CN106211074A (en) * 2016-07-28 2016-12-07 深圳市八零年代网络科技有限公司 The distribution method of e-sourcing and distributor
CN106603253A (en) * 2015-10-14 2017-04-26 福州百益百利自动化科技有限公司 Personal red packet delivery method, system and mobile terminal
CN106709705A (en) * 2016-12-30 2017-05-24 腾讯科技(深圳)有限公司 Virtual goods packet sending method, receiving method, devices and system
CN107241265A (en) * 2017-07-07 2017-10-10 苏州沛潭信息科技有限公司 A kind of method that question and answer activity is realized in immediate communication tool
CN107256526A (en) * 2017-05-22 2017-10-17 苏州沛潭信息科技有限公司 A kind of method that gambling activity is realized in immediate communication tool
CN107330738A (en) * 2017-07-06 2017-11-07 广州城北信息科技有限公司 A kind of safranine bag based on bar code and the realization method and system accepted covert payment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160350782A1 (en) * 2015-05-16 2016-12-01 John Wang Method and system for red envelope reward advertisement for social networking systems

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603253A (en) * 2015-10-14 2017-04-26 福州百益百利自动化科技有限公司 Personal red packet delivery method, system and mobile terminal
CN105677339A (en) * 2015-12-31 2016-06-15 广州华多网络科技有限公司 Virtual gift configuration method and device based on Internet
CN105915437A (en) * 2016-04-14 2016-08-31 浙江翼信科技有限公司 Electronic resource distribution method and apparatus
CN106056369A (en) * 2016-06-02 2016-10-26 财付通支付科技有限公司 Information processing method and device
CN106211074A (en) * 2016-07-28 2016-12-07 深圳市八零年代网络科技有限公司 The distribution method of e-sourcing and distributor
CN106709705A (en) * 2016-12-30 2017-05-24 腾讯科技(深圳)有限公司 Virtual goods packet sending method, receiving method, devices and system
CN107256526A (en) * 2017-05-22 2017-10-17 苏州沛潭信息科技有限公司 A kind of method that gambling activity is realized in immediate communication tool
CN107330738A (en) * 2017-07-06 2017-11-07 广州城北信息科技有限公司 A kind of safranine bag based on bar code and the realization method and system accepted covert payment
CN107241265A (en) * 2017-07-07 2017-10-10 苏州沛潭信息科技有限公司 A kind of method that question and answer activity is realized in immediate communication tool

Also Published As

Publication number Publication date
CN109087081A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN110365491A (en) Method for processing business, device, equipment, storage medium and data-sharing systems
CN107172477B (en) Voting method and device
CN105471704B (en) A kind of method, apparatus and system for realizing more people's calls
US20180033096A1 (en) Resource transfer system and method
CN106937158A (en) Live display methods, apparatus and system
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
WO2017088402A1 (en) System, method and device for information interaction
CN107103074B (en) Processing method of shared information and mobile terminal
CN108135033A (en) A kind of Bluetooth connecting method and mobile terminal
CN108616499A (en) A kind of method for authenticating of application program, terminal and computer readable storage medium
EP3499853A1 (en) Ppg authentication method and device
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
CN109816375A (en) The method of payment and device that a kind of barcode scanning payment public transport expense and subway take
CN109087081B (en) Conditional electronic red envelope processing method and device
CN108304477A (en) A kind of document handling method and device
CN108809799B (en) Information sending method, information display method, device and system
CN105721282B (en) Message display method and device
CN104639394B (en) Statistical method, the device and system of client number of users
CN109428871B (en) Defense strategy determination method and device
CN110012150A (en) A kind of message display method and terminal device
CN106603650B (en) Method for sharing position information and terminal equipment
CN110225040A (en) A kind of information processing method, terminal device and server
CN110007836A (en) A kind of bill generation method and mobile terminal
CN108829303A (en) A kind of information processing method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant