if ($this->model('answer')->agree_answer($this->user_id, $_POST['answer_id']))
{
H::ajax_json_output(AWS_APP::RSM(array(
'action' => 'agree'
)), 1, null);
}
else
{
H::ajax_json_output(AWS_APP::RSM(array(
'action' => 'disagree'
)), 1, null);
}
这里,RSM的两个括号点错了,应该是:if ($this->model('answer')->agree_answer($this->user_id, $_POST['answer_id']))
{
H::ajax_json_output(AWS_APP::RSM(array(
'action' => 'agree'
), 1, null));
}
else
{
H::ajax_json_output(AWS_APP::RSM(array(
'action' => 'disagree'
), 1, null));
}
这家伙很懒,还没有设置简介