归元修改,打点修改
parent
a15ae6e4bb
commit
50bc669250
|
@ -84,7 +84,7 @@ public class HeroStaticConfig extends AbstractClassStaticConfig {
|
|||
randomPoolByType.put(sLotterySetting.getId(),sLotterySetting.getMergePool());
|
||||
}
|
||||
randomHeroIds = randomHeroIdTmp;
|
||||
randomPoolByType = randomPoolByType;
|
||||
this.randomPoolByType = randomPoolByType;
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("SLotterySetting init fail");
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Map;
|
|||
*/
|
||||
public class ReportUserEvent {
|
||||
|
||||
private ReportBaseBean baseBean;
|
||||
private ReportBaseBean baseBean = new ReportBaseBean();
|
||||
private Map<String, Object> baseInfo = new HashMap<>();
|
||||
private Map<String, Object> eventInfo = new HashMap<>();
|
||||
private String eventName = "";
|
||||
|
|
|
@ -23,7 +23,7 @@ public class ReportUtil {
|
|||
|
||||
private static Map<Integer,ReportBaseBean> baseBeanMap = new HashMap<>();
|
||||
|
||||
private static ThinkingDataAnalytics ta = new ThinkingDataAnalytics(new ThinkingDataAnalytics.LoggerConsumer(""));
|
||||
private static ThinkingDataAnalytics ta = new ThinkingDataAnalytics(new ThinkingDataAnalytics.LoggerConsumer(LOG_PATH));
|
||||
|
||||
public static final int COIN_ID = 14;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ public class SHeroReturn implements BaseConfig {
|
|||
|
||||
private int star;
|
||||
|
||||
private int[] rankupReturn;
|
||||
private int[][] rankupReturn;
|
||||
|
||||
private int[][] returnHero;
|
||||
|
||||
|
@ -33,16 +33,11 @@ public class SHeroReturn implements BaseConfig {
|
|||
for(SHeroReturn sHeroReturn : config.values()){
|
||||
int heroId = sHeroReturn.getHeroId();
|
||||
int star = sHeroReturn.getStar();
|
||||
int[] rankupReturn = sHeroReturn.getRankupReturn();
|
||||
int[][] returnHero = sHeroReturn.getReturnHero();
|
||||
int length = 1 + returnHero.length ;
|
||||
int[][] returnMaterialsTmp = new int[length][];
|
||||
for(int i=0;i<returnHero.length;i++){
|
||||
returnMaterialsTmp[i]=returnHero[i];
|
||||
int[][] rankUpReturn = sHeroReturn.getRankupReturn();
|
||||
int[][] returnMaterialsTmp = new int[rankUpReturn.length][];
|
||||
for(int i=0;i<rankUpReturn.length;i++){
|
||||
returnMaterialsTmp[i]=rankUpReturn[i];
|
||||
}
|
||||
returnMaterialsTmp[length-1] = new int[2];
|
||||
returnMaterialsTmp[length-1][0] = rankupReturn[0];
|
||||
returnMaterialsTmp[length-1][1] = rankupReturn[1];
|
||||
sHeroReturn.setReturnMaterials(returnMaterialsTmp);
|
||||
sheroReturnMap.computeIfAbsent(heroId,v->new HashMap<>()).put(star,sHeroReturn);
|
||||
}
|
||||
|
@ -61,7 +56,7 @@ public class SHeroReturn implements BaseConfig {
|
|||
return star;
|
||||
}
|
||||
|
||||
public int[] getRankupReturn() {
|
||||
public int[][] getRankupReturn() {
|
||||
return rankupReturn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue