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'];