Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a WeChat applet message pushing method, a storage medium, electronic equipment and a system, which can push messages according to user requirements and avoid the influence of blindly pushing messages on user experience. In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for pushing a wechat applet message, where the method includes a user terminal acquiring live broadcast activity preview information of a wechat applet; the user terminal acquires operation information of a user at a preset position of the live activity preview information of the wechat applet, and sends live activity registration information of the wechat applet to a server according to the operation information; when the pushing time of the live activity of the WeChat applet registered by the user reaches, the server judges whether form _ id submitted by the user exists or not; and if so, the server pushes the live activity message of the WeChat applet to the user terminal according to the form _ id.
Optionally, after the server pushes the message to the user according to the form _ id, the used form _ id is marked, and the marked form _ id is invalid.
Optionally, the user terminal obtains operation information of the user on a wechat applet preset page, and submits the form _ id to the server according to the operation information of the wechat applet preset page.
Optionally, the server saves the form _ id and then fails after the form _ id exceeds a preset time.
Optionally, if the number of the valid form _ ids submitted by the user terminal received by the server is less than or equal to a preset threshold, the server stores all the valid form _ ids submitted by the user terminal; and if the number of the valid form _ ids submitted by the user terminal received by the server is larger than a preset threshold, the server saves the valid form _ ids with the preset threshold number according to the failure time of the form _ ids.
Optionally, if yes, the server pushing the message to the user according to the form _ id specifically includes: if yes, the server judges the failure time of the form _ id, selects the form _ id with the failure time closest to the current time, and pushes the message to the user terminal. Optionally, if there is no form _ id submitted by the user, the message is not pushed to the user.
In a second aspect, an embodiment of the present invention further provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method in the embodiment of the first aspect.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement the method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a wechat applet message pushing system, which includes: a user terminal, the user terminal comprising: the acquisition module is used for acquiring the live broadcast activity forecast information of the WeChat applet; the registration module is used for acquiring operation information of a user at a preset position of the live activity preview information of the wechat applet and sending the live activity registration information of the wechat applet to a server according to the operation information; the server, the server comprising: the judging module is used for judging whether form _ id submitted by a user exists or not when the pushing time of the live activity of the WeChat applet registered by the user arrives; and the processing module is used for pushing the live activity message of the WeChat small program to the user terminal according to the form _ id when the judgment module judges that the form _ id submitted by the user exists.
Optionally, the server further includes a marking module, after the message is pushed to the user according to the form _ id, marking the used form _ id, where the marked form _ id is invalid.
Optionally, the user terminal further includes an analysis module, which obtains operation information of the user on a wechat applet preset page, and submits the form _ id to the server according to the operation information of the wechat applet preset page.
Optionally, the server further includes a storage module, which stores the form _ id submitted by the analysis module, where the form _ id is invalid after the server stores a preset time.
Optionally, the storage module is configured to, if the number of the valid form _ ids submitted by the analysis module and received by the server is less than or equal to a preset threshold, store, by the server, all the valid form _ ids submitted by the user; and if the number of the valid form _ ids submitted by the user and received by the server is larger than a preset threshold, the server saves the valid form _ ids with the preset threshold number according to the failure time of the form _ ids.
Optionally, the processing module, when the determining module determines that there is a form _ id submitted by the user, determines failure time of the form _ id, and selects a form _ id with failure time closest to the current time to push the message to the user.
Optionally, when the determining module determines that there is no form _ id submitted by the user, the processing module does not push the message to the user.
Compared with the prior art, the invention has the advantages that:
(1) according to the method, the storage medium, the electronic equipment and the system for pushing the message of the live activity of the WeChat applet, the message pushing of the live activity of the WeChat applet can be pushed in the activity pushing time only when the user registers the activity, so that a large number of messages which are not interested by the user are prevented from being pushed, and the user experience and the good sensitivity are reduced.
(2) The method, the storage medium, the electronic equipment and the system for pushing the message of the WeChat small program to the user terminal push the live broadcast activity of the WeChat small program according to the available form _ id stored by the server, so that the user can freely control the number of messages for receiving the live broadcast activity of the WeChat small program within a certain time period, avoid receiving excessive message push within the same time period,
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
Example one
A first embodiment of the present invention provides a method for pushing a wechat applet, as shown in fig. 1, including:
a user terminal acquires live broadcast activity preview information of a WeChat applet;
the method comprises the steps that a user terminal obtains operation information of a user at a preset position of live activity preview information of a WeChat small program, and sends registration information of live activity of the WeChat small program to a server according to the operation information;
when the push time of the live activity of the WeChat applet registered by the user reaches, the server judges whether form _ id submitted by the user exists or not;
and if so, the server pushes the live activity message of the WeChat applet to the user terminal according to the form _ id.
Specifically, in this embodiment, after entering the live-broadcast WeChat applet, the user browses preview information of a live-broadcast activity related to the live-broadcast WeChat applet, and if the user is interested in a certain previewed live-broadcast activity, the user may operate at a preset position of the preview information to register to participate in the live-broadcast activity, for example, a new head, a middle or a bottom of a preview page of the live-broadcast activity has a click point for registering the live-broadcast activity or participating in the live-broadcast activity. After the user clicks and selects to participate in the live broadcast activity, the user terminal sends registration information of the live broadcast activity of the WeChat small program to the server, and the server records the registration information after receiving the live broadcast activity of the WeChat small program. When the live broadcast activity registered and participated by the user reaches the push time, namely a certain time before the live broadcast activity is about to start, the server searches and judges whether form _ id submitted by the user is stored, if so, the server pushes a message about the start of the live broadcast activity to a terminal of the user through the form _ id according to the record carried out after the registration information of the WeChat small program live broadcast activity is received before, and reminds the user to participate on time.
In the invention, the pushing of the live activity message of the wechat applet can be carried out on the user only when the live activity registration is carried out and the form _ id submitted by the user exists, so that on one hand, the live activity message of the wechat applet pushed to the user is ensured to be the wechat applet which the user is interested in and willing to participate in, on the other hand, the user can control the pushing quantity of the live activity message received by the user by controlling the quantity of the submitted form _ id, and the excessive message pushing received in the same time period is avoided.
Based on the same inventive concept, the present application provides the second embodiment, which is as follows.
Example two
A second embodiment of the present invention provides a method for pushing a wechat applet, as shown in fig. 2, including:
the method comprises the steps that a user terminal obtains operation information of a user on a preset page of a WeChat small program, and a form _ id is submitted to a server according to the operation information of the preset page of the WeChat small program, wherein the form _ id is invalid after the preset time length is stored in the server;
if the number of the effective form _ ids submitted by the user terminals received by the server is less than or equal to a preset threshold, the server stores the effective form _ ids submitted by all the user terminals;
if the number of the valid form _ ids submitted by the user terminal and received by the server is larger than a preset threshold, the server saves the valid form _ ids with the preset threshold number according to the failure time of the form _ ids;
a user terminal acquires live broadcast activity preview information of a WeChat applet;
the method comprises the steps that a user terminal obtains operation information of a user at a preset position of live activity preview information of a WeChat small program, and sends registration information of live activity of the WeChat small program to a server according to the operation information;
when the push time of the live activity of the WeChat applet registered by the user reaches, the server judges whether form _ id submitted by the user exists or not;
if the server has the form _ id submitted by the user terminal, the server judges the failure time of the form _ id, selects the form _ id with the failure time closest to the current time to push a message to the user terminal, marks the used form _ id, and marks the marked form _ id to be failed;
and if the server does not have the form _ id submitted by the user terminal, not pushing the message to the user terminal.
Specifically, in this embodiment, form _ id is used as a user behavior identifier, and declares that a template message (push message) needs to be sent when a user has a submission behavior, and at this time, by clicking a button to submit a form, form _ id can be obtained. When the server needs to send the template message to the user terminal, form _ id is used for informing the corresponding user server of sending the template message. Each form _ id has a validity period, and can be used once when a message is sent within the validity period, and a user can generate a new form _ id every time the user submits, wherein each form _ id does not influence each other.
After a user enters a live WeChat applet, clicking operation is carried out on a preset page of the live WeChat applet to submit form _ id to a server, the server pushes a message to a user terminal through the form _ id, the form _ id has a certain validity period, and after the validity period, the form _ id is marked as invalid, and even if the form _ id is not used, the form _ id cannot be used after the validity period. Due to the fact that user misoperation and operating system reflection may exist, a user may repeatedly submit form _ id to a server for multiple times in a short time, and considering the reasons that the number of users is large, the submitted form _ id is too many, and the storage space of the server is limited, the server only stores a preset threshold number of valid form _ ids for each user. And if the number of the valid form _ ids submitted by the users and received by the server is less than or equal to a preset threshold, the server saves the valid form _ ids submitted by all the users. If the number of the valid form _ ids submitted by the user and received by the server is larger than the preset threshold, the server only stores the valid form _ ids with the preset threshold number, and selects the stored form _ ids according to the failure time arrangement sequence of the form _ ids, so as to ensure that the failure time of the stored form _ ids with the preset threshold number is the farthest from the current time in the valid form _ ids, i.e. the remaining validity period is the longest. The user can submit form _ id to the server at any time, and the form _ id has no precedence relation with the user registration and participation in the live broadcast activity of the WeChat applet.
The user browses preview information of related live activities of live WeChat applets, if the user is interested in a certain previewed live activity, the user can operate at a preset position of the preview information to register and participate in the live activity, for example, the live activity preview page is at a new head position, the middle or the bottom of the live activity preview page is provided with a click position for registering or participating in the live activity. After the user clicks and selects to participate in the live broadcast activity, the user terminal sends registration information of the live broadcast activity of the WeChat small program to the server, and the server records the registration information after receiving the live broadcast activity of the WeChat small program. When the activity registered and participated by the user reaches the pushing time, namely a certain time before the activity is about to start, the server searches and judges whether form _ id submitted by the user is stored, if so, the server judges the failure time of the form _ id, selects the form _ id with the failure time closest to the current time, and then sends the message about the start of the activity to the user through the form _ id according to the record carried out after the registration information of the live activity of the WeChat applet is received before, so as to remind the user to participate on time, then marks the form _ id as used, and the marked form _ id is also failed and can not be used.
And when the activity in which the user registers to participate reaches the push time but the server searches for the form _ id which is not available to the user, not pushing the live activity message of the WeChat applet to the user. That is to say, when the number of the live activities of the wechat applets registered and participated by the user is greater than the valid form _ id stored by the server, and the user does not submit a new form _ id afterwards, then there is a possibility that some message users of the live activities of the wechat applets do not receive push, the message push principle of the live activities of the wechat applets is to push according to the sequence of push time, push time is before push, push time is after push, and messages of the live activities of the wechat applets with the later push time are not pushed. Therefore, in order to avoid this situation, the user can select to display the number of valid form _ ids stored by the server and the number of live activities of the wechat applet in which the user registers to participate in the wechat applet, so that the user can submit new form _ ids in time. And when the server needs to push the live activity message of the WeChat applet to the user terminal, if no available form _ id is detected, sending a prompt message to the user terminal.
Various modifications and specific examples in the foregoing method embodiments are also applicable to the system of the present embodiment, and the detailed description of the method is clear to those skilled in the art, so that the detailed description is omitted here for the sake of brevity.
Based on the same inventive concept, the present application provides the third embodiment.
EXAMPLE III
A third embodiment of the invention provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out all or part of the method steps of the first embodiment.
The present invention can implement all or part of the flow in the method of the first embodiment, and can also be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Based on the same inventive concept, the present application provides the fourth embodiment.
Example four
The fourth embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the first embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
EXAMPLE five
The fifth embodiment of the present invention further provides a wechat applet message pushing system 1000, as shown in fig. 3, including:
user terminal 1100, user terminal 1100 includes:
the acquisition module 1110 is used for acquiring the preview information of the live activities of the wechat applet;
the registration module 1120 is used for acquiring the operation information of the user at the preset position of the live activity forecast information of the wechat applet and sending the live activity registration information of the wechat applet to the server according to the operation information;
the server 1200, the server 1200 includes:
the judging module 1210 is used for judging whether a form _ id submitted by a user exists or not when the pushing time of the live activity of the wechat applet registered by the user arrives;
the processing module 1220, when the determining module 1210 determines that there is a form _ id submitted by the user, pushes a live activity message of the WeChat applet to the user terminal 1100 according to the form _ id.
Specifically, in this embodiment, after the user enters the live WeChat applet, a click operation is performed on a preset page of the live WeChat applet to submit a form _ id to the server, the server pushes a message to the user terminal through the form _ id, the form _ id has a certain validity period, and after the validity period elapses, the form _ id is marked as invalid, and even if the form _ id is not used, the form _ id cannot be used after the validity period elapses. Due to the fact that user misoperation and operating system reflection may exist, a user may repeatedly submit form _ id to a server for multiple times in a short time, and considering the reasons that the number of users is large, the submitted form _ id is too many, and the storage space of the server is limited, the server only stores a preset threshold number of valid form _ ids for each user. And if the number of the valid form _ ids submitted by the users and received by the server is less than or equal to a preset threshold, the server saves the valid form _ ids submitted by all the users. If the number of the valid form _ ids submitted by the user and received by the server is larger than the preset threshold, the server only stores the valid form _ ids with the preset threshold number, and selects the stored form _ ids according to the failure time arrangement sequence of the form _ ids, so as to ensure that the failure time of the stored form _ ids with the preset threshold number is the farthest from the current time in the valid form _ ids, i.e. the remaining validity period is the longest. The user can submit form _ id to the server at any time, and the form _ id has no precedence relation with the user registration and participation in the live broadcast activity of the WeChat applet.
The user browses preview information of related live activities of live WeChat applets, if the user is interested in a certain previewed live activity, the user can operate at a preset position of the preview information to register and participate in the live activity, for example, the live activity preview page is at a new head position, the middle or the bottom of the live activity preview page is provided with a click position for registering or participating in the live activity. After the user clicks and selects to participate in the live broadcast activity, the user terminal sends registration information of the live broadcast activity of the WeChat small program to the server, and the server records the registration information after receiving the live broadcast activity of the WeChat small program. When the activity registered and participated by the user reaches the pushing time, namely a certain time before the activity is about to start, the server searches and judges whether form _ id submitted by the user is stored, if so, the server judges the failure time of the form _ id, selects the form _ id with the failure time closest to the current time, and then sends the message about the start of the activity to the user through the form _ id according to the record carried out after the registration information of the live activity of the WeChat applet is received before, so as to remind the user to participate on time, then marks the form _ id as used, and the marked form _ id is also failed and can not be used.
And when the activity in which the user registers to participate reaches the push time but the server searches for the form _ id which is not available to the user, not pushing the live activity message of the WeChat applet to the user. That is to say, when the number of the live activities of the wechat applets registered and participated by the user is greater than the valid form _ id stored by the server, and the user does not submit a new form _ id afterwards, then there is a possibility that some message users of the live activities of the wechat applets do not receive push, the message push principle of the live activities of the wechat applets is to push according to the sequence of push time, push time is before push, push time is after push, and messages of the live activities of the wechat applets with the later push time are not pushed. Therefore, in order to avoid this situation, the user can select to display the number of valid form _ ids stored by the server and the number of live activities of the wechat applet in which the user registers to participate in the wechat applet, so that the user can submit new form _ ids in time. And when the server needs to push the live activity message of the WeChat applet to the user terminal, if no available form _ id is detected, sending a prompt message to the user terminal.
In the invention, the push of the live activity message of the WeChat applet can be carried out on the user only when the activity registration is carried out and the form _ id submitted by the user exists, so that on one hand, the live activity message of the WeChat applet pushed to the user is ensured to be the WeChat applet which the user is interested in and willing to participate in, on the other hand, the user can control the number of the received activity message push by the user by controlling the number of the submitted form _ id, and the excessive message push received in the same time period is avoided.
Generally, compared with the conventional technology and the like, the wechat applet message pushing method, the storage medium, the electronic device and the system provided by the embodiment of the invention can push messages according to user requirements through more characteristics, so that the influence of blindly pushing messages on user experience is avoided.
As will be appreciated by one skilled in the art, 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, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.