'酒店订单', 'hotel_canteen_order' => '餐厅订单', 'university_event_apply' => '活动订单', 'offline_shop_order' => '线下订单', ]; // 活动列表 public function page() { $user_id = $this->auth->id; $params = $this->request->param(); if (empty($params['order_no']) || empty($params['order_type'])) { return $this->error('请选择订单'); } dd(array_keys(self::ORDER_TYPE)); if (!in_array($params['order_type'], array_keys(self::ORDER_TYPE))) {} } }