541469799@qq.com 1 năm trước cách đây
mục cha
commit
650e9c3798
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/index/service/Cart.php

+ 1 - 1
app/index/service/Cart.php

@@ -70,7 +70,7 @@ class Cart extends BaseService
         $model = new CartModel;
         $carts = $model->where('user_id', '=', $userId)
             ->where('is_delete', '=', 0)
-            ->select();
+            ->select()->toArray();
         return array_column($carts,'id');
     }