Skip to content

Commit

Permalink
docs: 更新文档介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Aug 26, 2022
1 parent c9e2384 commit 1836bcb
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Q&A.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<details>
<summary>为什么需要redis缓存</summary>
因为天气的接口只有500次免费,超过500次就要付费了,做缓存是为了减少请求次数。
缓存微信的access_token。~~因为天气的接口只有500次免费,超过500次就要付费了,做缓存是为了减少请求次数。~~
</details>

<details>
Expand Down
39 changes: 3 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,47 +79,14 @@ npm run start
![如图](./gitPic/template.jpg)

## 关于定时推送
> `app/schedule/sendTemplate.js`目前是通过eggjs的定时任务实现的, 在linux, window以及mac下都可以正常运行。目前配置是每天8点推送,[cron表达式请看](http://cron.ciding.cc/)。下面是利用window配置批处理文件执行发送(打不开图片的可以把下面下载下去,在gitPic目录看t0-t10的图片)
> `app/schedule/sendTemplate.js`目前是通过eggjs的定时任务实现的, 在linux, window以及mac下都可以正常运行。目前配置是每天8点推送,[cron表达式请看](http://cron.ciding.cc/)
+ 因为不需要用node的定时任务,所以我们先注释
[<font size="4" color="#f34250">window用户可以点击这个教程利用win自身的计划任务程序执行脚本推送消息</font>](https://juneqiu.gitee.io/blog_build/blogs/other/winPlanWork.html)

![](./gitPic/t0.jpg)

+ 找到window的控制面板在控制面板中找到管理工具
+ 因为不需要用node的定时任务,所以我们先把app/schedule下的`sendTemplate.js`删了

![](./gitPic/t1.jpg)

+ 创建基本任务

![](./gitPic/t3.jpg)

+ 创建基本任务02

![](./gitPic/t4.jpg)

+ 配置任务向导

![](./gitPic/t5.jpg)

+ 配置任务向导02

![](./gitPic/t6.jpg)

+ 启动程序

![](./gitPic/t7.jpg)

+ 配置bat目录

![](./gitPic/t8.jpg)

+ 创建任务完成

![](./gitPic/t9.jpg)

+ 在属性配置执行权限

![](./gitPic/t10.jpg)

## 需要申请的第三方api
+ 高德天气[点这里](https://lbs.amap.com/api/webservice/guide/api/weatherinfo)
Expand Down
Binary file removed gitPic/t0.jpg
Binary file not shown.
Binary file removed gitPic/t1.jpg
Binary file not shown.
Binary file removed gitPic/t10.jpg
Binary file not shown.
Binary file removed gitPic/t2.jpg
Binary file not shown.
Binary file removed gitPic/t3.jpg
Binary file not shown.
Binary file removed gitPic/t4.jpg
Binary file not shown.
Binary file removed gitPic/t5.jpg
Binary file not shown.
Binary file removed gitPic/t6.jpg
Binary file not shown.
Binary file removed gitPic/t7.jpg
Binary file not shown.
Binary file removed gitPic/t8.jpg
Binary file not shown.
Binary file removed gitPic/t9.jpg
Binary file not shown.
11 changes: 1 addition & 10 deletions sendTemplate.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
CHCP 65001
@echo off

echo '执行中~~~~~~~~~~~~~~~~~~~~~~~~'

curl https://3k2j857423.goho.co/sendNotify -X POST

echo '执行完成~~~~~~~~~~~~~~~~~~~~~~~~'

exit
curl https://3k2j857423.goho.co/sendNotify -X POST

0 comments on commit 1836bcb

Please sign in to comment.