Explorar el Código

拍灯errMsg报错

LD hace 4 años
padre
commit
c2c48b526d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Http/Controllers/api/thirdPart/haiq/LightController.php

+ 2 - 2
app/Http/Controllers/api/thirdPart/haiq/LightController.php

@@ -52,8 +52,8 @@ class LightController
                 /** @var CacheShelfService $cacheShelfService */
                 /** @var CacheShelfService $cacheShelfService */
                 $cacheShelfService = app(CacheShelfService::class);
                 $cacheShelfService = app(CacheShelfService::class);
                 $result =   $cacheShelfService->lightOffTask($request['locCode'],$request['PTLAction']);
                 $result =   $cacheShelfService->lightOffTask($request['locCode'],$request['PTLAction']);
-                $response['location']=$result['success'];
-                $response['errMsg']=$result['errMsg'];
+                $response['location']=$result['success']??'';
+                $response['errMsg']=$result['errMsg']??'';
                 return $response;
                 return $response;
             case 'U型线拍灯':
             case 'U型线拍灯':
 //                $this->foreignHaiRoboticsService->uLineLightPat($station);
 //                $this->foreignHaiRoboticsService->uLineLightPat($station);