From 4b8f205e8691062195264873b697852c4c001cf6 Mon Sep 17 00:00:00 2001 From: cano Date: Mon, 11 Mar 2024 02:24:08 +0800 Subject: [PATCH] fix --- app/Models/Api/Order/CustomerUserPostOrderModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);