diff --git a/src/application/common/model/CreditOrderModel.php b/src/application/common/model/CreditOrderModel.php index d9340ed4..2d77868e 100644 --- a/src/application/common/model/CreditOrderModel.php +++ b/src/application/common/model/CreditOrderModel.php @@ -206,4 +206,12 @@ public function makeOrder($member, $goodss, $address, $paycredit, $remark, $bala } return $result; } + + public function getItems() + { + if ($this->isEmpty()) { + return []; + } + return Db::name('creditOrderGoods')->where('order_id', $this['order_id'])->order('id asc')->select(); + } }