挑战副本改为读表

master_banhao
DESKTOP-C3M45P4\dengdan 2024-10-17 18:16:04 +08:00
parent 4d3798b06d
commit bb42f0b1c9
2 changed files with 8 additions and 0 deletions

View File

@ -108,6 +108,13 @@ public class ChallengeLogic {
//宝物副本星期2、4、6、7开启 //宝物副本星期2、4、6、7开启
int[][] config = {{1, 3, 5, 7}, {2, 4, 6, 7}}; int[][] config = {{1, 3, 5, 7}, {2, 4, 6, 7}};
//status = new int[2]; //status = new int[2];
if(SSpecialConfig.Tiaozhan_open_time != null && !"".equals(SSpecialConfig.Tiaozhan_open_time)){
config = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.Tiaozhan_open_time);
}
if(config.length<=0 || config.length > 2){
return;
}
for (int i = 0; i < config.length; i++) { for (int i = 0; i < config.length; i++) {
for (int j = 0; j < config[i].length; j++) { for (int j = 0; j < config[i].length; j++) {
// 判断当前周几 // 判断当前周几

View File

@ -90,6 +90,7 @@ public class SSpecialConfig implements BaseConfig {
public static final String Gem_Lottery10 = "Gem_Lottery10";//宝石十连所需道具 public static final String Gem_Lottery10 = "Gem_Lottery10";//宝石十连所需道具
public static final String Gem_Senior_Lottery = "Gem_Senior_Lottery";//高级宝石单抽所需道具 public static final String Gem_Senior_Lottery = "Gem_Senior_Lottery";//高级宝石单抽所需道具
public static final String Gem_Senior_Lottery10 = "Gem_Senior_Lottery10";//高级宝石十连所需道具 public static final String Gem_Senior_Lottery10 = "Gem_Senior_Lottery10";//高级宝石十连所需道具
public static final String Tiaozhan_open_time = "Tiaozhan_open_time";//挑战副本开启时间
@Override @Override
public void init() throws Exception { public void init() throws Exception {