重构网关服务器
This commit is contained in:
1 parent
d337799fd8
commit
f773ba8df7
19 files changed
+686
-1241
No files matched your search
@@ -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