点賛インタフェースの理解
329 ワード
$params = $this->getParams();//
list($id, $type, $n) = $this->getParams();//
$num = DPraiseLog::model($id)->increment($id, $type, $n); //increment 1
$model = DPraiseLog::model($id);//
$model->afterSave();// redis
$this->out(0, array('num'=>$num));//