zhangchangchun 5 年之前
父節點
當前提交
8e88c8b409
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 7 0
      app/Http/Controllers/ConfigController.php
  2. 1 0
      app/Repositories/CategoryRepository.php

+ 7 - 0
app/Http/Controllers/ConfigController.php

@@ -80,6 +80,13 @@ class ConfigController extends Controller
                 'is_hot'=>'热门话题',
                 'is_open'=>'开启',
                 'is_close'=>'关闭',
+            ],
+            'banner_type'=>[
+                0=>'纯展示',
+                1=>'内容',
+                2=>'用户',
+                3=>'活动',
+                4=>'话题',
             ]
         ];
     }

+ 1 - 0
app/Repositories/CategoryRepository.php

@@ -12,6 +12,7 @@ use App\Models\CategoryTopic;
 use Dingo\Api\Http\Response;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Database\QueryException;
+use Illuminate\Support\Facades\Log;
 
 class CategoryRepository {
     public function __construct(Category $category,CategoryTopic $categoryTopic){