541469799@qq.com hace 1 año
padre
commit
650e9c3798
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');
     }