mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 18:42:26 +08:00
重构网关服务器
This commit is contained in:
@@ -47,3 +47,14 @@ func (c *Controller) gateTokenVerify(context *gin.Context) {
|
||||
PlayerID: uint32(account.PlayerID),
|
||||
})
|
||||
}
|
||||
|
||||
type DispatchEc2bSeedRsp struct {
|
||||
Seed string `json:"seed"`
|
||||
}
|
||||
|
||||
func (c *Controller) getDispatchEc2bSeed(context *gin.Context) {
|
||||
dispatchEc2bSeed := c.dispatchEc2b.Seed()
|
||||
context.JSON(http.StatusOK, &DispatchEc2bSeedRsp{
|
||||
Seed: strconv.FormatUint(dispatchEc2bSeed, 10),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user