Browse Source

没有设置清空时,则删除缓存

shizhongqi 3 months ago
parent
commit
ef129d76ee
1 changed files with 6 additions and 0 deletions
  1. 6 0
      biz-ghs/product/classes/ProductClass.php

+ 6 - 0
biz-ghs/product/classes/ProductClass.php

@@ -1978,6 +1978,12 @@ class ProductClass extends BaseClass
                 } else {
                 } else {
                     util::fail('清空时间必须大于当前时间');
                     util::fail('清空时间必须大于当前时间');
                 }
                 }
+            } else { // 没有设置清空时间,则删除缓存
+                if ($type == 'ghs') {
+                    self::createLimitBuyCache($id, 0);
+                } else {
+                    \bizHd\product\classes\ProductClass::createLimitBuyCache($id, 0);
+                }
             }
             }
         }
         }