From 54dcb5ae88da5fef06d0fa627254e2922f5aa355 Mon Sep 17 00:00:00 2001 From: damiva <96115589+damiva@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:04:28 +0300 Subject: [PATCH] Update msx.go (#413) * Update msx.go * Update msx.go --- server/web/msx/msx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/web/msx/msx.go b/server/web/msx/msx.go index d3ad9ee..c5044a7 100644 --- a/server/web/msx/msx.go +++ b/server/web/msx/msx.go @@ -88,7 +88,7 @@ func SetupRoute(r gin.IRouter) { if sc != "" { sc = "{col:" + sc + "}" } - r.R.S, r.R.D = http.StatusOK, map[string]any{"action": "player:label:position:{LABEL}{tb}{tb}" + sc + st} + r.R.S, r.R.D = http.StatusOK, map[string]any{"action": "player:label:position:{VALUE}{tb}{tb}" + sc + st} } else if e := c.BindJSON(&j); e != nil { r.R.S, r.R.M = http.StatusBadRequest, e.Error() } else if j.Data == "" { @@ -98,7 +98,7 @@ func SetupRoute(r gin.IRouter) { r.R.D = map[string]any{"stamp": st, "stampColor": sc} if sc != "" { r.R.D["live"] = map[string]any{ - "type": "airtime", "duration": 1000, "over": map[string]any{ + "type": "airtime", "duration": 3000, "over": map[string]any{ "action": "execute:" + utils.GetScheme(c) + "://" + c.Request.Host + c.Request.URL.Path, "data": j.Data, }, }