# node-pushCard **Repository Path**: james_f/node-push-card ## Basic Information - **Project Name**: node-pushCard - **Description**: 云函数 版本 测试号推送消息卡片 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-05-15 - **Last Updated**: 2023-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 云函数 版本 测试号推送消息卡片 #### 所需地址 测试号地址 https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index 天气接口文档 https://yiketianqi.com/index/doc?version=day 云函数地址 https://console.cloud.tencent.com/scf/list #### 使用说明 替换配置文件中测试号所需 appid,templateIdOne,secret,openId ### 注意 云函数需要注意的是定时任务因为时区的不同,存在8个小时的误差 可在定时任务里计算好在填写 app.js ```javascript // 定时任务配置 const config = { interval: 1, //间隔天数,间隔为整数 runNow: true, //是否立即运行 time: '08:30:00', //执行的时间点 时在0~23之间 } ``` 本机电脑 云函数 10:10:00 --------- Thu Aug 25 02:10:03 UTC 2022 如果有自己的服务器可选择部署在自己服务器上 地址https://github.com/liudonjun/node-pushCard 服务器需要有node环境,pm2 node服务管理工具 #### 目录结构 ```javascript node-pushCard ├─ .prettierrc ├─ app.js 配置颜色值 ├─ package.json ├─ README.md ├─ scf_bootstrap ├─ src │ ├─ api │ │ └─ manage.js │ ├─ config │ │ ├─ Birthday.js 农历生日配置 │ │ ├─ Dto.js │ │ └─ index.js 配置文件 │ └─ util │ ├─ index.js │ └─ request.js └─ template └─ template.md 模板demo ``` ### 效果预览