You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
551 B
22 lines
551 B
package main
|
|
|
|
import (
|
|
"OpenIM/internal/task"
|
|
"OpenIM/pkg/common/config"
|
|
"flag"
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
if err := config.InitConfig(); err != nil {
|
|
panic(err.Error())
|
|
}
|
|
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")
|
|
flag.Parse()
|
|
fmt.Println(time.Now(), "start cronTask", *userID, *superGroupID)
|
|
task.FixSeq(*userID, *superGroupID, *fixAllSeq)
|
|
}
|