private function checkSaleCredential(Customer $customer, $sale) { if ($sale = '1元专区') { return !$customer->hasPurchesedOneSale(); } return true; }