1
This commit is contained in:
parent
e600de6b5b
commit
90502615f4
@ -24,6 +24,7 @@ require_once('mt/Item.php');
|
||||
require_once('mt/PveGeminiMode.php');
|
||||
require_once('mt/PveGemini.php');
|
||||
require_once('mt/Map.php');
|
||||
require_once('mt/MapMode.php');
|
||||
|
||||
require_once('services/AwardService.php');
|
||||
require_once('services/PropertyChgService.php');
|
||||
@ -465,11 +466,12 @@ class UserController extends BaseAuthedController {
|
||||
'is_moba' => 0,
|
||||
'is_open' => 0
|
||||
);
|
||||
if (!empty($mapId)) {
|
||||
if (!empty($mapId) && !empty($modeId)) {
|
||||
$mapMeta = mt\Map::get($mapId);
|
||||
if ($mapMeta) {
|
||||
$modeMeta = mt\MapMode::find($modeId);
|
||||
if ($mapMeta && $modeMeta) {
|
||||
$mapInfo = $mapMeta;
|
||||
$mapInfo['mode_id'] = intval($modeId);
|
||||
$mapInfo['mode_id'] = $modeMeta['id'];
|
||||
}
|
||||
}
|
||||
myself()->_rspData($mapInfo);
|
||||
@ -485,11 +487,12 @@ class UserController extends BaseAuthedController {
|
||||
'is_moba' => 0,
|
||||
'is_open' => 0
|
||||
);
|
||||
if (!empty($mapId)) {
|
||||
if (!empty($mapId) && !empty($modeId)) {
|
||||
$mapMeta = mt\Map::get($mapId);
|
||||
$modeMeta = mt\MapMode::find($modeId);
|
||||
if ($mapMeta) {
|
||||
$mapInfo = $mapMeta;
|
||||
$mapInfo['mode_id'] = intval($modeId);
|
||||
$mapInfo['mode_id'] = $modeMeta['id'];
|
||||
}
|
||||
}
|
||||
$userDb = SqlHelper::ormSelectOne
|
||||
|
Loading…
x
Reference in New Issue
Block a user