Update msx.go (#413)

* Update msx.go

* Update msx.go
This commit is contained in:
damiva
2024-06-02 10:04:28 +03:00
committed by GitHub
parent 384e112dd9
commit 54dcb5ae88

View File

@@ -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,
},
}