update
This commit is contained in:
@@ -199,6 +199,9 @@ func init() {
|
||||
Admin: true,
|
||||
Cron: "*/5 * * * *",
|
||||
Handle: func(s core.Sender) interface{} {
|
||||
if Config.Host == "" {
|
||||
return nil
|
||||
}
|
||||
if s.GetImType() == "fake" && qinglong.GetBool("autoCronHideDuplicate", true) == false {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -79,6 +79,9 @@ func (ql *QingLong) GetToken() (string, error) {
|
||||
}
|
||||
|
||||
func (ql *QingLong) Req(ps ...interface{}) error {
|
||||
if ql.Host == "" {
|
||||
return nil
|
||||
}
|
||||
token, err := ql.GetToken()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user