mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 15:00:52 +00:00
【程序目录】优化秒杀添加
This commit is contained in:
parent
accd51388d
commit
459a90e07a
@ -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'] . ')限量');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user