浏览代码

no message

xingzai 2 年之前
父节点
当前提交
4e10abe7bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/user.go

+ 1 - 1
models/user.go

@@ -483,7 +483,7 @@ func GetUserMicroRoadshowCollectList(userId int) (items []*CygxArticleCollect, e
 }
 
 func GetUserMicroRoadshowCollectcount(userId int) (count int, err error) {
-	sqlCount := `SELECT SELECT COUNT(1) AS count FROM cygx_article_collect AS a 
+	sqlCount := `SELECT  COUNT(1) AS count FROM cygx_article_collect AS a 
 			WHERE a.user_id=?  
 			AND a.article_id =0 
            ORDER BY a.create_time DESC `