@@ -245,7 +245,7 @@ class StoreOrderCartInfoServices extends BaseServices
*/
public function hasUserPurchasedProduct(int $uid, int $productId)
{
- $count = $this->dao->count([['uid', '=', $uid], ['product_id', '=', $productId]]);
+ $count = $this->dao->count([['uid', '=', $uid], ['product_id', '=', $productId],['order_type', '=', 1]]);
return $count > 0;
}