mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
购物车增加的时候验证限购
This commit is contained in:
parent
4477be2a58
commit
1dd4da9a78
@ -432,8 +432,10 @@ class StoreCartServices extends BaseServices
|
||||
*/
|
||||
public function setCartNum($uid, $productId, $num, $unique, $type)
|
||||
{
|
||||
//检查限购
|
||||
$this->checkLimit($uid, $productId, $num, 0);
|
||||
if ($type == 1) {
|
||||
//检查限购
|
||||
$this->checkLimit($uid, $productId, $num, 0);
|
||||
}
|
||||
|
||||
/** @var StoreProductAttrValueServices $attrValueServices */
|
||||
$attrValueServices = app()->make(StoreProductAttrValueServices::class);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user