调整
This commit is contained in:
parent
2b1ceec576
commit
f295141c04
@ -9,6 +9,7 @@ import (
|
||||
"main/mt"
|
||||
"net/http"
|
||||
"q5"
|
||||
"sort"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@ -145,7 +146,7 @@ func (this *GameSwitchApi) Edit(c *gin.Context) {
|
||||
req := struct {
|
||||
Name string `binding:"required" json:"switch_name"`
|
||||
Open *int32 `binding:"required" json:"is_open"`
|
||||
Servers []int32 `json:"serverList"`
|
||||
Servers []int `json:"serverList"`
|
||||
AuditOpen *int32 `binding:"required" json:"audit_is_open"`
|
||||
Remark string `json:"remark"`
|
||||
}{}
|
||||
@ -177,6 +178,7 @@ func (this *GameSwitchApi) Edit(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
sort.Ints(req.Servers)
|
||||
nowDaySeconds := int32(f5.GetApp().GetRealSeconds())
|
||||
gswitch.Opened = *req.Open
|
||||
serverbytes, _ := json.Marshal(req.Servers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user