request->get(); $where = []; $where['mainId'] = $this->mainId; $bookSn = $get['bookSn'] ?? ''; if (empty($bookSn)) { $shop = $this->shop; $bookSn = $shop->bookSn ?? 0; if (empty($bookSn)) { util::fail('请选择预订活动'); } } $where['bookSn'] = $bookSn; $list = BookCustomClass::getAllByCondition($where, 'addTime DESC', '*'); util::success(['list' => $list]); } }