Просмотр исходного кода

limitBuyClearType 循环清空是1,定时清空是2

shizhongqi 3 месяцев назад
Родитель
Сommit
ec8e2aaa1b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      biz-ghs/product/classes/ProductClass.php

+ 2 - 2
biz-ghs/product/classes/ProductClass.php

@@ -2886,7 +2886,7 @@ class ProductClass extends BaseClass
             return $info;
         }
 
-        $info['limitBuyClearType'] = 1;
+        $info['limitBuyClearType'] = 2;
         $info['limitBuyClearTypeName'] = '定时清空';
         $info['limitBuyClearAt'] = $clearAt;
         $info['limitBuyClearTime'] = date('Y-m-d H:i:s', $clearAt);
@@ -2895,7 +2895,7 @@ class ProductClass extends BaseClass
 
         $loopConfig = self::getLimitBuyClearLoopConfigByProductId($productId);
         if (!empty($loopConfig)) {
-            $info['limitBuyClearType'] = 2;
+            $info['limitBuyClearType'] = 1;
             $info['limitBuyClearTypeName'] = '循环清空';
             $info['limitBuyClearIntervalDays'] = intval($loopConfig['intervalDays'] ?? 0);
             $info['cleartAt'] = intval($loopConfig['clearHour'] ?? 0);