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));
}
阅读全文
收起全文