src/PHPDish/Bundle/PaymentBundle/Service/WalletManager.php
public function refuseWithdraw(WalletHistoryInterface $history, $reason = null)
    {
        $history->getWallet()->release($history->getAmount()); //钱包释放资本
        $history->setDescription(
            $history->getDescription() . "; " . $this->translator->trans('withdraw.decline_reason', [
                '%reason%' => $reason ?: $this->translator->trans('withdraw.no_reason')
            ])
        );
        $history->setStatus(PaymentInterface::STATUS_CLOSED);
        $this->entityManager->persist($history);
        $this->entityManager->flush();
        //提现拒绝之后
        $this->eventDispatcher->dispatch(PaymentEvent::WITHDRAW_DECLINED, new PaymentEvent($history));
    }
public function refuseWithdraw(WalletHistoryInterface $history, $reason = null)
    {
        $history->getWallet()->release($history->getAmount()); //钱包释放资本
        $history->setDescription(
            $history->getDescription() . "; " . $this->translator->trans('withdraw.decline_reason', [
                '%reason%' => $reason ?: $this->translator->trans('withdraw.no_reason')
            ])
        );
        $history->setStatus(PaymentInterface::STATUS_CLOSED);
        $this->entityManager->persist($history);
        $this->entityManager->flush();
        //提现拒绝之后
        $this->eventDispatcher->dispatch(PaymentEvent::WITHDRAW_DECLINED, new PaymentEvent($history));
    }
{@inheritdoc}