调整活动商品限购
This commit is contained in:
parent
566808e9d0
commit
8386b526a6
@ -119,7 +119,7 @@ class StoreActivityDao extends BaseDao
|
||||
public function canBuy($userId, $productId)
|
||||
{
|
||||
$activityId = Db::name('cloud_product')->where('product_id', $productId)->value('activity_id');
|
||||
$find = Db::name('store_activity_order_product')->where('user_id', $userId)->where('product_id', $productId)->where('status', 1)->find();
|
||||
$find = Db::name('store_activity_order_product')->where('user_id', $userId)->where('status', 1)->find();
|
||||
if ($find && $activityId == 2) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user