API 傳檔改 等待 300秒 connectTimeout 也改 300 20250604

This commit is contained in:
allen.yan 2025-06-04 17:34:50 +08:00
parent 758ae1f0bc
commit fbc627b11a

View File

@ -173,7 +173,7 @@ class ApiClient
{ {
return $this->requestWithCatch(function () use ($endpoint, $files, $data) { return $this->requestWithCatch(function () use ($endpoint, $files, $data) {
$request = $this->timeout(300) $request = $this->timeout(300)
->connectTimeout(10) ->connectTimeout(300)
->withDefaultHeaders(); ->withDefaultHeaders();
foreach ($files as $key => $filePath) { foreach ($files as $key => $filePath) {
$filename = basename($filePath); $filename = basename($filePath);