diff --git a/README.md b/README.md index c067903..cd1921d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ + windows环境推荐直接打开浏览器扫码或者在控制台出现二维码后打开当前目录```screen.png```进行扫码 + 其他无头浏览环境请配置[pushplus](http://www.pushplus.plus/) 推送进行扫码 + ## 配置文件 ```yaml # 刷课模式,默认为3, diff --git a/lib/tg.go b/lib/tg.go index 9479029..57112f7 100644 --- a/lib/tg.go +++ b/lib/tg.go @@ -207,7 +207,7 @@ func study(bot *Telegram, args []string) { pw: nil, browser: nil, context: nil, - ShowBrowser: false, + ShowBrowser: true, Push: func(kind string, message string) { switch { case kind == "image": @@ -223,6 +223,7 @@ func study(bot *Telegram, args []string) { } }, } + core.Init() defer core.Quit() core.LearnArticle(cookies) core.LearnVideo(cookies)