This commit is contained in:
aozhiwei 2024-04-17 16:02:32 +08:00
parent a53be7974b
commit da04a02ed3
2 changed files with 6 additions and 2 deletions

View File

@ -572,6 +572,7 @@ class BattleController extends BaseAuthedController {
error_log(json_encode($customData));
$zoneId = $customData['zone_id'];
$nodeId = $customData['node_id'];
$modeId = $customData['mode_id'];
$mapId = $customData['map_id'];
$roomUuid = $customData['room_uuid'];
$startTime = $customData['start_time'];
@ -580,6 +581,7 @@ class BattleController extends BaseAuthedController {
'sign' => $sign,
'zone_id' => $zoneId,
'node_id' => $nodeId,
'mode_id' => $modeId,
'map_id' => $mapId,
'room_uuid' => $roomUuid,
'start_time' => $startTime,

View File

@ -460,7 +460,7 @@ class UserController extends BaseAuthedController {
$modeId = getReqVal('mode_id', 0);
$mapId = getReqVal('map_id', 0);
$mapInfo = array(
'mode_id' => $modeId,
'mode_id' => intval($modeId),
'map_id' => 0,
'is_moba' => 0,
'is_open' => 0
@ -469,6 +469,7 @@ class UserController extends BaseAuthedController {
$mapMeta = mt\Map::get($mapId);
if ($mapMeta) {
$mapInfo = $mapMeta;
$mapInfo['mode_id'] = intval($modeId);
}
}
myself()->_rspData($mapInfo);
@ -479,7 +480,7 @@ class UserController extends BaseAuthedController {
$modeId = getReqVal('mode_id', 0);
$mapId = getReqVal('map_id', 0);
$mapInfo = array(
'mode_id' => $modeId,
'mode_id' => intval($modeId),
'map_id' => 0,
'is_moba' => 0,
'is_open' => 0
@ -488,6 +489,7 @@ class UserController extends BaseAuthedController {
$mapMeta = mt\Map::get($mapId);
if ($mapMeta) {
$mapInfo = $mapMeta;
$mapInfo['mode_id'] = intval($modeId);
}
}
$userDb = SqlHelper::ormSelectOne