清理日志
parent
0f336e3bd1
commit
e99ad72a8e
|
@ -108,6 +108,12 @@ public class CheckFight {
|
|||
resultCache[1]=duration;
|
||||
// LOGGER.info(" lua check test fight result : "+ status);
|
||||
for (int i = 1; i <= result.length(); i++) {
|
||||
long tolong = result.rawget(i).tolong();
|
||||
if(tolong>0){
|
||||
resultCache[i+1]= (int)Math.min((long) Integer.MAX_VALUE,tolong);
|
||||
}else {
|
||||
resultCache[i+1]= (int)Math.max((long) Integer.MIN_VALUE,tolong);
|
||||
}
|
||||
resultCache[i+1] = result.rawget(i).toint();
|
||||
// LOGGER.info(i+" --> 单位剩余血量 : "+ resultCache[i+1]);
|
||||
}
|
||||
|
|
|
@ -76,8 +76,6 @@ public class ChampionBetInfoHandler extends BaseHandler<ArenaInfoProto.ChampionG
|
|||
if((!record.getId().equals(arenaRecord.getId()))&&record.getRoundTims()==(arenaRecord.getRoundTims())){
|
||||
|
||||
if(record.getFightResult()==-2){
|
||||
// System.out.println(record.getAttackId()+"vvvvvvvvvvvvvv = " +record.getDefUid()+"turn"+ record.getId()+"RoundTims()"+record.getRoundTims()+"turn"+record.getTurn()+"fight"+record.getFightResult()+"state"+state);
|
||||
// System.out.println(arenaRecord.getAttackId()+"vvvvvvvvvvvvvv = "+record.getDefUid()+"turn" + arenaRecord.getId()+"RoundTims()"+arenaRecord.getRoundTims()+"turn"+arenaRecord.getTurn()+"fight"+arenaRecord.getFightResult()+"state"+state);
|
||||
continue;
|
||||
}
|
||||
if (record.getFightResult() == 1) {
|
||||
|
|
|
@ -41,8 +41,6 @@ public class ActivityStateChangeHandler implements IEventHandler {
|
|||
if(sGlobalActivity.getCanBuyRechargeId()!=0){
|
||||
user.getPlayerInfoManager().getRechargeInfo().putDyGoodsCanBuyTimes(sGlobalActivity.getCanBuyRechargeId(),1);
|
||||
BuyGoodsLogic.sendGiftGooodsIndication(uid);
|
||||
System.out.println("----------------send buy for activity" + sGlobalActivity.getId());
|
||||
System.out.println("----------------send buy for goodsiD" + sGlobalActivity.getCanBuyRechargeId());
|
||||
}
|
||||
}else if(state == ActivityType.FINISH_STATE){
|
||||
List<SGlobalActivity> sGlobalActivities = SGlobalActivity.sGlobalActivityMapByOpenRules.getOrDefault(3, new ArrayList<>(0));
|
||||
|
|
|
@ -799,7 +799,6 @@ public class ChampionshipLogic {
|
|||
@Override
|
||||
public void work(User user) throws Exception {
|
||||
int mineWinCoins = (int) (winRate * coins);
|
||||
System.out.println("coins winRate = " + coins+":"+winRate+":mineWinCoins" +mineWinCoins);
|
||||
int[][] drop = new int[1][];
|
||||
drop[0] = new int[2];
|
||||
drop[0][0] = arenaItem[0];
|
||||
|
|
|
@ -106,7 +106,6 @@ public class UserMissionManager extends MongoBase {
|
|||
if(weekRefreshIds!=null){
|
||||
treasureWeekCumulationData = new CumulationData();
|
||||
int weekRefreshTime = (int)(TimeUtils.getNextWeekendStartTime(1,5)/1000);
|
||||
System.out.println(weekRefreshTime);
|
||||
CommonProto.RefreshTask.Builder task2= treasureIndicationBuild(2, weekRefreshIds).setRefreshTime(weekRefreshTime);
|
||||
PlayerInfoProto.TreasureRefreshIndication indication2 = PlayerInfoProto.TreasureRefreshIndication.newBuilder().addTasks(task2.build()).build();
|
||||
MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.TREASURE_REFRESH_INDICATION_VALUE,indication2,true);
|
||||
|
|
|
@ -824,6 +824,9 @@ public class CombatLogic {
|
|||
|
||||
Map<Integer,Integer> propertiesMap = new HashMap<>();
|
||||
for(Integer heroId:heroFind){
|
||||
if(null==SCHero.sCHero.get(heroId)){
|
||||
LOGGER.error("Exception ::::"+heroId);
|
||||
}
|
||||
int propertyName = SCHero.sCHero.get(heroId).getPropertyName();
|
||||
propertiesMap.put(propertyName,propertiesMap.getOrDefault(propertyName,0)+1);
|
||||
}
|
||||
|
|
|
@ -1493,10 +1493,15 @@ public class HeroLogic{
|
|||
//阵营光环加成
|
||||
|
||||
if(teamId!=0){
|
||||
try {
|
||||
int[][] elementEffect = CombatLogic.getInstance().elementEffect(user,teamId);
|
||||
if (elementEffect!=null&&elementEffect.length>0){
|
||||
combinedAttribute(elementEffect,heroAllAttribute);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//被动技能加成
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.ljsd.jieling.logic.store;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.ljsd.GameApplication;
|
||||
import com.ljsd.jieling.config.clazzStaticCfg.CommonStaticConfig;
|
||||
import com.ljsd.jieling.config.reportData.DataMessageUtils;
|
||||
|
@ -562,6 +563,11 @@ public class BuyGoodsLogic {
|
|||
|
||||
}else{
|
||||
if(sRechargeCommodityConfig.getDailyUpdate()>=1){
|
||||
if(!refreshBagMap.containsKey(sRechargeCommodityConfig.getId())){
|
||||
Gson gson = new Gson();
|
||||
LOGGER.error(sRechargeCommodityConfig.getId()+"Exception= " + gson.toJson(refreshBagMap.keySet()));
|
||||
continue;
|
||||
}
|
||||
endTime = refreshBagMap.get(sRechargeCommodityConfig.getId());
|
||||
startTime = endTime - sRechargeCommodityConfig.getDailyUpdate()*TimeUtils.ONE_DAY;
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue