|
|
@@ -1941,12 +1941,14 @@ class ProductClass extends BaseClass
|
|
|
//创建限购缓存
|
|
|
if ($data['limitBuy'] > 0 && isset($data['limitBuyClearTime']) && $data['limitBuyClearTime'] != '') {
|
|
|
$limitBuyClearTime = strtotime($data['limitBuyClearTime']);
|
|
|
- if ($limitBuyClearTime > 0) {
|
|
|
+ if ($limitBuyClearTime > time()) {
|
|
|
if ($type == 'ghs') {
|
|
|
self::createLimitBuyCache($id, $limitBuyClearTime - time());
|
|
|
} else {
|
|
|
\bizHd\product\classes\ProductClass::createLimitBuyCache($id, $limitBuyClearTime - time());
|
|
|
}
|
|
|
+ } else {
|
|
|
+ util::fail('清空时间必须大于当前时间');
|
|
|
}
|
|
|
}
|
|
|
|