Skip to content

Commit 830ccca

Browse files
CairryCairry
authored andcommitted
Merge branch 'master' of https://github.com/opsre/WatchAlert
2 parents 9ddcbac + 4b2b8da commit 830ccca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/sender/feishu.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import (
77
"encoding/base64"
88
"errors"
99
"fmt"
10-
"github.com/bytedance/sonic"
11-
"github.com/zeromicro/go-zero/core/logc"
1210
"strconv"
1311
"time"
1412
"watchAlert/internal/ctx"
1513

14+
"github.com/bytedance/sonic"
15+
"github.com/zeromicro/go-zero/core/logc"
16+
1617
"watchAlert/pkg/tools"
1718
)
1819

@@ -55,7 +56,7 @@ func (f *FeiShuSender) Test(params SendParams) error {
5556
func (f *FeiShuSender) post(hook, sign string, msg map[string]any) error {
5657
if sign != "" {
5758
timestamp := strconv.FormatInt(time.Now().Unix(), 10)
58-
signature, err := generateSignature(hook, timestamp)
59+
signature, err := generateSignature(sign, timestamp)
5960
if err != nil {
6061
return err
6162
}

0 commit comments

Comments
 (0)