Przeglądaj źródła

商城,数据格式

lizhen_gitee 11 miesięcy temu
rodzic
commit
15993c6773
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
     }