back_recharge
parent
176ff89acf
commit
ff58d6a115
|
@ -1,5 +1,6 @@
|
|||
#server info
|
||||
server.id = 10180
|
||||
server.openTime = 20190101000101
|
||||
|
||||
|
||||
# redis config
|
||||
|
@ -34,7 +35,7 @@ mongodb.options.connectTimeout = 1000
|
|||
mongodb.options.socketTimeout = 0
|
||||
mongodb.options.threadsAllowedToBlockForConnectionMultiplier = 20
|
||||
mongodb.options.connectionsPerHost = 256
|
||||
mongodb.options.minConnectionsPerHost = 100
|
||||
mongodb.options.minConnectionsPerHost = 5
|
||||
mongodb.options.maxConnectionIdleTime = 1000
|
||||
|
||||
|
||||
|
|
|
@ -37,11 +37,17 @@ public class LoginRequestHandler extends BaseHandler {
|
|||
userId, token,msgId,msgIndex,getPlayerInfoRequest.getNum(),getPlayerInfoRequest.getStr());
|
||||
User userForLogin = UserManager.getUserForLogin(userId);
|
||||
|
||||
|
||||
CommonProto.Common.Player player = CommonProto.Common.Player
|
||||
.newBuilder()
|
||||
.setUid(userId)
|
||||
.setGold(10000)
|
||||
.setNicknime("戒灵666")
|
||||
.setExp(1000)
|
||||
.setVipLevel(1)
|
||||
.setFamilyId("abc")
|
||||
.setHead("head_image_1")
|
||||
.setGold(100002)
|
||||
.setGem(8888)
|
||||
.setChargeGem(1000)
|
||||
.build();
|
||||
|
||||
PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse getPlayerInfoResponse
|
||||
|
|
|
@ -249,9 +249,10 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
int myToken = 0;
|
||||
|
||||
if (packetNetData.getMsgId()== MessageTypeProto.MessageType.LOGIN_REQUEST_VALUE){
|
||||
|
||||
}else if (packetNetData.getMsgId()== MessageTypeProto.MessageType.LOGIN_REQUEST_VALUE){
|
||||
|
||||
//TODO 更新token
|
||||
}else if (packetNetData.getMsgId()== MessageTypeProto.MessageType.RECONNECT_REQUEST_VALUE){
|
||||
//TODO 更新token
|
||||
//TODO
|
||||
}else {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue