From 4aa8787fd807c527e9eb224c41b454935edd8af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 2 Dec 2020 11:31:19 +0800 Subject: [PATCH] a --- business/jxstore/cms/user2.go | 2 -- controllers/user2_controller.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index 1c883d374..b74b101c0 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -754,7 +754,6 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G ` sqlParams := []interface{}{time.Now().AddDate(0, -1, 0)} err = dao.GetRows(db, &userSearchAll, sql, sqlParams) - fmt.Println("1111111111111111111111111111111", utils.Format4Output(userSearchAll, false)) getUserSerachKeywordResult.AllSpan = userSearchAll sql2 := ` SELECT keyword, SUM(count) count FROM user_search WHERE created_at > ? AND user_id = ? GROUP BY 1 ORDER BY SUM(count) DESC LIMIT 20 @@ -762,6 +761,5 @@ func GetUserSerachKeyword(ctx *jxcontext.Context) (getUserSerachKeywordResult *G sqlParams2 := []interface{}{time.Now().AddDate(0, -1, 0), userID} err = dao.GetRows(db, &userSearch, sql2, sqlParams2) getUserSerachKeywordResult.UserSpan = userSearch - fmt.Println("22222222222222222222222222222222", utils.Format4Output(getUserSerachKeywordResult, false)) return getUserSerachKeywordResult, err } diff --git a/controllers/user2_controller.go b/controllers/user2_controller.go index 133a7448d..98d4b4263 100644 --- a/controllers/user2_controller.go +++ b/controllers/user2_controller.go @@ -422,7 +422,7 @@ func (c *User2Controller) DeleteUserCityManager() { // @router /GetUserSerachKeyword [get] func (c *User2Controller) GetUserSerachKeyword() { c.callGetUserSerachKeyword(func(params *tUser2GetUserSerachKeywordParams) (retVal interface{}, errCode string, err error) { - + retVal, err = cms.GetUserSerachKeyword(params.Ctx) return retVal, "", err }) }