Kirin %!s(int64=3) %!d(string=hai) anos
pai
achega
1b3bbd55c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/api/controller/store/StoreCartController.php

+ 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());
     }
 
     /**