public function editCredit()
{
$cid = intval($_GET['cid']);
$credit = M('credit_setting')->where("`id`={$cid}")->find();
if (!$credit) {
$this->error('无此积分规则');
}
$creditType = M('credit_type')->order('id ASC')->findAll();
//积分类别
$this->assign('creditType', $creditType);
$this->assign('credit', $credit);
$this->assign('type', 'edit');
$this->display();
}