更新文档
This commit is contained in:
parent
563b8235cb
commit
ae08074db3
|
@ -2,7 +2,7 @@
|
||||||
+ [推送参考](./push.md)
|
+ [推送参考](./push.md)
|
||||||
+ [常见问题](./problem.md)
|
+ [常见问题](./problem.md)
|
||||||
|
|
||||||
## 使用
|
## 使用<!-- {docsify-ignore} -->
|
||||||
|
|
||||||
+ [Windows使用](./windows/index.md)
|
+ [Windows使用](./windows/index.md)
|
||||||
+ [Linux使用](./linux/index.md)
|
+ [Linux使用](./linux/index.md)
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!-- _coverpage.md -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# study_xxqg
|
||||||
|
|
||||||
|
> 一个解放双手的强国自动化助手
|
||||||
|
|
||||||
|
- 每日40-45分
|
||||||
|
- cookie保存时间长
|
||||||
|
- 支持多种推送方式
|
||||||
|
|
||||||
|
[GitHub](https://github.com/johlanse/study_xxqg)
|
||||||
|
[Get Started](/README)
|
|
@ -0,0 +1,9 @@
|
||||||
|
* [Study_xxqg](/README)
|
||||||
|
* [开始使用](/README)
|
||||||
|
* [Windows运行](./windows/index)
|
||||||
|
* [linux运行](./linux/index)
|
||||||
|
* [源码运行](./custom/index)
|
||||||
|
* [推送配置](./push.md)
|
||||||
|
* [配置文件](./config.md)
|
||||||
|
* [常见问题](./problem.md)
|
||||||
|
* [加群交流](https://t.me/+VWI88z6d1k45NGJl)
|
|
@ -1,4 +1,4 @@
|
||||||
## 配置文件
|
## 配置文件<!-- {docsify-ignore} -->
|
||||||
```yaml
|
```yaml
|
||||||
# 刷课模式,默认为3,
|
# 刷课模式,默认为3,
|
||||||
# 1:只刷文章何视频
|
# 1:只刷文章何视频
|
||||||
|
|
|
@ -10,11 +10,7 @@
|
||||||
+ 再任意终端输入一下命令
|
+ 再任意终端输入一下命令
|
||||||
```yaml
|
```yaml
|
||||||
cd study_xxqg
|
cd study_xxqg
|
||||||
|
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
go build ./
|
go build ./
|
||||||
|
|
||||||
./study_xxqg
|
./study_xxqg
|
||||||
|
|
||||||
```
|
```
|
|
@ -1,4 +1,4 @@
|
||||||
## 常见问题
|
## 常见问题<!-- {docsify-ignore} -->
|
||||||
|
|
||||||
+ ### windows打开**study_xxqg.exe**出现直接闪退
|
+ ### windows打开**study_xxqg.exe**出现直接闪退
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -83,7 +83,12 @@ study_xxqg进程会在运行的时候将pid输出到目录下的pid.pid文件,
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
在debian11的系统上解决方式为:
|
~~在debian11的系统上解决方式为:~~
|
||||||
```
|
|
||||||
sudo apt-get install -y libx11-xcb1 && apt-get install -y libgtk-3-0 && apt-get install -y libxt6 && apt-get install -y libdbus-glib-1.2
|
使用docker可以快速解决
|
||||||
```
|
|
||||||
|
[//]: # (```)
|
||||||
|
|
||||||
|
[//]: # (sudo apt-get install -y libx11-xcb1 && apt-get install -y libgtk-3-0 && apt-get install -y libxt6 && apt-get install -y libdbus-glib-1.2)
|
||||||
|
|
||||||
|
[//]: # (```)
|
15
docs/push.md
15
docs/push.md
|
@ -1,4 +1,17 @@
|
||||||
## 推送配置
|
## 推送配置<!-- {docsify-ignore} -->
|
||||||
|
|
||||||
|
*一共有以下五种推送方式*
|
||||||
|
+ 微信公众号测试号推送
|
||||||
|
+ 网页推送
|
||||||
|
+ telegram推送
|
||||||
|
+ 微信pushPlus推送
|
||||||
|
+ 钉钉推送
|
||||||
|
|
||||||
|
> 其中pushPlus和钉钉推送相互冲突,因为两种推送模式都只能单方面配合定时运行功能使用,只能接收消息,不能发送消息;
|
||||||
|
|
||||||
|
> 在公众号测试号和tg推送以及定时三种只要配置了任意一种,程序将自动卡住等待用户指令。
|
||||||
|
>
|
||||||
|
> 若您想打开程序就运行,请关闭这三项配置;当前程序默认开启cron定时,所以新版若不想程序一直等待则关闭cron即可。
|
||||||
|
|
||||||
### 微信公众号推送
|
### 微信公众号推送
|
||||||
配置config.yml的如下部分
|
配置config.yml的如下部分
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/huoxue1/study_xxqg
|
module github.com/johlanse/study_xxqg
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ import (
|
||||||
goqrcode "github.com/skip2/go-qrcode"
|
goqrcode "github.com/skip2/go-qrcode"
|
||||||
"golang.org/x/image/bmp"
|
"golang.org/x/image/bmp"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
|
|
|
@ -16,8 +16,8 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/mxschmitt/playwright-go"
|
"github.com/mxschmitt/playwright-go"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -14,8 +14,8 @@ import (
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetUserInfo
|
// GetUserInfo
|
||||||
|
|
14
main.go
14
main.go
|
@ -15,13 +15,13 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
easy "github.com/t-tomalak/logrus-easy-formatter"
|
easy "github.com/t-tomalak/logrus-easy-formatter"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
// "github.com/huoxue1/study_xxqg/gui"
|
// "github.com/johlanse/study_xxqg/gui"
|
||||||
"github.com/huoxue1/study_xxqg/lib"
|
"github.com/johlanse/study_xxqg/lib"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
"github.com/huoxue1/study_xxqg/push"
|
"github.com/johlanse/study_xxqg/push"
|
||||||
"github.com/huoxue1/study_xxqg/utils/update"
|
"github.com/johlanse/study_xxqg/utils/update"
|
||||||
"github.com/huoxue1/study_xxqg/web"
|
"github.com/johlanse/study_xxqg/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -15,8 +15,8 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/push"
|
"github.com/johlanse/study_xxqg/push"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"github.com/imroc/req/v3"
|
"github.com/imroc/req/v3"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
func PushMessage(title, content, message, pushID string) error {
|
func PushMessage(title, content, message, pushID string) error {
|
||||||
|
|
|
@ -3,7 +3,7 @@ package push
|
||||||
import (
|
import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetPush(config conf.Config) func(kind string, message string) {
|
func GetPush(config conf.Config) func(kind string, message string) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/lib"
|
"github.com/johlanse/study_xxqg/lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 该文件的方法为保存当前正在学习的用户
|
// 该文件的方法为保存当前正在学习的用户
|
||||||
|
|
|
@ -14,11 +14,11 @@ import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/lib"
|
"github.com/johlanse/study_xxqg/lib"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
"github.com/huoxue1/study_xxqg/push"
|
"github.com/johlanse/study_xxqg/push"
|
||||||
"github.com/huoxue1/study_xxqg/utils"
|
"github.com/johlanse/study_xxqg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/utils"
|
"github.com/johlanse/study_xxqg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 将静态文件嵌入到可执行程序中来
|
// 将静态文件嵌入到可执行程序中来
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"github.com/johlanse/wechat/mp/request"
|
"github.com/johlanse/wechat/mp/request"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/conf"
|
"github.com/johlanse/study_xxqg/conf"
|
||||||
"github.com/huoxue1/study_xxqg/lib"
|
"github.com/johlanse/study_xxqg/lib"
|
||||||
"github.com/huoxue1/study_xxqg/model"
|
"github.com/johlanse/study_xxqg/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in New Issue