Commit 72843846 authored by hujiebin's avatar hujiebin

fix:防止漏打

parent f993de2f
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"github.com/hilo-common/model" "github.com/hilo-common/model"
"github.com/hilo-common/mysql" "github.com/hilo-common/mysql"
"time"
) )
func main() { func main() {
...@@ -43,4 +44,5 @@ 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) 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) fmt.Println(sql)
} }
time.Sleep(time.Second)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment