Jelajahi Sumber

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

shizhongqi 2 bulan lalu
induk
melakukan
ef129d76ee
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  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 {
                     util::fail('清空时间必须大于当前时间');
                 }
+            } else { // 没有设置清空时间,则删除缓存
+                if ($type == 'ghs') {
+                    self::createLimitBuyCache($id, 0);
+                } else {
+                    \bizHd\product\classes\ProductClass::createLimitBuyCache($id, 0);
+                }
             }
         }