This commit is contained in:
unknown
2026-02-04 20:27:13 +08:00
commit 3b042d1dad
9410 changed files with 1488147 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
//go:build plus
package mediasenders
import (
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
timeutil "github.com/iwind/TeaGo/utils/time"
"testing"
)
func TestMediaWebHook_Send(t *testing.T) {
media := NewWebHookMedia()
media.URL = "http://127.0.0.1:9991/webhook?subject=${MessageSubject}&body=${MessageBody}"
resp, err := media.Send("zhangsan", "this is subject", "this is body", teaconst.GlobalProductName, timeutil.Format("Y-m-d H:i:s"))
t.Log(string(resp), err)
}