File tree 3 files changed +11
-11
lines changed 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ func (self ArticleLogic) FindByIds(ids []int) []*model.Article {
718
718
return nil
719
719
}
720
720
articles := make ([]* model.Article , 0 )
721
- err := MasterDB .In ("id" , ids ).Find (& articles )
721
+ err := MasterDB .In ("id" , ids ).Where ( "status<=?" , model . ArticleStatusOnline ). Find (& articles )
722
722
if err != nil {
723
723
logger .Errorln ("ArticleLogic FindByIds error:" , err )
724
724
return nil
Original file line number Diff line number Diff line change @@ -385,6 +385,9 @@ func (self TopicLogic) FindFullinfoByTids(tids []int) []map[string]interface{} {
385
385
topicInfos := make ([]* model.TopicInfo , 0 , len (topicInfoMap ))
386
386
for _ , tid := range tids {
387
387
if topicInfo , ok := topicInfoMap [tid ]; ok {
388
+ if topicInfo .Flag > model .FlagNormal {
389
+ continue
390
+ }
388
391
topicInfos = append (topicInfos , topicInfo )
389
392
}
390
393
}
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ <h1 style="text-align: center;">Markdown 教程</h1>
59
59
```
60
60

61
61

62
- 
63
- 
64
- 
65
62
```
66
63
67
64
### 代码块
@@ -116,13 +113,13 @@ <h1 style="text-align: center;">Markdown 教程</h1>
116
113
#### 有序列表
117
114
118
115
1. Go
119
- 1. Gofmt
120
- 2. Revel
121
- 3. Gin
122
- 4. Echo
116
+ 1. Gofmt
117
+ 2. Revel
118
+ 3. Gin
119
+ 4. Echo
123
120
2. PHP
124
- 1. Laravel
125
- 2. ThinkPHP
121
+ 1. Laravel
122
+ 2. ThinkPHP
126
123
3. Java
127
124
128
125
### 表格
@@ -287,4 +284,4 @@ <h3 id="表格">表格</h3>
287
284
288
285
{{define "js"}}
289
286
{{include "cssjs/prism.js.html" .}}
290
- {{end}}
287
+ {{end}}
You can’t perform that action at this time.
0 commit comments