chore: update project files

This commit is contained in:
lpf
2026-04-03 18:35:04 +08:00
parent 428d944e52
commit ce2263ac8c
54 changed files with 1025 additions and 4613 deletions

View File

@@ -1,5 +1,3 @@
//go:build !omit_feishu
package channels
import (
@@ -45,8 +43,6 @@ type FeishuChannel struct {
tenantTokenErr error
}
const feishuCompiled = true
func (c *FeishuChannel) SupportsAction(action string) bool {
switch strings.ToLower(strings.TrimSpace(action)) {
case "", "send":
@@ -410,7 +406,6 @@ func (c *FeishuChannel) buildFeishuMediaOutbound(ctx context.Context, media stri
return larkim.MsgTypeFile, string(b), nil
}
func readFeishuMedia(media string) (string, []byte, error) {
if strings.HasPrefix(media, "http://") || strings.HasPrefix(media, "https://") {
req, err := http.NewRequest(http.MethodGet, media, nil)