Skip to content

Commit cab111e

Browse files
committed
Fixed Resolve Host
1 parent 848c068 commit cab111e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Traits/EndpointTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ public static function resolveHost($product, $regionId = LocationService::GLOBAL
6060
*/
6161
public static function isGlobalProduct($productCode)
6262
{
63+
$global = LocationService::GLOBAL_REGION;
64+
if (self::resolveHostByStatic($productCode, $global)) {
65+
return true;
66+
}
6367
$productCode = strtolower($productCode);
64-
return (bool)Config::get("endpoints.{$productCode}.global");
68+
return (bool)Config::get("endpoints.{$productCode}.{$global}");
6569
}
6670

6771
/**

0 commit comments

Comments
 (0)