Ver código fonte

笛卡尔积

kphcdr 1 ano atrás
pai
commit
d4a2628a29
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Modules/Admin/Services/SpecService.php

+ 1 - 1
app/Modules/Admin/Services/SpecService.php

@@ -96,7 +96,7 @@ class SpecService extends BaseService
      */
     public function cartesian(array $specIdArr)
     {
-        $specS = Spec::whereIn("id", $specIdArr)->get();
+        $specS = Spec::with("attrs")->whereIn("id", $specIdArr)->get();
 
         $attrS = collect();
         $cartesianProduct = new CartesianProduct();