Browse Source

按模块一半分给夜景一半分给公共

menglu 3 years ago
parent
commit
141e7a7a89

+ 4 - 0
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ToolUtil.java

@@ -104,6 +104,10 @@ public class ToolUtil {
 				GeneralZone = SETDLS2GeneralZone.get(SETDLS);
 				GeneralZone = SETDLS2GeneralZone.get(SETDLS);
 			}
 			}
 
 
+			if (is_public && (BKDRHash.getHashCode(SELTCU) % 13) % 2 == 0 || !is_public && (BKDRHash.getHashCode(SELTCU) % 13) % 2 == 1) {
+				continue;
+			}
+
 			int index = BKDRHash.getHashCode(SELTCC) % (levels.length * types.length);
 			int index = BKDRHash.getHashCode(SELTCC) % (levels.length * types.length);
 			int index_level = index / types.length;
 			int index_level = index / types.length;
 			int index_type = index % types.length;
 			int index_type = index % types.length;