Przeglądaj źródła

租户域名修改

liugc 1 rok temu
rodzic
commit
a8674f3d8a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/adminapi/lists/tenant/TenantLists.php

+ 2 - 2
app/adminapi/lists/tenant/TenantLists.php

@@ -66,10 +66,10 @@ class TenantLists extends BaseAdminDataLists implements ListsExcelInterface
         return array_map(function ($item) use ($domain) {
             // 拼接租户的链接 http://[sn].likeadmin-saas.localhost/admin/
             $http_prefix = self::checkHttp() ? 'https://' : 'http://';
-            $item['default_domain'] = $http_prefix . $item['sn'] . '.' . $domain . '/tenant/';
+            $item['default_domain'] = $http_prefix . $item['sn'] . '.' . $domain . '/';
 
             if ($item['domain_alias_enable'] === 0) {
-                $item['domain'] = $http_prefix . $item['domain_alias'] . '/tenant/';
+                $item['domain'] = $http_prefix . $item['domain_alias'] . '/';
             } else {
                 $item['domain'] = $item['default_domain'];
             }