调整活动商品限购

This commit is contained in:
luofei 2024-01-23 11:43:25 +08:00
parent 566808e9d0
commit 8386b526a6

View File

@ -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;
}