model = new \app\admin\model\Venue; } public function getvenuedetail(){ if($this->request->post()){ $data = $this->request->post(); $uid = isset($data['token'])&&!empty($data['token'])?$this->auth->id:0 ; $return = $this->model->getvenuedetail($data['id'],$uid); // $return['pay_time'] = date("Y-m-d H:i:s",$return['pay_time']); return $this->success('获取成功',$return); } } }