소스 검색

输出更新句子数量

visuddhinanda 1 년 전
부모
커밋
81c3cbe7e1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      api-v8/app/Console/Commands/MqAiTranslate.php

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

@@ -148,7 +148,8 @@ class MqAiTranslate extends Command
                     ]);
                     return 1;
                 } else {
-                    Log::info($queue . ' sentence update successful');
+                    $count = $response->json()['data']['count'];
+                    Log::info("{$queue} sentence update {$count} successful");
                 }
             }