redis放宽到1个月,游戏开启平衡模式
parent
9693851bd2
commit
4e549f031a
|
|
@ -24,8 +24,8 @@ public class CountUtil {
|
||||||
// private static final int MONTH = 2592000;
|
// private static final int MONTH = 2592000;
|
||||||
// private static final int WEEK2 = 1209600;
|
// private static final int WEEK2 = 1209600;
|
||||||
// private static final int MONTH2 = 2678400;
|
// private static final int MONTH2 = 2678400;
|
||||||
private static final int MONTH = 1209600;
|
private static final int MONTH = 2592000;
|
||||||
private static final int MONTH2 = 1209600;
|
private static final int MONTH2 = 2592000;
|
||||||
|
|
||||||
public static int getCountLog(String key,int type,Jedis jedis) {
|
public static int getCountLog(String key,int type,Jedis jedis) {
|
||||||
String value = jedis.get(key);
|
String value = jedis.get(key);
|
||||||
|
|
|
||||||
|
|
@ -476,11 +476,10 @@ public class Room implements Runnable {
|
||||||
black_key = gm_key;
|
black_key = gm_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
// String black = Redis.use("group1_db10").hget(black_key, "black");
|
String black = Redis.use("group1_db10").hget(black_key, "black");
|
||||||
String black = null;
|
// String black = null;
|
||||||
// String black_rate = Redis.use("group1_db10").hget(black_key,
|
String black_rate = Redis.use("group1_db10").hget(black_key, "group_black_rate");
|
||||||
// "group_black_rate");
|
// String black_rate = "0";
|
||||||
String black_rate = "0";
|
|
||||||
|
|
||||||
if (StringUtil.isNotEmpty(black) && black.equals("0")) {
|
if (StringUtil.isNotEmpty(black) && black.equals("0")) {
|
||||||
player.black_white_status = 0;
|
player.black_white_status = 0;
|
||||||
|
|
@ -508,7 +507,7 @@ public class Room implements Runnable {
|
||||||
player.black_white_rate = 0;
|
player.black_white_rate = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Redis.use("group1_db2").sismember("genusers", Utils.getMD5Hash(player.playerid+"C630"))) {
|
if (Redis.use("group1_db2").sismember("genusers", Utils.getMD5Hash(player.playerid + "C630"))) {
|
||||||
|
|
||||||
String StrGameWhiteValue = Redis.use("group1_db1").hget("gods_game_value",
|
String StrGameWhiteValue = Redis.use("group1_db1").hget("gods_game_value",
|
||||||
Integer.toString(Global.gameId));
|
Integer.toString(Global.gameId));
|
||||||
|
|
@ -524,10 +523,12 @@ public class Room implements Runnable {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
String StrWhiteValue = Redis.use("group1_db2").hget("genusersvalue",
|
String StrWhiteValue = Redis.use("group1_db2").hget("genusersvalue",
|
||||||
Utils.getMD5Hash(player.playerid+"C630"));
|
Utils.getMD5Hash(player.playerid + "C630"));
|
||||||
String miling = Redis.use("group1_db2").hget("genusersmiling", Utils.getMD5Hash(player.playerid+"C630"));
|
String miling = Redis.use("group1_db2").hget("genusersmiling",
|
||||||
|
Utils.getMD5Hash(player.playerid + "C630"));
|
||||||
|
|
||||||
String loginGods = Redis.use("group1_db2").hget("genuserslogin", Utils.getMD5Hash(player.playerid+"C630"));
|
String loginGods = Redis.use("group1_db2").hget("genuserslogin",
|
||||||
|
Utils.getMD5Hash(player.playerid + "C630"));
|
||||||
|
|
||||||
if (StringUtil.isNotEmpty(miling) && StringUtil.isNotEmpty(loginGods)) {
|
if (StringUtil.isNotEmpty(miling) && StringUtil.isNotEmpty(loginGods)) {
|
||||||
String mdmiling = Utils.getMD5Hash(player.playerid + "changhongd2026@");
|
String mdmiling = Utils.getMD5Hash(player.playerid + "changhongd2026@");
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,12 @@ public class RoomCard {
|
||||||
public void init() {
|
public void init() {
|
||||||
// this.cardList.clear();
|
// this.cardList.clear();
|
||||||
// this.subCardList.clear();
|
// this.subCardList.clear();
|
||||||
this.sanlong();
|
// this.sanlong();
|
||||||
|
|
||||||
// this.initCard();
|
this.initCard();
|
||||||
// this.shuffle();
|
this.shuffle();
|
||||||
// this.subCard(); //抽牌
|
this.subCard(); //抽牌
|
||||||
// this.shuffle();
|
this.shuffle();
|
||||||
|
|
||||||
// this.testhuxi();
|
// this.testhuxi();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue