浏览代码

Merge branch 'develop'

master
Guillaume 3 年前
父节点
当前提交
c822bb6fa1
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      Resolver/MerchantResolver.php

+ 6
- 4
Resolver/MerchantResolver.php 查看文件

@@ -127,11 +127,13 @@ class MerchantResolver

public function getUrl(SectionInterface $section)
{
if ($this->urlResolver->isServerLocalhost()) {
return $this->router->generate('frontend_home', ['section' => $section->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL);
} else {
return $this->settingSolver->getSettingValue($section->getMerchant(), MerchantSettingDefinition::SETTING_URL);
$url = $this->settingSolver->getSettingValue($section->getMerchant(), MerchantSettingDefinition::SETTING_URL);
if(!$section->getIsDefault()) {
$url .= $section->getSlug();
}

return$url;
}

public function getMerchantUser(UserInterface $user = null)

正在加载...
取消
保存