소스 검색

轮训支持5个

chenxiqiang 7 년 전
부모
커밋
c3a7358d6e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      manage-server/app/Http/Controllers/ClassifyController.php
  2. 1
    1
      manage-server/app/Http/Controllers/ProductController.php

+ 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…
취소
저장