diff --git a/app/Models/Api/Order/CustomerUserPostOrderModel.php b/app/Models/Api/Order/CustomerUserPostOrderModel.php index c5bd0cb..afcf007 100644 --- a/app/Models/Api/Order/CustomerUserPostOrderModel.php +++ b/app/Models/Api/Order/CustomerUserPostOrderModel.php @@ -81,7 +81,7 @@ class CustomerUserPostOrderModel extends ApiBaseModel if(!$resPostHistoryModel) throw new ModelException('post_history_id not found'); $bean->setPostHistoryId($resPostHistoryModel->id); - $res = $this->addItem($bean->toArray()); + $res = $this->addItem($bean->toArrayNotNull()); if(!$res) throw new ModelException('order add fail'); $bean->setId($res->id);