From e2efc743ab93bfc033b2e56a5f7f26c8eb74e35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=E5=87=A1=E6=A2=A6?= Date: Mon, 13 Jul 2020 14:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95UpdateSensitiveWord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/sensitive_words.go | 2 ++ controllers/cms_sku.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/business/model/dao/sensitive_words.go b/business/model/dao/sensitive_words.go index 367bbb571..1b75629b4 100644 --- a/business/model/dao/sensitive_words.go +++ b/business/model/dao/sensitive_words.go @@ -3,6 +3,7 @@ package dao import ( "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" + "git.rosy.net.cn/jx-callback/globals" "time" ) @@ -56,6 +57,7 @@ func UpdateSensitiveWord(wordList *model.SensitiveWord, vendorID int, id int, us wordList.VendorID = vendorID wordList.UpdatedAt = time.Now() wordList.LastOperator = userName + globals.SugarLogger.Debug("wordList:", wordList) if id != 0 { if _, err := UpdateEntity(nil, wordList, "id", "word", "vendor_id", "last_operator"); err != nil { return nil, err diff --git a/controllers/cms_sku.go b/controllers/cms_sku.go index 7d05fa1fd..c175d0d97 100644 --- a/controllers/cms_sku.go +++ b/controllers/cms_sku.go @@ -7,6 +7,7 @@ import ( "git.rosy.net.cn/jx-callback/business/jxutils" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/business/model/dao" + "git.rosy.net.cn/jx-callback/globals" "github.com/astaxie/beego" ) @@ -385,6 +386,7 @@ func (c *SkuController) UpdateSensitiveWord() { // VendorID: params.VendorID, // Word: params.Word, //} + globals.SugarLogger.Debug("UpdateSensitiveWord入参params:", params) words, err := dao.GetSensitiveWordList(params.VendorID) word := words[0] word.Word = params.Word