正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
@@ -208,7 +208,7 @@ and (mark_flag&1)>0 | @@ -208,7 +208,7 @@ and (mark_flag&1)>0 | ||
208 | order by collect_time desc | 208 | order by collect_time desc |
209 | limit ?`) | 209 | limit ?`) |
210 | 210 | ||
211 | - sqlCount := `select count(0) from chance_favorite where user_id =? and enable_status=1 and (mark_flag&2)>0` | 211 | + sqlCount := `select count(0) from chance_favorite where user_id =? and enable_status=1 and (mark_flag&1)>0` |
212 | if err = utils.ExecuteQueryOne(&total, sqlCount, uid); err != nil { | 212 | if err = utils.ExecuteQueryOne(&total, sqlCount, uid); err != nil { |
213 | return | 213 | return |
214 | } | 214 | } |
@@ -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 | } |
-
请 注册 或 登录 后发表评论