Browse Source

细节优化

萤火科技 1 năm trước cách đây
mục cha
commit
a4a1eae7a4
2 tập tin đã thay đổi với 3 bổ sung và 20 xóa
  1. 1 18
      app/common/model/Page.php
  2. 2 2
      cores/BaseTimer.php

+ 1 - 18
app/common/model/Page.php

@@ -393,24 +393,7 @@ class Page extends BaseModel
                     ]
                 ],
                 // '手动选择' => 默认数据
-                'data' => [
-                    [
-                        'goods_name' => '此处显示商品名称',
-                        'goods_image' => base_url() . 'assets/store/img/diy/goods/01.png',
-                        'goods_price_min' => '99.00',
-                        'line_price_min' => '139.00',
-                        'selling_point' => '此款商品美观大方 不容错过',
-                        'goods_sales' => 100
-                    ],
-                    [
-                        'goods_name' => '此处显示商品名称',
-                        'goods_image' => base_url() . 'assets/store/img/diy/goods/01.png',
-                        'goods_price_min' => '99.00',
-                        'line_price_min' => '139.00',
-                        'selling_point' => '此款商品美观大方 不容错过',
-                        'goods_sales' => 100
-                    ]
-                ]
+                'data' => []
             ],
             'service' => [
                 'name' => '在线客服',

+ 2 - 2
cores/BaseTimer.php

@@ -21,8 +21,8 @@ use think\facade\Cache;
  */
 class BaseTimer
 {
-    // 当前任务唯一标识
-    protected string $taskKey = 'BaseTimer';
+    // 当前任务唯一标识 (由子类定义)
+    protected string $taskKey = '';
 
     // 任务执行间隔时长 (单位:秒)
     protected int $taskExpire = 60 * 30;