Skip to content

Commit

Permalink
Fixed Resolve Host
Browse files Browse the repository at this point in the history
  • Loading branch information
aliguyong committed Jun 4, 2020
1 parent 848c068 commit cab111e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Traits/EndpointTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ public static function resolveHost($product, $regionId = LocationService::GLOBAL
*/
public static function isGlobalProduct($productCode)
{
$global = LocationService::GLOBAL_REGION;
if (self::resolveHostByStatic($productCode, $global)) {
return true;
}
$productCode = strtolower($productCode);
return (bool)Config::get("endpoints.{$productCode}.global");
return (bool)Config::get("endpoints.{$productCode}.{$global}");
}

/**
Expand Down

0 comments on commit cab111e

Please sign in to comment.