require_once './order_view_datail.php'; } else { header("Location: ./index.php?mod=order&action=ls"); } } else { header("Location: ./index.php?mod=order&action=ls"); } break; case 'detail_post': $order_id = $_POST['order_id']; if (isset($_POST['goods_id'])) { $goods_id = $_POST['goods_id']; $goods_number = $_POST['goods_number']; print_r($goods_id); print_r($goods_number); require_once './class/order_service.class.php'; $order_service = new OrderService(); foreach ($goods_id as $id => $goods_id) { $order_goods_id = $order_service->addGoodsInOrder($goods_id, $goods_number[$id], 0, $order_id); $log_service->addLog("insert", "订单产品", $order_goods_id); header("Location: ./index.php?mod=order&action=detail&did=" . $order_id); } } else { header("Location: ./index.php?mod=order&action=detail&did=" . $order_id); } default: break; } } else { header("Location: ./index.php?mod=order&action=ls"); }