成功页面重定向问题magento 2

成功页面重定向问题magento 2,magento,magento2,Magento,Magento2,$this->checkoutSession->getLastSuccessQuoteId() $this->checkoutSession->getLastQuoteId() $this->checkoutSession->getLastOrderId() 这些东西在付款成功后总是返回false,所以我总是重定向到购物车页面。我搜索了谷歌和每一个地方,但没有找到有用的。我的模型文件是: vendor/magento/module checkout/Model/Session/SuccessVa

$this->checkoutSession->getLastSuccessQuoteId()

$this->checkoutSession->getLastQuoteId()

$this->checkoutSession->getLastOrderId()

这些东西在付款成功后总是返回false,所以我总是重定向到购物车页面。我搜索了谷歌和每一个地方,但没有找到有用的。我的模型文件是:

vendor/magento/module checkout/Model/Session/SuccessValidator.php

public function isValid()
    {
        if (!$this->checkoutSession->getLastSuccessQuoteId()) {
            return false;
        }

        if (!$this->checkoutSession->getLastQuoteId() || !$this->checkoutSession->getLastOrderId()) {
            return false;
        }
        return true;
    }