Skip to content

Commit e34403a

Browse files
committed
fix: arXiv 国内可直连,Go 版本升级至 1.25.6
1 parent 20e3569 commit e34403a

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
- name: Set up Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: "1.25"
31+
go-version-file: go.mod
32+
33+
- name: Tidy modules
34+
run: go mod tidy
3235

3336
- name: Build
3437
env:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module websearch
22

3-
go 1.25.0
3+
go 1.25
44

55
require (
66
github.com/PuerkitoBio/goquery v1.12.0

pkg/academic/academic.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ func BuildAcademic(opts struct {
3434
engines = append(engines, NewPubMed(opts.PubMed, nil))
3535
}
3636

37-
// 国际引擎:Semantic Scholar 和 Google Scholar 仅在配置代理时启用(国内无代理不可达)
38-
if opts.Arxiv.Enabled && opts.Network >= antirobot.RegionInternational {
37+
// 国内引擎:arXiv 国内可直连
38+
if opts.Arxiv.Enabled && opts.Network >= antirobot.RegionChina {
3939
engines = append(engines, NewArxiv(opts.Arxiv, nil))
4040
}
41+
42+
// 国际引擎:Semantic Scholar 和 Google Scholar 仅在配置代理时启用(国内无代理不可达)
4143
if opts.Proxy != "" {
4244
intlClient := buildProxyClient(opts.Proxy)
4345
if opts.SemanticScholar.Enabled && opts.Network >= antirobot.RegionInternational {

0 commit comments

Comments
 (0)