Skip to content

Commit 7cebeea

Browse files
committed
perf: Remove useless codes
1 parent bd1ad44 commit 7cebeea

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

internal/cmd/router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,3 @@ func WrapperOpenAPI(s *ghttp.Server) {
3636
api.Config.CommonResponseDataField = "Data"
3737
api.Config.IgnorePkgPath = true
3838
}
39-
40-
var users = make(map[string]*ghttp.WebSocket, 0)

internal/logic/feishu/feishu.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package feishu
22

33
import (
44
"context"
5-
"fmt"
6-
"github.com/gogf/gf/v2/encoding/gjson"
75
"github.com/gogf/gf/v2/frame/g"
86
"github.com/gogf/gf/v2/util/gconv"
97
larkcard "github.com/larksuite/oapi-sdk-go/v3/card"
@@ -38,9 +36,6 @@ func (u *sFeishu) Send(ctx context.Context, req *v1.FeishuReq) error {
3836
SendingTime: time.Now().Format(time.RFC3339),
3937
}
4038

41-
encodeString := gjson.MustEncodeString(req)
42-
fmt.Println(encodeString)
43-
4439
for i := 0; i < len(alerts); i++ {
4540
alert := alerts[i]
4641

0 commit comments

Comments
 (0)