瀏覽代碼

轮训支持5个

chenxiqiang 6 年之前
父節點
當前提交
c3a7358d6e

+ 1
- 1
manage-server/app/Http/Controllers/ClassifyController.php 查看文件

41
      */
41
      */
42
     public function home(Request $request)
42
     public function home(Request $request)
43
     {
43
     {
44
-        $top = Classify::where("location", "top")->orderBy("updated_at", "desc")->limit(3)->get()->toArray();
44
+        $top = Classify::where("location", "top")->orderBy("updated_at", "desc")->limit(5)->get()->toArray();
45
         //$bottom = Classify::where("location", "bottom")->orderBy("updated_at", "desc")->first();
45
         //$bottom = Classify::where("location", "bottom")->orderBy("updated_at", "desc")->first();
46
         $homePage = HomePage::find(1);
46
         $homePage = HomePage::find(1);
47
         $tops = array_map(function ($t) {
47
         $tops = array_map(function ($t) {

+ 1
- 1
manage-server/app/Http/Controllers/ProductController.php 查看文件

101
      */
101
      */
102
     public function home(Request $request)
102
     public function home(Request $request)
103
     {
103
     {
104
-        $top = Product::where("show", 1)->orderBy("updated_at", "desc")->limit(3)->get()->toArray();
104
+        $top = Product::where("show", 1)->orderBy("updated_at", "desc")->limit(5)->get()->toArray();
105
 
105
 
106
         $tops = array_map(function ($t) {
106
         $tops = array_map(function ($t) {
107
             return [
107
             return [

Loading…
取消
儲存