This commit is contained in:
shoopea 2020-01-15 18:22:41 +08:00
parent a51300116e
commit ca5a1f3238
3 changed files with 4 additions and 4 deletions

View File

@ -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
View File

@ -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)

View File

@ -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:.*)",