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.
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"OpenIM/internal/task"
|
|
|
|
"flag"
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
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")
|
|
|
|
flag.Parse()
|
|
|
|
fmt.Println(time.Now(), "start cronTask", *userID, *superGroupID)
|
|
|
|
task.FixSeq(*userID, *superGroupID, *fixAllSeq)
|
|
|
|
}
|