Pārlūkot izejas kodu

失败返回body

visuddhinanda 1 gadu atpakaļ
vecāks
revīzija
0bdf4373bc
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      api-v8/app/Console/Commands/UpgradeCompound.php

+ 2 - 1
api-v8/app/Console/Commands/UpgradeCompound.php

@@ -15,6 +15,7 @@ use Illuminate\Support\Facades\Log;
 
 use App\Tools\TurboSplit;
 use App\Http\Api\DictApi;
+use GuzzleHttp\Exception\GuzzleException;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Facades\Http;
 
@@ -331,7 +332,7 @@ class UpgradeCompound extends Command
                 $httpError = false;
             } else {
                 $this->error('upload fail.');
-                Log::error('upload fail.');
+                Log::error('upload fail.' . $response->body());
             }
         } catch (\Throwable $throwable) {
             Log::error('send notification failed', ['exception' => $throwable]);