From f283d2bdf74288a84287c30e83d586e1c249b1d0 Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Wed, 5 Oct 2022 18:05:04 +0900 Subject: [PATCH] =?UTF-8?q?=E7=84=A1=E5=8A=B9=E3=81=AA=E9=85=8D=E9=80=81?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=81=8C=E9=81=B8=E6=8A=9E=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=9F=E5=A0=B4=E5=90=88,=20E=5FUSER=5FERROR=20=E3=82=92?= =?UTF-8?q?=E3=82=B9=E3=83=AD=E3=83=BC=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/class/pages/shopping/LC_Page_Shopping_Payment.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/class/pages/shopping/LC_Page_Shopping_Payment.php b/data/class/pages/shopping/LC_Page_Shopping_Payment.php index 3882221d30..d0ee7e83af 100644 --- a/data/class/pages/shopping/LC_Page_Shopping_Payment.php +++ b/data/class/pages/shopping/LC_Page_Shopping_Payment.php @@ -378,6 +378,14 @@ public function lfRegistData($uniqid, $arrForm, &$objPurchase, $arrPayment) $arrForm['use_point'] = 0; } + $objDelivery = new SC_Helper_Delivery(); + $validDelivery = array_filter($objDelivery->getList($this->cartKey), function ($delivery) use ($arrForm) { + return $arrForm['deliv_id'] != $delivery['deliv_id']; + }); + if (!empty($validDelivery)) { + trigger_error('無効な配送方法: ' . var_export($arrForm['deliv_id'], true), E_USER_ERROR); + } + $find = false; foreach ($arrPayment as $payment) { if ($arrForm['payment_id'] == $payment['payment_id']) {