|
@@ -81,7 +81,8 @@ class MapProc {
|
|
|
$data->position_y = $y;
|
|
|
$data->position_z = $z;
|
|
|
|
|
|
- $newMap->huichengquanRecord->$mid = $data;
|
|
|
+ $newMap->huichengquanRecord->$mapId = $data;
|
|
|
+ $newMap->lastMapId = $mapId;
|
|
|
|
|
|
ctx()->newMap = $newMap;
|
|
|
|
|
@@ -272,9 +273,22 @@ class MapProc {
|
|
|
# 检查目标地图是否已经解锁
|
|
|
my_Assert(isset($newMap->unlockedFootholds->$targetMapId), ErrCode::map_NotUnlocked);
|
|
|
$newMap->curMapId = $targetMapId;
|
|
|
+
|
|
|
+ $gateZone = GameConfig::gate_zone();
|
|
|
+ my_Assert($gateZone != null, ErrCode::err_const_no);
|
|
|
+ foreach ($gateZone as $zoneid => $val) {
|
|
|
+ $list = explode(',', $val->contains);
|
|
|
+ if(in_array($targetMapId, $list)){
|
|
|
+ $mid = $list[0];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $newMap->lastMapId = $mid;
|
|
|
+
|
|
|
ctx()->newMap = $newMap;
|
|
|
UserProc::updateUserInfo();
|
|
|
- return Resp::ok();
|
|
|
+ return Resp::ok($newMap);
|
|
|
}
|
|
|
|
|
|
/**
|