|
|
@@ -2785,6 +2785,9 @@ class ProductClass extends BaseClass
|
|
|
// 解析循环清空限购配置
|
|
|
public static function getLimitBuyClearLoopConfig($data)
|
|
|
{
|
|
|
+ if ($data['limitBuyClearType'] == 0) {
|
|
|
+ return [];
|
|
|
+ }
|
|
|
$hasIntervalDays = array_key_exists('limitBuyClearIntervalDays', $data) && $data['limitBuyClearIntervalDays'] !== '';
|
|
|
$hasClearHour = (array_key_exists('cleartAt', $data) && $data['cleartAt'] !== '')
|
|
|
|| (array_key_exists('clearAt', $data) && $data['clearAt'] !== '');
|