Magento2里怎么用代码获取后台设置的国家
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$scopeConfig = $objectManager->create('MagentoFrameworkAppConfigScopeConfigInterface');
$countryCode= $scopeConfig->getValue('general/country/default', MagentoStoreModelScopeInterface::SCOPE_STORE);
$countryName = $objectManager->create('MagentoDirectoryModelCountry')->load($countryCode)->getName();