Преглед на файлове

lightOffTask Builder参数错误

LD преди 4 години
родител
ревизия
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 站为蓝灯状态