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