Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Aug 5, 2024
1 parent 7e7a13f commit 8c690a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/application/common/model/CreditOrderModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 8c690a2

Please sign in to comment.