!286 京东打印

Merge pull request !286 from 杨建炊/fix-release-1.0.0/yjc-migrate
This commit is contained in:
杨建炊 2025-03-28 07:17:24 +00:00 committed by Gitee
commit 66320bdfcd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -191,14 +191,19 @@ abstract class BusinessClient
foreach ($batchParams as $param) {
$options = [
'headers' => ['Content-type' => 'application/x-www-form-urlencoded;'],
'form_params' => $param
'form_params' => $param,
"timeout" => 5
];
\Illuminate\Support\Facades\Log::info("请求参数",[$options,time()]);
\Illuminate\Support\Facades\Log::info("快团团请求参数", [$options, time()]);
$promises[] = $client->postAsync($url, $options);
}
if ($promises) {
try {
Promise\Utils::unwrap($promises);
}
\Illuminate\Support\Facades\Log::info("请求结束",[time()]);
} catch (\Exception $e) {
\Illuminate\Support\Facades\Log::error("快团团请求过程中出现错误: " . $e->getMessage());
}
}
\Illuminate\Support\Facades\Log::info("快团团请求结束", [time()]);
}
}