jqh 5 年 前
コミット
7fc48fa9af

+ 0 - 3
src/Console/stubs/metrics/NewUsers.stub

@@ -51,21 +51,18 @@ class NewUsers extends Line
                 $this->withContent(mt_rand(1000, 5000).'k');
                 // 图表数据
                 $this->withChart(collect($generator(30))->toArray());
-                // 直线
                 break;
             case '30':
                 // 卡片内容
                 $this->withContent(mt_rand(400, 1000).'k');
                 // 图表数据
                 $this->withChart(collect($generator(30))->toArray());
-                // 直线
                 break;
             case '28':
                 // 卡片内容
                 $this->withContent(mt_rand(400, 1000).'k');
                 // 图表数据
                 $this->withChart(collect($generator(28))->toArray());
-                // 直线
                 break;
             case '7':
             default:

+ 1 - 1
src/Console/stubs/metrics/ProductOrders.stub

@@ -10,7 +10,7 @@ class ProductOrders extends Round
     /**
      * 初始化卡片内容
      */
-    public function init()
+    protected function init()
     {
         parent::init();
 

+ 1 - 1
src/Console/stubs/metrics/Sessions.stub

@@ -11,7 +11,7 @@ class Sessions extends Bar
     /**
      * 初始化卡片内容
      */
-    public function init()
+    protected function init()
     {
         parent::init();
 

+ 1 - 1
src/Console/stubs/metrics/Tickets.stub

@@ -10,7 +10,7 @@ class Tickets extends RadialBar
     /**
      * 初始化卡片内容
      */
-    public function init()
+    protected function init()
     {
         parent::init();
 

+ 1 - 1
src/Widgets/Metrics/RadialBar.php

@@ -50,7 +50,7 @@ class RadialBar extends Card
     /**
      * 初始化.
      */
-    public function init()
+    protected function init()
     {
         parent::init();