Browse Source

商城,数据格式

lizhen_gitee 11 months ago
parent
commit
15993c6773
1 changed files with 1 additions and 1 deletions
  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);
     }