Browse Source

add debug info

xielin 5 years ago
parent
commit
b3fb16ea2c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Service/DetectionService.php

+ 2 - 0
app/Service/DetectionService.php

@@ -2,6 +2,7 @@
 namespace App\Service;
 
 use Green\Request\V20170112 as Green;
+use Illuminate\Support\Facades\Log;
 
 class DetectionService
 {
@@ -85,6 +86,7 @@ class DetectionService
     private function processSceneResult($taskResult, &$flag){
         $sceneResults = $taskResult->results;
         foreach ($sceneResults as $sceneResult) {
+            Log::debug('detection-result:'.json_encode($sceneResult));
             //根据scene和suggetion做相关的处理
             $suggestion = $sceneResult->suggestion;
             $rate = $sceneResult->rate;