Merge branch 'feature/testing_resource_admin' of wmtx/platform into release

优化
master
廖金灵 4 years ago committed by Gogs
commit 7de7482f2a

@ -513,12 +513,20 @@ class TestingResourceService
public function getResourceTypes($game)
{
$gameSetting = $this->repository->getGameSettingByGameId($game['id']);
if ($gameSetting['has_itf'] == 0) {
return [];
}
$gameResource = new GameResource($game);
return $gameResource->getResourceTypes();
}
public function getResources($game, $typeId = null)
{
$gameSetting = $this->repository->getGameSettingByGameId($game['id']);
if ($gameSetting['has_itf'] == 0) {
return [];
}
$gameResource = new GameResource($game);
return $gameResource->getResources($typeId);
}

Loading…
Cancel
Save