From ae31e5a965b7f1c53e1596080aaed8333dc0cc58 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sat, 14 Oct 2023 14:03:34 +0800 Subject: [PATCH] draw --- home/controllers/h5/market/sylive2/Order.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/home/controllers/h5/market/sylive2/Order.php b/home/controllers/h5/market/sylive2/Order.php index 07b27def..b01da261 100644 --- a/home/controllers/h5/market/sylive2/Order.php +++ b/home/controllers/h5/market/sylive2/Order.php @@ -201,11 +201,20 @@ class Order extends Admin $used = $this->input->get('used'); !$page && $page = 1; !$size && $size = 20; - $where = [ - 'status' => 1, - 'activityId' => $this->a_id, - 'type' => 0 - ]; + + if($iswin){ + $where = [ + 'status' => 1, + 'activityId' => $this->a_id, + ]; + }else{ + $where = [ + 'status' => 1, + 'activityId' => $this->a_id, + 'type' => 0 + ]; + } + $item_id && $where['itemId'] = $item_id; if($this->group_user['bizId'] && $this->group_user['type']==1){ $where['bizId'] = $this->group_user['bizId'];