Open source version: v2
https://mssnn.cn
An open source third-party graphics and text applet that pushes you a beautiful photo and text every day.
In a complex world, one is enough.
The mini program needs to connect to the back-end data API+vPush push API domain name, so the request domain name needs to be set on the WeChat public platform.
First, you need to activate the vpush push platform. Please enter: https://your mini program appId.mssnn.cn to register and log in to the Guren Cloud mini program console.
Then, enter the WeChat public platform, go to Development->Development Settings, set the domain name, and fill in the following configuration in the request:
For small programs, you only need to configure vpush in app.js
Very simple! Click app.js
to edit, and then enter your mini program appId in the initialization operation of vPush!
If you need the user to click on the contact feedback menu to enter the complaint interface:
TUCAO_ID
variable in app.js
with your Tucao product IDIf you do not need the complaint function, click to enter the customer service chat interface, please leave it blank.
Enter the Guren Cloud applet development platform, then create a task script (nodejs), add superagent
to the module, copy the content of the server_push.js
file in the code, and then set it according to the situation. Keep the default to push at 09:10 every morning.
First, create a push API:
Then, in the task script, add the module:
Next, paste the code:
Note: Here, we need to change the push API address + key in the code to the push API we created above
Finally, configuration time:
After creation, click the run button to achieve automatic push every day! !
At present, the sharing function is not perfect yet, so you can participate in the project and develop it together.
The push platform comes from: Gurenyun Mini Program.