Exemplo n.º 1
0
 public function accountDel()
 {
     $id = trim($_GET['id']);
     $account = new AccountModel();
     if ($account->delete($id)) {
         $this->success('删除成功!');
     } else {
         $this->error('删除失败');
     }
 }