generated from root/miduo_server
礼包打表更新
parent
e7ec4ec9c6
commit
fc2210fdb8
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,191 @@
|
|||
package com.jmfy.model.config;
|
||||
|
||||
import com.jmfy.utils.FileCacheUtils;
|
||||
import com.jmfy.utils.Table;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author hj
|
||||
* @Date 2021/9/22 16:28:24
|
||||
* @Description:
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Table(name ="ItemConfig")
|
||||
public class SItemConfig {
|
||||
private int id;
|
||||
private String name;
|
||||
private boolean backpackOrNot; //是否进背包
|
||||
private int itemType;
|
||||
private int itemBaseType; //道具类型(该道具在哪个背包显示)
|
||||
private int quantity;
|
||||
private int useType; //使用类型0不使用 1掉落组 2N选1
|
||||
private int[] rewardGroup;
|
||||
private int usePerCount;
|
||||
private boolean isopen;
|
||||
private int isSave;
|
||||
private int[] heroStar;
|
||||
private int ifopen;
|
||||
private int ifResolve;
|
||||
private String resolveReward;
|
||||
private long itemNumlimit;
|
||||
private int[][] extraReward;
|
||||
private int recycle;
|
||||
|
||||
private static Map<Integer,SItemConfig> map = new HashMap<>();
|
||||
|
||||
public static void init(){
|
||||
map = FileCacheUtils.getConfig(SItemConfig.class);
|
||||
}
|
||||
|
||||
public static Map<Integer,String> toMap(){
|
||||
Map<Integer,String> toMap = new HashMap<>();
|
||||
map.values().forEach(v-> toMap.put(v.getId(),v.getName()));
|
||||
return toMap;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public boolean isBackpackOrNot() {
|
||||
return backpackOrNot;
|
||||
}
|
||||
|
||||
public void setBackpackOrNot(boolean backpackOrNot) {
|
||||
this.backpackOrNot = backpackOrNot;
|
||||
}
|
||||
|
||||
public int getItemType() {
|
||||
return itemType;
|
||||
}
|
||||
|
||||
public void setItemType(int itemType) {
|
||||
this.itemType = itemType;
|
||||
}
|
||||
|
||||
public int getItemBaseType() {
|
||||
return itemBaseType;
|
||||
}
|
||||
|
||||
public void setItemBaseType(int itemBaseType) {
|
||||
this.itemBaseType = itemBaseType;
|
||||
}
|
||||
|
||||
public int getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(int quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
public int getUseType() {
|
||||
return useType;
|
||||
}
|
||||
|
||||
public void setUseType(int useType) {
|
||||
this.useType = useType;
|
||||
}
|
||||
|
||||
public int[] getRewardGroup() {
|
||||
return rewardGroup;
|
||||
}
|
||||
|
||||
public void setRewardGroup(int[] rewardGroup) {
|
||||
this.rewardGroup = rewardGroup;
|
||||
}
|
||||
|
||||
public int getUsePerCount() {
|
||||
return usePerCount;
|
||||
}
|
||||
|
||||
public void setUsePerCount(int usePerCount) {
|
||||
this.usePerCount = usePerCount;
|
||||
}
|
||||
|
||||
public boolean isIsopen() {
|
||||
return isopen;
|
||||
}
|
||||
|
||||
public void setIsopen(boolean isopen) {
|
||||
this.isopen = isopen;
|
||||
}
|
||||
|
||||
public int getIsSave() {
|
||||
return isSave;
|
||||
}
|
||||
|
||||
public void setIsSave(int isSave) {
|
||||
this.isSave = isSave;
|
||||
}
|
||||
|
||||
public int[] getHeroStar() {
|
||||
return heroStar;
|
||||
}
|
||||
|
||||
public void setHeroStar(int[] heroStar) {
|
||||
this.heroStar = heroStar;
|
||||
}
|
||||
|
||||
public int getIfopen() {
|
||||
return ifopen;
|
||||
}
|
||||
|
||||
public void setIfopen(int ifopen) {
|
||||
this.ifopen = ifopen;
|
||||
}
|
||||
|
||||
public int getIfResolve() {
|
||||
return ifResolve;
|
||||
}
|
||||
|
||||
public void setIfResolve(int ifResolve) {
|
||||
this.ifResolve = ifResolve;
|
||||
}
|
||||
|
||||
public String getResolveReward() {
|
||||
return resolveReward;
|
||||
}
|
||||
|
||||
public void setResolveReward(String resolveReward) {
|
||||
this.resolveReward = resolveReward;
|
||||
}
|
||||
|
||||
public long getItemNumlimit() {
|
||||
return itemNumlimit;
|
||||
}
|
||||
|
||||
public void setItemNumlimit(long itemNumlimit) {
|
||||
this.itemNumlimit = itemNumlimit;
|
||||
}
|
||||
|
||||
public int[][] getExtraReward() {
|
||||
return extraReward;
|
||||
}
|
||||
|
||||
public void setExtraReward(int[][] extraReward) {
|
||||
this.extraReward = extraReward;
|
||||
}
|
||||
|
||||
public int getRecycle() {
|
||||
return recycle;
|
||||
}
|
||||
|
||||
public void setRecycle(int recycle) {
|
||||
this.recycle = recycle;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package com.jmfy.utils;
|
||||
|
||||
import com.jmfy.model.config.SItemConfig;
|
||||
import config.SRechargeCommodityConfig;
|
||||
|
||||
import java.io.*;
|
||||
|
@ -21,11 +22,12 @@ public class FileCacheUtils {
|
|||
} else {// Linux 系统
|
||||
path = "../config/jsonconf/";
|
||||
}
|
||||
itemNameMap = readFile("ItemConfig.txt");
|
||||
itemFlowResson = readFile("Reason.txt");
|
||||
|
||||
// 道具
|
||||
SItemConfig.init();
|
||||
itemNameMap = SItemConfig.toMap();
|
||||
// 礼包
|
||||
rechargeMap = getConfig(SRechargeCommodityConfig.class);
|
||||
|
||||
SRechargeCommodityConfig.init();
|
||||
}
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
<h1><p class="f-20 text-success">太初行管理后台</p></h1>
|
||||
</div>
|
||||
<div style="margin-left: 20px;font-size: 18px">
|
||||
<p style="color: red">更新日志[2021-9-3]</p>
|
||||
<p>1、自动开服功能,优化,延迟30秒验证状态</p>
|
||||
<p style="color: red">更新日志[2021-9-22]</p>
|
||||
<p>1、更新道具和礼包表</p>
|
||||
</div>
|
||||
<footer class="footer mt-20">
|
||||
</footer>
|
||||
|
|
Loading…
Reference in New Issue