瀏覽代碼

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

LD 5 年之前
父節點
當前提交
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)]);
         }
     }