API 傳檔改 等待 300秒 connectTimeout 也改 300 20250604
This commit is contained in:
parent
758ae1f0bc
commit
fbc627b11a
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user