我正在从acceleratorservices调用自定义插件页面,但它像本地主机:9002 / acceleratorservices / sop-mock / process一样返回

时间:2019-12-31 06:52:01

标签: hybris

在SilentOrderPostMockController中,我在if条件中添加条件

if (bindingResult.hasErrors())
        {
            // Validation errors
            params.put("decision", "REJECT");
            params.put("reasonCode", "102");
            params.put("decision_publicSignature", getMockedPublicDigest("REJECT" + "102"));

            // Remove card number on validation error
            params.remove("card_accountNumber");

            final List<String> missingFields = new ArrayList<String>();
            final List<String> invalidFields = new ArrayList<String>();

            processMissingFields(bindingResult, missingFields, invalidFields);

            for (int i = 0; i < missingFields.size(); i++)
            {
                params.put("MissingField" + i, missingFields.get(i));
            }
            for (int i = 0; i < invalidFields.size(); i++)
            {
                params.put("InvalidField" + i, invalidFields.get(i));
            }
**          return "addon:/elitekartb2caddon/" + "pages/checkout/multi/addPaymentMethodPage";**

        }

如果条件为true,要返回addPaymentMethodPage,我该如何实现

0 个答案:

没有答案
豫ICP备18024241号-1