Skip to content

Commit

Permalink
精简了一些依赖,完善了文档
Browse files Browse the repository at this point in the history
  • Loading branch information
johlanse committed Sep 22, 2022
1 parent b866219 commit 2bbcbed
Show file tree
Hide file tree
Showing 17 changed files with 141 additions and 405 deletions.
2 changes: 1 addition & 1 deletion conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/mitchellh/mapstructure"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Config
Expand Down
4 changes: 2 additions & 2 deletions docs/linux/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

+ 本地访问[Releases]([Release](https://github.com/johlanse/study_xxqg/releases)) ,查找对应版本并复制链接
+ 使用wget下载对应版本压缩包
+ > tag -xzvf study_xxqg_linux_amd64.tag.gz
+ 运行 ```./study_xxqg```,首次运行会生成默认配置文件
+ > tar -xzvf study_xxqg_linux_amd64.tag.gz
+ 运行 ```./study_xxqg --init```,首次运行会生成默认配置文件
+ 使用vim修改对应配置文件,linux建议使用tg模式运行,详情配置参考[配置](../config.md),推送方式查看[push](../push.md)
+ 再次运行即可

Expand Down
41 changes: 12 additions & 29 deletions docs/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
然后查看报错内容截图并在[github](https://github.com/johlanse/study_xxqg/issues) 提交issue
```

+ ### web端账号密码
```yaml
web端账号密码默认都是admin,不是你学习强国的手机号,需要修改可自行修改配置文件
```

+ ### 关于cookie的时间问题
```yaml
Expand All @@ -31,13 +35,6 @@
如果你想让访问间隔时间更短或者更长,可以通过添加环境变量 CHECK_ENV 为cron值
```

+ ### 浏览器中登录不上怎么办?显示一个白条没反应

```yaml
浏览器登录是使用的study_xxqg的配置文件中的账号密码,
是为了防止滥用,不是强国的账号密码,需要更改直接修改
config.yml文件然后重启就可以
```

+ ### windows下出现找不到浏览器的问题

Expand All @@ -55,9 +52,9 @@ config.yml文件然后重启就可以

apt-get install chromium

ln -s /usr/bin/chromium ~/.cache/ms-playwright/chromium-907428/chrome-linux/chrome
ln -s /usr/bin/chromium ./tools/browser/chromium-978106/chrome-linux/chrome

ln -s /usr/bin/node ~/.cache/ms-playwright-go/1.14.0/node
ln -s /usr/bin/node ./tools/driver/ms-playwright-go/1.20.0-beta-1647057403000/node
```


Expand Down Expand Up @@ -95,30 +92,16 @@ study_xxqg进程会在运行的时候将pid输出到目录下的pid.pid文件,
Missing libraries are:
libgtk-3.so.0
libgdk-3.so.0
libX11-xcb.so.1
libXcomposite.so.1
libXcursor.so.1
libXdamage.so.1
libXfixes.so.3
libXi.so.6
libXrender.so.1
libpangocairo-1.0.so.0
libpango-1.0.so.0
libharfbuzz.so.0
libatk-1.0.so.0
libcairo-gobject.so.2
libcairo.so.2
libgdk_pixbuf-2.0.so.0
libdbus-glib-1.so.2
libxcb-shm.so.0
libpangoft2-1.0.so.0
libXt.so.6
```
```shell
sudo ./tools/driver/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh install-deps

```

> 若运行后显示未找到apt-get,可百度对应系统安装apt-get的方法
~~在debian11的系统上解决方式为:~~

使用docker可以快速解决


+ ### 为什么运行了就卡住了
Expand Down
40 changes: 15 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,35 @@ replace github.com/willf/bitset v1.2.1 => github.com/bits-and-blooms/bitset v1.2

require (
github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f
github.com/DaRealFreak/colored-nested-formatter v1.0.0
github.com/Lyrics-you/sail-logrus-formatter v1.3.1
github.com/dustin/go-humanize v1.0.0
github.com/fsnotify/fsnotify v1.5.4
github.com/gin-gonic/gin v1.7.1
github.com/gin-gonic/gin v1.8.1
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.4.0-beta.0
github.com/google/uuid v1.3.0
github.com/guonaihong/gout v0.2.9
github.com/imroc/req/v3 v3.8.2
github.com/johlanse/wechat v0.0.0-20220909140933-49a96a4c0412
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/klauspost/compress v1.15.5
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
github.com/makiuchi-d/gozxing v0.1.1
github.com/mitchellh/mapstructure v1.5.0
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/playwright-community/playwright-go v0.2000.1
github.com/robfig/cron/v3 v3.0.0
github.com/sirupsen/logrus v1.9.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
github.com/spf13/viper v1.12.0
github.com/tidwall/gjson v1.12.1
golang.org/x/image v0.0.0-20211028202545-6944b10bf410
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
modernc.org/sqlite v1.15.2
)

require (
github.com/Lyrics-you/sail-logrus-formatter v1.3.1 // indirect
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/go-playground/validator/v10 v10.5.0 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/validator/v10 v10.11.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/goccy/go-json v0.9.11 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
Expand All @@ -52,13 +45,11 @@ require (
github.com/lestrrat-go/strftime v1.0.5 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/spf13/afero v1.8.2 // indirect
Expand All @@ -68,19 +59,18 @@ require (
github.com/subosito/gotenv v1.3.0 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/ugorji/go/codec v1.2.5 // indirect
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 // indirect
golang.org/x/mod v0.4.1 // indirect
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.0 // indirect
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v3 v3.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
lukechampine.com/uint128 v1.1.1 // indirect
modernc.org/cc/v3 v3.35.24 // indirect
modernc.org/ccgo/v3 v3.15.17 // indirect
Expand Down
Loading

0 comments on commit 2bbcbed

Please sign in to comment.