|
@@ -96,12 +96,13 @@ func GetComments(userId int64, sourceType int, sourceId int64, lastId int64, pag |
|
@@ -96,12 +96,13 @@ func GetComments(userId int64, sourceType int, sourceId int64, lastId int64, pag |
|
96
|
if lastId > 0 {
|
96
|
if lastId > 0 {
|
|
97
|
sql.Where(fmt.Sprintf("id<%d", lastId))
|
97
|
sql.Where(fmt.Sprintf("id<%d", lastId))
|
|
98
|
}
|
98
|
}
|
|
|
|
99
|
+ log.Debug(sql.Strings())
|
|
99
|
if total, err = sql.Querys(&v); err == nil {
|
100
|
if total, err = sql.Querys(&v); err == nil {
|
|
100
|
if total == 0 {
|
101
|
if total == 0 {
|
|
101
|
- log.Debug(sql.Strings())
|
102
|
+ //log.Debug(sql.Strings())
|
|
102
|
}
|
103
|
}
|
|
103
|
return
|
104
|
return
|
|
104
|
}
|
105
|
}
|
|
105
|
-
|
106
|
+ //log.Debug(sql.Strings())
|
|
106
|
return
|
107
|
return
|
|
107
|
} |
108
|
} |