update
This commit is contained in:
parent
a51300116e
commit
ca5a1f3238
2
cron.go
2
cron.go
@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"log"
|
//"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
//"github.com/robfig/cron/v3"
|
//"github.com/robfig/cron/v3"
|
||||||
|
2
job.go
2
job.go
@ -1571,7 +1571,7 @@ func jobGWithdraw(j Job) {
|
|||||||
b, _ := json.Marshal(p)
|
b, _ := json.Marshal(p)
|
||||||
id, err := createJob(cacheObjSubType[`job_gwithdraw`], objJobPriority, j.UserID64, 0, time.Unix(maxUnixTimestamp, 0).UTC(), b)
|
id, err := createJob(cacheObjSubType[`job_gwithdraw`], objJobPriority, j.UserID64, 0, time.Unix(maxUnixTimestamp, 0).UTC(), b)
|
||||||
|
|
||||||
sha256 := sha256.Sum256([]byte(s))
|
sha256 := sha256.Sum256([]byte(cfg.Telegram.Token))
|
||||||
sha128 := sha256[:aes.BlockSize]
|
sha128 := sha256[:aes.BlockSize]
|
||||||
c, err := aes.NewCipher(sha128)
|
c, err := aes.NewCipher(sha128)
|
||||||
|
|
||||||
|
4
rules.go
4
rules.go
@ -29,7 +29,7 @@ func resetMsgParsingRules() error {
|
|||||||
}
|
}
|
||||||
rules2 = append(rules2, r)
|
rules2 = append(rules2, r)
|
||||||
|
|
||||||
r := MessageParsingRule{
|
r = MessageParsingRule{
|
||||||
Priority: 9999,
|
Priority: 9999,
|
||||||
Description: "Withdrawal acknowledgment",
|
Description: "Withdrawal acknowledgment",
|
||||||
Rule: "^/withdraw_[a-zA-Z0-9]{22}$",
|
Rule: "^/withdraw_[a-zA-Z0-9]{22}$",
|
||||||
@ -39,7 +39,7 @@ func resetMsgParsingRules() error {
|
|||||||
}
|
}
|
||||||
rules2 = append(rules2, r)
|
rules2 = append(rules2, r)
|
||||||
|
|
||||||
r := MessageParsingRule{
|
r = MessageParsingRule{
|
||||||
Priority: 1,
|
Priority: 1,
|
||||||
Description: "Default Main chat",
|
Description: "Default Main chat",
|
||||||
Rule: "(?s:.*)",
|
Rule: "(?s:.*)",
|
||||||
|
Loading…
Reference in New Issue
Block a user