2 Star 4 Fork 2

ThinkHalo / GBlog-wxpush

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GBlog-wxpush

介绍

用于GBlog-wx小程序项目的微信推送服务

一、安装

git clone https://gitee.com/ufec/GBlog-wxpush.git
npm install

二、配置

参照下方目录结构中的config说明来配置,其中小程序两个模板的要求如下图: 文章推送

留言推送

!注意:推送模板已经写死,如要更改可见 /utils/schedule.js,但不建议更改,按照上述图片配置即可

如果你想更改halo博客的微信分享功能(寒山主题),如下图所示: 微信分享 可前往Ufec寻求帮助,我只做了寒山主题的修改,其他主题自行处理

三、运行

npm start                //默认端口5000,可在package.json文件中修改
node /utils/schedule.js  //启动定时器程序

四、说明

此项目的小程序端是由fuzui开源的GBlog-wx构成,依托于Halo博客

四、目录结构

├── app.js                   //主程序
├── config                   //配置目录
│   ├── config.js            //主要配置
│   ├── database.js          //数据库配置
│   └── log4js.json          //日志配置
├── db                       //数据库目录
│   ├── collection           //数据模型
│   │   ├── article.js       //文章模型
│   │   └── comment.js       //评论模型
│   └── db.js                //数据库文件
├── log                      //日志目录
├── package.json             
├── routes                   //路由文件目录
│   ├── article.js           //文章路由
│   ├── comment.js           //评论路由
│   ├── getOpenId.js         //获取用户openid路由
│   └── getQRCode.js         //生成小程序码路由
└── utils                    //功能
    ├── getToken.js          //获取微信AccessToken
    ├── log.js               //初始化日志配置
    ├── redis.js             //redis
    ├── schedule.js          //定时器
    ├── sendMsg.js           //下发模板信息
MIT License Copyright (c) 2020 Ufec Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

用于GBlog-wx小程序项目的微信推送服务 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/ufec/GBlog-wxpush.git
git@gitee.com:ufec/GBlog-wxpush.git
ufec
GBlog-wxpush
GBlog-wxpush
master

搜索帮助