mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:52:26 +08:00
优化代码
This commit is contained in:
@@ -18,6 +18,7 @@ func (c *Controller) gmCmd(context *gin.Context) {
|
||||
gmCmdReq := new(GmCmdReq)
|
||||
err := context.ShouldBindJSON(gmCmdReq)
|
||||
if err != nil {
|
||||
logger.Error("parse json error: %v", err)
|
||||
return
|
||||
}
|
||||
rep, err := c.gm.Cmd(context.Request.Context(), &api.CmdRequest{
|
||||
|
||||
Reference in New Issue
Block a user