back_recharge
parent
eb91e2169d
commit
39d1c1242f
|
@ -140,7 +140,7 @@ public class CheckFight {
|
|||
long[] resultCache = new long[8];//对方阵容走配置 Todo 后面结构走配置
|
||||
resultCache[0]= (long) status;
|
||||
resultCache[1]= (long) duration;
|
||||
LOGGER.info(" lua check test fight result : "+ status);
|
||||
LOGGER.info(" lua check test fight result : {} {}", resultCache[0] , result.length());
|
||||
for (int i = 1; i <= result.length(); i++) {
|
||||
long tolong = result.rawget(i).tolong();
|
||||
if(tolong>0){
|
||||
|
|
|
@ -62,7 +62,7 @@ public class NettyGameServer extends AbstractServer {
|
|||
try {
|
||||
ThreadFactory factory = new ThreadFactoryBuilder().setNameFormat("netty-%d").build();
|
||||
bossGroup = new NioEventLoopGroup(0, factory);
|
||||
workerGroup = new NioEventLoopGroup(16, factory);
|
||||
workerGroup = new NioEventLoopGroup(8, factory);
|
||||
ServerBootstrap serverBootstrap = new ServerBootstrap();
|
||||
serverBootstrap.group(bossGroup, workerGroup).option(ChannelOption.TCP_NODELAY, true)
|
||||
.option(ChannelOption.RCVBUF_ALLOCATOR, AdaptiveRecvByteBufAllocator.DEFAULT)
|
||||
|
|
|
@ -116,12 +116,6 @@ public class GameLogicService implements IService {
|
|||
ThriftPoolUtils.getInstance().initContext();
|
||||
GlobalDataManaager.getInstance().init();
|
||||
GuilidManager.init();
|
||||
URL resource = HeroLogic.class.getClassLoader().getResource("mingan.txt");
|
||||
if(resource!=null){
|
||||
LOGGER.info(resource.getFile());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
LOGGER.info("ShutdownHook start");
|
||||
|
|
|
@ -127,11 +127,4 @@ public class HttpPool {
|
|||
return null;
|
||||
}
|
||||
|
||||
public static void main (String [] args){
|
||||
Gson gson = new Gson();
|
||||
String send ="{\"param_data\":{\"app_id_s\":\"jl_test\",\"category_s\":\"event_role\",\"platform_s\":\"ADR\",\"region_s\":\"60215\",\"server_s\":\"60215\",\"channel_s\":\"#\",\"data_unix\":1578542089},\"param_environment\":{\"idfa_s\":\"\",\"imei_s\":\"\",\"app_device_id_s\":\"\",\"brand_s\":\"\",\"dpi_s\":\"\",\"operator_s\":\"\",\"os_version_s\":\"\",\"wifi_b\":false},\"param_user\":{\"user_id_s\":\"w7ww\",\"account_id_s\":\"10040506\"},\"param_role\":{\"role_id_s\":\"10040506\",\"role_name_s\":\"10040506\",\"level_i\":\"100\",\"vip_level_i\":0,\"currency_1_d\":\"9899\",\"currency_2_d\":\"41464\",\"eco_force_11_a\":\"[315870,250891,0,0,0,0,0,0,0,0,0]\"},\"param_event\":{\"event_s\":[\"login_1\",\"LOGOUT\"]}}";
|
||||
init();
|
||||
KTSendBody sendBody = gson.fromJson(send, KTSendBody.class);
|
||||
// sendPost("https://gskuld.receiver.extranet.kt007.com:8081/skuld/game/common/",send);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue