Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f6a851

Browse files
committed
知乎规则变了
1 parent f00285c commit 7f6a851

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/logic/article.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ func (self ArticleLogic) ParseArticle(ctx context.Context, articleUrl string, au
8282
}
8383

8484
// 知乎特殊处理
85-
if domain == "zhuanlan.zhihu.com" {
86-
return self.ParseZhihuArticle(ctx, articleUrl, rule)
87-
}
85+
// 已经恢复和其他一样了 2018-08-11
86+
// if domain == "zhuanlan.zhihu.com" {
87+
// return self.ParseZhihuArticle(ctx, articleUrl, rule)
88+
// }
8889

8990
var doc *goquery.Document
9091
if doc, err = goquery.NewDocument(articleUrl); err != nil {

template/common/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
</script>
241241

242242
<script src="{{.static_domain}}/static/dist/js/sg_libs.min.js"></script>
243-
<script src="{{.static_domain}}/static/dist/js/sg_base.min.js?v=03"></script>
243+
<script src="{{.static_domain}}/static/dist/js/sg_base.min.js?v=0.3"></script>
244244

245245
{{template "js" .}}
246246

0 commit comments

Comments
 (0)