541469799@qq.com 1 year ago
parent
commit
650e9c3798
1 changed files with 1 additions and 1 deletions
  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');
     }