...
|
...
|
@@ -139,4 +139,24 @@ class CommonController extends WebAction |
|
|
return $this->helpJsonCallbackResult($callback, 403, '订阅失败', '');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 意见反馈
|
|
|
*
|
|
|
* @return jsonp
|
|
|
*/
|
|
|
public function suggestfeedbackAction()
|
|
|
{
|
|
|
$callback = $this->get('callback', '');
|
|
|
$feedback_id = intval($this->get('feedback_id', 0));
|
|
|
$question_id = intval($this->get('question_id', 0));
|
|
|
$answer = trim($this->get('answer'));
|
|
|
$solution = intval($this->get('solution', 0));
|
|
|
if(!empty($feedback_id) || !empty($question_id) || !empty($answer) || !empty($solution)) {
|
|
|
$data = IndexData::suggestFeedback($feedback_id, $question_id, $answer, $solution);
|
|
|
return $this->helpJsonCallbackResult($callback, $data['code'], $data['message'], $data['data']);
|
|
|
} else {
|
|
|
return $this->helpJsonCallbackResult($callback, 403, '意见反馈失败', '');
|
|
|
}
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|