getList($this->postData()); return $this->renderSuccess('', compact('list')); } /** * 删除VIP用户 */ public function delete($user_id) { $model = new VipUserModel; if ($model->where('user_id', $user_id)->update(['is_delete' => 1])) { return $this->renderSuccess('删除成功'); } return $this->renderError('删除失败'); } public function edit($user_id) { $model = new VipUserModel; $data = $model->where('user_id', $user_id)->find(); if ($this->request->get()){ return $this->renderSuccess('', compact('data')); } $param = $this->postData(); if ($data->save($param)){ return $this->renderSuccess('更新成功'); } return $this->renderError('更新失败'); } }