Kirin hace 3 años
padre
commit
1b3bbd55c0
Se han modificado 1 ficheros con 1 adiciones y 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());
     }
 
     /**