findAll('comment',$where,'addtime desc',null,$lstart.',10'); $commentNum = $new['comment']->findCount('comment',$where); $pageUrl = pagination($commentNum, 10, $page, $url); include template("admin/comment_list"); break; case "delete": $commentid = tsIntval($_GET['commentid']); $strComment = $new['comment']->find('comment',array( 'commentid'=>$commentid, )); $ptable = $strComment['ptable']; $pkey = $strComment['pkey']; $pid = $strComment['pid']; $new['comment']->delete('comment',array( 'commentid'=>$commentid, )); $new['comment']->delComment($ptable,$pkey,$pid,$commentid); #处理积分 aac('user') -> doScore($TS_URL['app'], $TS_URL['ac'],$TS_URL['mg'],$TS_URL['api'], $TS_URL['ts'],$strComment['userid']); qiMsg('删除成功'); break; case "isaudit": $commentid = tsIntval($_GET['commentid']); $strComment = $new['comment']->find('comment',array( 'commentid'=>$commentid, )); if($strComment['isaudit']==1){ $isaudit = 0; }else{ $isaudit = 1; } $new['comment']->update('comment',array( 'commentid'=>$commentid, ),array( 'isaudit'=>$isaudit, )); qiMsg('操作成功!'); break; }