$cid = trim($this->request->get("cid"));
if (empty($cid))
throw new Exception("获取评论ID失败");
$cid_str = ltrim($cid,",");
$cid_arr = explode(",",$cid_str);
$commentsmodel = new CommentsModel;
$comments = $commentsmodel->find("cid in $cid_str");
$comments->del_status = 1;
$comments->update_time = NOW_TIME;
$comments->op_user = $this->loginUser["username"];
$comments->op_uid = $this->loginUser["uid"];
if ($comments->update() == false)
{
echo "0";
$this->view->disable();
} else
{
echo "1";
$this->view->disable();
}