Explorar o código

商城,数据格式

lizhen_gitee hai 11 meses
pai
achega
15993c6773
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      addons/unishop/controller/Product.php

+ 1 - 1
addons/unishop/controller/Product.php

@@ -173,7 +173,7 @@ class Product extends Base
         if ($result) {
             $result = collection($result)->toArray();
         } else {
-            $this->error('没有更多数据');
+            $result = [];
         }
         $this->success('', $result);
     }