印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
967 B

package routers
import (
"server/config"
handler "server/modules/backend/handler/gm"
"github.com/gin-gonic/gin"
)
func gmHandle(e *gin.Engine) {
release := config.GetBase().Release
e.POST("/gm/getPhoneCode", handler.GMGetPhoneCode)
e.GET("/gm/platform/list", handler.ConfigPlatformList)
e.POST("/gm/platform/edit", handler.ConfigPlatformEdit)
e.GET("/gm/control/*action", handler.ConfigControlCommon)
e.POST("/gm/control/*action", handler.ConfigControlCommon)
e.POST("/gm/payWeight/*action", handler.ConfigPayWeight)
e.POST("/gm/withdrawWeight/*action", handler.ConfigWithdrawWeight)
e.POST("/gm/serverVersion/reload", handler.ReloadServerVersion)
if !release {
e.POST("/gm/addCoin", handler.GMAddCoin)
}
e.POST("/gm/recharge", handler.GMRecharge)
e.POST("/gm/bindPhone", handler.GMBindPhone)
e.POST("/gm/unbindPhone", handler.GMUnBindPhone)
// 后台强制玩家掉线
e.POST("/gm/player/OptPlayerDisconnect", handler.OptPlayerDisconnect)
}