Jelajahi Sumber

获取产品详情

afa 7 bulan lalu
induk
melakukan
853a3da4ea
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/common/model/ProductLists.php

+ 1 - 1
application/common/model/ProductLists.php

@@ -43,7 +43,7 @@ class ProductLists extends Model
         if(empty($product_id)) return [];
         $info = self::whereIn('id', $product_id);
         if($type_id == ProductPledges::Combin) $info = $info->orderRaw('field(id,'. $product_id.')');
-        $info = $info->column('id,thum,'.$lan.'_name as name');
+        $info = $info->field('id,thum,'.$lan.'_name as name')->select();
         return $info ;
     }