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

Merge branch 'zzd' of ssh://was.baoshi56.com:10022/var/git/bswas

LD 5 лет назад
Родитель
Сommit
5078ea046f
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      app/Http/Controllers/TestController.php

+ 5 - 5
app/Http/Controllers/TestController.php

@@ -163,11 +163,11 @@ class TestController extends Controller
         $owners = Owner::query()->withCount(["ownerPriceDirectLogistics","ownerPriceLogistics","ownerPriceExpresses","ownerPriceOperations","ownerStoragePriceModels"])->get();
         foreach ($owners as $owner){
             $arr = [];
-            if ($owner->owner_storage_price_models_count > 0)$arr[] = "0";
-            if ($owner->owner_price_operations_count > 0)$arr[] = "1";
-            if ($owner->owner_price_expresses_count > 0)$arr[] = "2";
-            if ($owner->owner_price_logistics_count > 0)$arr[] = "3";
-            if ($owner->owner_price_direct_logistics_count > 0)$arr[] = "4";
+            if ($owner->owner_storage_price_models_count > 0)$arr[] = 0;
+            if ($owner->owner_price_operations_count > 0)$arr[] = 1;
+            if ($owner->owner_price_expresses_count > 0)$arr[] = 2;
+            if ($owner->owner_price_logistics_count > 0)$arr[] = 3;
+            if ($owner->owner_price_direct_logistics_count > 0)$arr[] = 4;
             $owner->update(["relevance"=>json_encode($arr)]);
         }
     }