Skip to content

Commit

Permalink
Update msx.go (YouROK#413)
Browse files Browse the repository at this point in the history
* Update msx.go

* Update msx.go
  • Loading branch information
damiva authored Jun 2, 2024
1 parent 384e112 commit 54dcb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/web/msx/msx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand All @@ -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,
},
}
Expand Down

0 comments on commit 54dcb5a

Please sign in to comment.