This commit is contained in:
cano
2024-03-11 02:24:08 +08:00
parent 1161f06aeb
commit 4b8f205e86

View File

@ -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);