五点刷新机制
parent
d4f86e3d0a
commit
5eb0b7d467
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.ljsd.jieling.handler;
|
||||||
|
|
||||||
|
import com.ljsd.jieling.logic.GlobalDataManaager;
|
||||||
|
import com.ljsd.jieling.logic.dao.UserManager;
|
||||||
|
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||||
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
|
import com.ljsd.jieling.protocols.MessageTypeProto;
|
||||||
|
import com.ljsd.jieling.protocols.PlayerInfoProto;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
public class ServerFiveHandler extends BaseHandler{
|
||||||
|
@Override
|
||||||
|
public MessageTypeProto.MessageType getMessageCode() {
|
||||||
|
return MessageTypeProto.MessageType.SERVER_FIVE_REQEUST;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void process(ISession iSession, PacketNetData netData) throws Exception {
|
||||||
|
GlobalDataManaager.checkNeedReFlush(iSession, UserManager.getUser(iSession.getUid()), PlayerInfoProto.FivePlayerUpdateIndication.newBuilder());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
#server info
|
#server info
|
||||||
server.id = 10212
|
server.id = 50215
|
||||||
server.openTime = 20190101000101
|
server.openTime = 20190101000101
|
||||||
server.num = 1
|
server.num = 1
|
||||||
|
|
||||||
|
|
||||||
# redis config
|
# redis config
|
||||||
# Redis数据库索引(默认为0)
|
# Redis数据库索引(默认为0)
|
||||||
spring.redis.database=1
|
spring.redis.database=2
|
||||||
|
#spring.redis.database=2
|
||||||
# Redis服务器地址
|
# Redis服务器地址
|
||||||
spring.redis.host=60.1.1.14
|
spring.redis.host=60.1.1.14
|
||||||
# Redis服务器连接端口
|
# Redis服务器连接端口
|
||||||
|
|
@ -30,7 +31,8 @@ spring.redis.expireTime = -1
|
||||||
#spring.data.mongodb.uri = mongodb://mongouser:ysj#2017#ljsd@111.231.54.96:27017/ysj_wx_1
|
#spring.data.mongodb.uri = mongodb://mongouser:ysj#2017#ljsd@111.231.54.96:27017/ysj_wx_1
|
||||||
#spring.data.mongodb2.uri = mongodb://mongouser:ysj#2017#ljsd@111.231.54.96:27017/develop_ysj_wx_1
|
#spring.data.mongodb2.uri = mongodb://mongouser:ysj#2017#ljsd@111.231.54.96:27017/develop_ysj_wx_1
|
||||||
#mongodb2 develop
|
#mongodb2 develop
|
||||||
spring.data.mongodb.uri = mongodb://60.1.1.14:27017/jieling_10212
|
spring.data.mongodb.uri = mongodb://60.1.1.14:27017/jieling_30215_wy
|
||||||
|
#spring.data.mongodb.uri = mongodb://60.1.1.14:27017/jieling_10212
|
||||||
mongodb.options.maxWaitTime = 120000
|
mongodb.options.maxWaitTime = 120000
|
||||||
mongodb.options.connectTimeout = 1000
|
mongodb.options.connectTimeout = 1000
|
||||||
mongodb.options.socketTimeout = 0
|
mongodb.options.socketTimeout = 0
|
||||||
|
|
@ -41,7 +43,7 @@ mongodb.options.maxConnectionIdleTime = 1000
|
||||||
|
|
||||||
|
|
||||||
# netty config
|
# netty config
|
||||||
netty.tcpPort = 16080
|
netty.tcpPort = 26080
|
||||||
netty.chatTcpPort = 20001
|
netty.chatTcpPort = 20001
|
||||||
netty.logintcpPort = 18091
|
netty.logintcpPort = 18091
|
||||||
netty.udpPort = 18092
|
netty.udpPort = 18092
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue