From fe97904de00d6b79b1676bad0444021c236d46a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Sat, 23 Mar 2024 13:40:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Business/BusinessClient.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/Business/BusinessClient.php b/app/Services/Business/BusinessClient.php index 6ddd0e4..5f52015 100644 --- a/app/Services/Business/BusinessClient.php +++ b/app/Services/Business/BusinessClient.php @@ -186,7 +186,9 @@ abstract class BusinessClient ]; $promises[] = $client->postAsync($url, $options); } - Promise\Utils::unwrap($promises); - \Illuminate\Support\Facades\Log::info('本次批量同步数量: ' . count($promises)); + if ($promises) { + Promise\Utils::unwrap($promises); + \Illuminate\Support\Facades\Log::info('本次批量同步数量: ' . count($promises)); + } } }