Kirin před 3 roky
rodič
revize
1b3bbd55c0

+ 1 - 1
app/api/controller/store/StoreCartController.php

@@ -22,7 +22,7 @@ class StoreCartController
      */
     public function lst(Request $request)
     {
-        return app('json')->successful(StoreCart::getUserProductCartList($request->uid(), '', 0, $request->store_id()));
+        return app('json')->successful(StoreCart::getUserProductCartList($request->uid(), '', 0, $request->store_id()) ?: StoreCart::getErrorInfo());
     }
 
     /**