|
@@ -88,23 +88,22 @@ class Ins_GateInfo extends Object_ext {
|
|
|
return Ints::Slice($gateId, 0, 1);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 从gateId中提取关卡地图资源类型(前端用)
|
|
|
- * @param type $gateId 1 无限地图 2 上下地图 3 有限地图
|
|
|
- * @return int 0..999
|
|
|
- */
|
|
|
- public static function GateMapRes($gateId) {
|
|
|
- return Ints::Slice($gateId, 1, 4);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 从gateId中提取关卡难度(挑战关卡分1,2,3)
|
|
|
- * @param type $gateId
|
|
|
- * @return int
|
|
|
- */
|
|
|
- public static function GateDifficultyFromId($gateId) {
|
|
|
- return Ints::Slice($gateId, 5, 1);
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 从gateId中提取关卡地图资源类型(前端用)
|
|
|
+// * @param type $gateId 1 无限地图 2 上下地图 3 有限地图
|
|
|
+// * @return int 0..999
|
|
|
+// */
|
|
|
+// public static function GateMapRes($gateId) {
|
|
|
+// return Ints::Slice($gateId, 1, 4);
|
|
|
+// }
|
|
|
+// /**
|
|
|
+// * 从gateId中提取关卡难度(挑战关卡分1,2,3)
|
|
|
+// * @param type $gateId
|
|
|
+// * @return int
|
|
|
+// */
|
|
|
+// public static function GateDifficultyFromId($gateId) {
|
|
|
+// return Ints::Slice($gateId, 5, 1);
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 关卡序号(最大999)
|
|
@@ -112,6 +111,7 @@ class Ins_GateInfo extends Object_ext {
|
|
|
* @return int
|
|
|
*/
|
|
|
public static function gateNum($gateId) {
|
|
|
- return Ints::Slice($gateId, 6, 3);
|
|
|
+ return $gateId % 1000;
|
|
|
+// return Ints::Slice($gateId, 6, 3);
|
|
|
}
|
|
|
}
|