We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ddcbac + 4b2b8da commit 830cccaCopy full SHA for 830ccca
pkg/sender/feishu.go
@@ -7,12 +7,13 @@ import (
7
"encoding/base64"
8
"errors"
9
"fmt"
10
- "github.com/bytedance/sonic"
11
- "github.com/zeromicro/go-zero/core/logc"
12
"strconv"
13
"time"
14
"watchAlert/internal/ctx"
15
+ "github.com/bytedance/sonic"
+ "github.com/zeromicro/go-zero/core/logc"
16
+
17
"watchAlert/pkg/tools"
18
)
19
@@ -55,7 +56,7 @@ func (f *FeiShuSender) Test(params SendParams) error {
55
56
func (f *FeiShuSender) post(hook, sign string, msg map[string]any) error {
57
if sign != "" {
58
timestamp := strconv.FormatInt(time.Now().Unix(), 10)
- signature, err := generateSignature(hook, timestamp)
59
+ signature, err := generateSignature(sign, timestamp)
60
if err != nil {
61
return err
62
}
0 commit comments