}
     break;
 case 'edit_post':
     $order_number = $_POST['order_number'];
     if (isset($_SESSION["id"])) {
         require_once './class/order_service.class.php';
         require_once 'class/order.class.php';
         require_once 'class/order_goods.class.php';
         $order_id = $_SESSION["id"];
         unset($_SESSION["id"]);
         $supplier_id = $_POST['supplier_id'];
         $status = $_POST['status'];
         $note = $_POST['note'];
         $order_service = new OrderService();
         $order = new Order($order_id, $order_number, $supplier_id, $status, $note);
         $order_service->updateOrder($order);
         $log_service->addLog("update", "订单", $order_id);
         $goods_id = $_POST['goods_id'];
         print_r($goods_id);
         $goods_number = $_POST['goods_number'];
         $is_out_of_stock = $_POST['is_out_of_stock'];
         print_r($is_out_of_stock);
         foreach ($goods_id as $id => $goods_id) {
             if (in_array($goods_id, $is_out_of_stock)) {
                 $order_goods_id = $order_service->updateGoodsInOrder($goods_id, $goods_number[$id], 1, $order_id);
                 $log_service->addLog("update", "订单产品", $order_goods_id);
             } else {
                 $order_goods_id = $order_service->updateGoodsInOrder($goods_id, $goods_number[$id], 0, $order_id);
                 $log_service->addLog("update", "订单产品", $order_goods_id);
             }
         }