Explorar el Código

商城,数据格式

lizhen_gitee hace 11 meses
padre
commit
15993c6773
Se han modificado 1 ficheros con 1 adiciones y 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);
     }