利用测试号来给自己的微信推送消息。
git clone https://github.com/songquanpeng/wechat-message-push.git。npm i。npm i -g pm2。nginx.conf 中的域名以及端口号,并创建软链接:sudo ln -s ./nginx.conf /etc/nginx/site-enabled/wechat-push-service.confsudo certbot --nginx。sudo service nginx restart。https://你的域名/verify,TOKEN 随意,之后点击验证。{{text.DATA}},提交后可以拿到 TEMPLATE_ID。pm2 start ./app.js --name wechat-message-push-service。https://你的域名/Hi 或 https://你的域名/push?content=Hi,如果你的微信能够收到一条内容为 Hi 的模板消息,则配置成功。