public function totrach(){
'id' => I('id',0,'intval'),// I('id',0,'intval'),<=>(int) $_GET['ID'],
'del' => I('type',0,'intval')
);
$msg = ($update['del']==1) ? '删除' :'还原';
if (M('blog')->save($update)) {
$this->success($msg . '成功',U(GROUP_NAME . '/Blog/index'));
} else {
$this->error($msg . '失败')
}
}