From 72843846bb323ac0727ac4393bc9602e07beba5e Mon Sep 17 00:00:00 2001 From: hujiebin Date: Sat, 7 Jan 2023 18:27:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=98=B2=E6=AD=A2=E6=BC=8F=E6=89=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sync_group_code.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/sync_group_code.go b/script/sync_group_code.go index dad7239..d7e8c63 100644 --- a/script/sync_group_code.go +++ b/script/sync_group_code.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/hilo-common/model" "github.com/hilo-common/mysql" + "time" ) func main() { @@ -43,4 +44,5 @@ func main() { sql := fmt.Sprintf("UPDATE group_info SET code = '%s' WHERE im_group_id = '%s' AND code = '%s' limit 1", update.NewCode, update.GroupId, update.OldCode) fmt.Println(sql) } + time.Sleep(time.Second) } -- 2.22.0