public function delAlbum() { $errors = $this->errors; //实例化Model $albumModel = new AlbumModel(); $albumId = $_GET['albumId']; $row = $albumModel->delAlbum($albumId); if ($row) { $result['code'] = '0'; $result['message'] = $errors['0']; } else { $result['code'] = '053'; $result['message'] = $errors['053']; } echo json_encode($result); exit; }