网关登录sdk地址配置

This commit is contained in:
flswld
2023-01-20 01:26:05 +08:00
parent 992fd280f8
commit f9ddb2745c
3 changed files with 9 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import (
"strings"
"time"
"hk4e/common/config"
"hk4e/common/mq"
"hk4e/dispatch/controller"
"hk4e/gate/kcp"
@@ -278,7 +279,7 @@ func (k *KcpConnectManager) getHeadMsg(clientSeq uint32) (headMsg *proto.PacketH
}
func (k *KcpConnectManager) getPlayerToken(req *proto.GetPlayerTokenReq, session *Session) (rsp *proto.GetPlayerTokenRsp) {
tokenVerifyRsp, err := httpclient.Post[controller.TokenVerifyRsp]("http://127.0.0.1:8080/gate/token/verify", &controller.TokenVerifyReq{
tokenVerifyRsp, err := httpclient.Post[controller.TokenVerifyRsp](config.CONF.Hk4e.LoginSdkUrl, &controller.TokenVerifyReq{
AccountId: req.AccountUid,
AccountToken: req.AccountToken,
}, "")