Skip to content

Commit

Permalink
update: update core and fixed document type brush
Browse files Browse the repository at this point in the history
  • Loading branch information
Changbaiqi committed Dec 20, 2024
1 parent 34ad2a3 commit e474b4d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
tag_name:
description: 'Tag name for the release'
required: true
default: 'v2.5.0-Beta.2' # Default tag name
default: 'v2.5.0-Beta.3' # Default tag name

permissions:
contents: write # Allow writing to GitHub releases
Expand All @@ -23,7 +23,7 @@ env:
VERSION: ${{ github.ref_name }} # Dynamic version based on the tag name
RELEASE_DIR: release
RELEASE_NOTICES: |
- [‍🔧] 优化英华请求重发机制,多账号更稳定
- [‍🔧] 修复学习通文档类型章节点无法刷取的BUG
注:当前学习通功能为测试阶段日志显示比较乱,后续版本更新会调整
Expand Down
2 changes: 1 addition & 1 deletion config/logo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
: \ \; : .' \ | , / `----' ---' ; : ;
\ ' ;| , .-./ ---`-' | , /
`--` `--`---' ---`-'
Yatori-go-console v2.5.0-Beta.2
Yatori-go-console v2.5.0-Beta.3
仅用于学习交流,请勿用于违法和商业用途!!!
GitHub开源地址:https://github.com/yatori-dev/yatori-go-console
个人博客:https://blogs.changbaiqi.top
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
)

require github.com/yatori-dev/yatori-go-core v1.1.9
require github.com/yatori-dev/yatori-go-core v1.2.0

require (
github.com/PuerkitoBio/goquery v1.10.0 // indirect
Expand Down Expand Up @@ -46,7 +46,7 @@ require (
golang.org/x/exp/shiny v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/image v0.14.0 // indirect
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
github.com/yalue/onnxruntime_go v1.12.1 h1:joCCmBnNjHy04jK9EMP/UV6oPPqySXlRgf3gcUcnI/g=
github.com/yalue/onnxruntime_go v1.12.1/go.mod h1:b4X26A8pekNb1ACJ58wAXgNKeUCGEAQ9dmACut9Sm/4=
github.com/yatori-dev/yatori-go-core v1.1.9 h1:cIazNmCLEec36uk5euJR0Yw1TcvRl8cu1TTiwDQos4E=
github.com/yatori-dev/yatori-go-core v1.1.9/go.mod h1:6zSH+QLXqe+IZaEASvwtG/AhBwcq67A7gGiIh8d2uDw=
github.com/yatori-dev/yatori-go-core v1.2.0 h1:NqkiV4gQf4ZvKVXL9cHR4jt0yNwGIhSnTvsnGbLEy5A=
github.com/yatori-dev/yatori-go-core v1.2.0/go.mod h1:M32eb5ULwWC5We8QD1653UpdWldfv7wNdMB8UgdDVdw=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
Expand Down Expand Up @@ -160,8 +160,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
23 changes: 18 additions & 5 deletions logic/xuexitong/XueXiTongPart.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ func nodeListStudy(setting config.Setting, user *config.Users, userCache *xuexit

for index, _ := range nodes {
if isFinished(index) { //如果完成了的那么直接跳过
//log.Printf("ID.%d(%s/%s)任务点已完成忽略\n",
// item,
// pointAction.Knowledge[index].Label, pointAction.Knowledge[index].Name)
//time.Sleep(500 * time.Millisecond)
continue
}
_, fetchCards, err := xuexitong.ChapterFetchCardsAction(userCache, &action, nodes, index, courseId, key, courseItem.Cpi)
Expand All @@ -134,7 +130,7 @@ func nodeListStudy(setting config.Setting, user *config.Users, userCache *xuexit
if videoDTOs == nil && workDTOs == nil && documentDTOs == nil {
log.Fatal("没有可学习的内容")
}
// 暂时只测试视频
// 视屏类型
if videoDTOs != nil {
for _, videoDTO := range videoDTOs {
card, err := xuexitong.PageMobileChapterCardAction(
Expand All @@ -147,6 +143,23 @@ func nodeListStudy(setting config.Setting, user *config.Users, userCache *xuexit
time.Sleep(5 * time.Second)
}
}
// 文档类型
if documentDTOs != nil {
for _, documentDTO := range documentDTOs {
card, err := xuexitong.PageMobileChapterCardAction(
userCache, key, courseId, documentDTO.KnowledgeID, documentDTO.CardIndex, courseItem.Cpi)
if err != nil {
log.Fatal(err)
}
documentDTO.AttachmentsDetection(card)
point.ExecuteDocument(userCache, &documentDTO)
if err != nil {
log.Fatal(err)
}
time.Sleep(5 * time.Second)
}
}

}
videosLock.Done()
}

0 comments on commit e474b4d

Please sign in to comment.