Explorar o código

更改fohow user grouth 接口

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
a7d8d42909
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      go/gopath/src/fohow-statement-api/models/d5c_wx_user.go

+ 2 - 2
go/gopath/src/fohow-statement-api/models/d5c_wx_user.go

@@ -287,8 +287,8 @@ func GetAllXcxUserCountByMonth(start, end time.Time, useCache bool) (monthFansLi
 
 		SELECT
 			count(*) AS c,
-			DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS ym,,
-			DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS m
+			date_format(DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS ym,,
+			date_format(DATE_ADD(created_at, INTERVAL 8 HOUR),'%s') AS m
 		FROM
 			wx_users
 		WHERE