【程序目录】优化秒杀添加

This commit is contained in:
wuhaotian 2025-07-28 14:05:19 +08:00
parent accd51388d
commit 459a90e07a

View File

@ -861,9 +861,9 @@ class StoreSeckillServices extends BaseServices
if (!isset($sattr['price']) || !$sattr['price']) {
throw new AdminException('请填写商品(' . $product['store_name'] . ' | ' . $sattr['suk'] . ')活动价');
}
if ($sattr['price'] > $sattr['ot_price']) {
throw new AdminException('商品(' . $product['store_name'] . ' | ' . $sattr['suk'] . ')活动价不能大于原价');
}
// if ($sattr['price'] > $sattr['ot_price']) {
// throw new AdminException('商品(' . $product['store_name'] . ' | ' . $sattr['suk'] . ')活动价不能大于原价');
// }
if (!isset($sattr['quota']) || !$sattr['quota']) {
throw new AdminException('请填写商品(' . $product['store_name'] . ' | ' . $sattr['suk'] . ')限量');
}