feat : coupon

This commit is contained in:
2025-03-21 16:15:28 +08:00
parent 11a36ece80
commit 8a4674b1dc
11 changed files with 190 additions and 11 deletions

View File

@@ -49,10 +49,12 @@ class OrderListService extends BaseService
/**
* @return array
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function handle(): array
{
$limit = $this->request->input('limit', 20);
$limit = (int)$this->request->input('limit', 20);
$orderList = $this->orderModel
->where('user_id', $this->userId)

View File

@@ -170,6 +170,7 @@ class PlaceOrderService extends BaseOrderService
'is_comment' => OrderCode::GOOD_COMMENT_NULL,
'copies' => $copiesNum,
'type' => $one['type'],
'status' => OrderCode::WAIT_PAY,
'create_time' => date('Y-m-d H:i:s'),
'update_time' => date('Y-m-d H:i:s'),
];