Просмотр исходного кода

lightOffTask Builder参数错误

LD 4 лет назад
Родитель
Сommit
fe94b12d0f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/CacheShelfService.php

+ 1 - 1
app/Services/CacheShelfService.php

@@ -55,7 +55,7 @@ class   CacheShelfService
      */
     public function lightOffTask($locCode, $PTLAction): array
     {
-        $station = Station::query()->with(['pendingStationTask.stationTaskMaterialBoxes.materialBox','storage'=>function(Builder $query){
+        $station = Station::query()->with(['pendingStationTask.stationTaskMaterialBoxes.materialBox','storage'=>function($query){
             $query->whereNotNull("material_box_id")->orderByDesc("updated_at");
         }])->where('code', $locCode)->first();
         //站存在 站为缓存架2 站为蓝灯状态