config path

This commit is contained in:
wangchuxiao
2023-02-23 19:41:44 +08:00
parent 8bdf86172f
commit a26ca657fe
9 changed files with 43 additions and 19 deletions
+3
View File
@@ -2,6 +2,7 @@ package main
import (
"OpenIM/internal/task"
"OpenIM/pkg/common/config"
"flag"
"fmt"
"time"
@@ -11,7 +12,9 @@ func main() {
var userID = flag.String("user_id", "", "userID to clear msg and reset seq")
var superGroupID = flag.String("super_group_id", "", "superGroupID to clear msg and reset seq")
var fixAllSeq = flag.Bool("fix_all_seq", false, "fix seq")
var configPath = flag.String("config_path", "../config/", "config folder")
flag.Parse()
config.InitConfig(*configPath)
fmt.Println(time.Now(), "start cronTask", *userID, *superGroupID)
task.FixSeq(*userID, *superGroupID, *fixAllSeq)
}