From aa46f48fe78d06138507aa8c5adf12aba86fd6b1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 23 Sep 2024 15:59:47 +0800 Subject: [PATCH] 1 --- server/light_backtask/service/vip.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/light_backtask/service/vip.go b/server/light_backtask/service/vip.go index 72383d83..aec219f7 100644 --- a/server/light_backtask/service/vip.go +++ b/server/light_backtask/service/vip.go @@ -4,6 +4,7 @@ import ( "q5" "f5" "sync" + "strings" "main/constant" ) @@ -19,10 +20,11 @@ func (this *vip) Add(accountAddress string, val string, idx int64, valField stri } func (this *vip) AddEx(accountAddress string, val string, idx int64, valField string, idxField string, - whereKv [][]string) bool { + extKv [][]string) bool { this.lock.Lock() defer this.lock.Unlock() + accountAddress = strings.ToLower(accountAddress) err, ds := f5.GetGoStyleDb().NewOrmSelect( constant.BCNFT_DB, "t_vip_user", @@ -45,6 +47,8 @@ func (this *vip) AddEx(accountAddress string, val string, idx int64, valField st {"createtime", q5.ToString(nowTime)}, {"modifytime", q5.ToString(nowTime)}, } + updateKv = append(updateKv, extKv...) + insertKv = append(insertKv, extKv...) if ds.Next() { if q5.ToInt64(ds.GetByName(idxField)) <= idx { return true