Commit 68c18446 authored by hangjun83's avatar hangjun83

优化

parent 454ac96c
......@@ -7,6 +7,7 @@ use App\Repositories\Contracts\ThirdApiPlatformRepository;
use App\Services\Kafka\KafkaService;
use App\Services\PlatformDataEntriesService;
use App\Support\Facades\SimpleKafka;
use Illuminate\Support\Str;
class ThirdPlatformService extends PlatformAbstractService
{
......@@ -28,7 +29,13 @@ class ThirdPlatformService extends PlatformAbstractService
if(!$platformInfo){
return false;
}
if($platformInfo['platform_type'] == 'self'){
$domain = substr($url, 7);
if(!Str::endsWith(strtolower((string) $platformInfo['platform_url']), $domain)){
return false;
}
}
return true;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment