moshaorui 4 달 전
부모
커밋
810aa76230
2개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      app/Distributor/Controllers/SitePagesTagController.php
  2. 5 1
      app/Providers/AppServiceProvider.php

+ 3 - 2
app/Distributor/Controllers/SitePagesTagController.php

@@ -39,9 +39,10 @@ class SitePagesTagController extends AdminDistController
     {
         return Grid::make(new SitePagesTag(), function (Grid $grid) {
             $grid->column('id')->sortable();
-            $grid->column('name');
-            $grid->column('seo_title');
+            $grid->column('name')->width('20%');
+            $grid->column('seo_title')->width('20%');
             $grid->column('seo_keywords');
+            $grid->column('created_at');
             //$grid->column('seo_description');
             $grid->filter(function (Grid\Filter $filter) {
                 $filter->panel();

+ 5 - 1
app/Providers/AppServiceProvider.php

@@ -38,7 +38,11 @@ class AppServiceProvider extends ServiceProvider
                 // 输出到控制台
                 //dump($sql . ' [' . $query->time . 'ms]');
                 //输出到log
-                Log::info($sql . ' [' . $query->time . 'ms]');
+                if ($query->time > 1000) {
+                    Log::error($sql . ' [' . $query->time . 'ms]');
+                } else {
+                    Log::info($sql . ' [' . $query->time . 'ms]');
+                }
             });
         }