src/PHPDish/Bundle/PaymentBundle/Service/WalletManager.php
public function addHistory(WalletInterface $wallet, WalletHistoryInterface $history)
    {
        $wallet->addHistory($history);
        //收入的话，增加钱包余额
        if ($history->isIncome()) {
            $wallet->setAmount(
                $wallet->getAmount() + $history->getAmount()
            );
        }
        $this->saveWallet($wallet);
    }
public function addHistory(WalletInterface $wallet, WalletHistoryInterface $history)
    {
        $wallet->addHistory($history);
        //收入的话，增加钱包余额
        if ($history->isIncome()) {
            $wallet->setAmount(
                $wallet->getAmount() + $history->getAmount()
            );
        }
        $this->saveWallet($wallet);
    }
{@inheritdoc}