📅  最后修改于: 2022-03-11 14:57:15.297000             🧑  作者: Mango
$objOrder = new Order(1); //order with id=1
$history = new OrderHistory();
$history->id_order = (int)$objOrder->id;
$history->changeIdOrderState(3, (int)($objOrder->id)); //order status=3