chore: clean local URLs from release artifacts
This commit is contained in:
@@ -7,7 +7,11 @@ require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
|
||||
$dotenv->safeLoad();
|
||||
|
||||
$baseUrl = 'http://127.0.0.1:8787';
|
||||
$baseUrl = trim((string)($_ENV['SMOKE_BASE_URL'] ?? getenv('SMOKE_BASE_URL') ?: ''));
|
||||
if ($baseUrl === '') {
|
||||
$baseUrl = 'https://api.anxinjianyan.com';
|
||||
}
|
||||
$baseUrl = rtrim($baseUrl, '/');
|
||||
|
||||
function requestJson(string $method, string $url, array $payload = [], array $headers = []): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user