Authored by OF1706

suggestFooter

... ... @@ -17,14 +17,14 @@ const getFeedBack = (req, res, next) => {
let answer = _.trim(req.query.answer) || '';
let solution = req.query.solution || 0;
if (!_.isEmpty(feedbackId) || !_.isEmpty(questionId) || !_.isEmpty(answer) || !_.isEmpty(solution)) {
if (!feedbackId || !questionId || !answer || !solution) {
suggestFeedBackModel.feedBackApi(feedbackId, questionId, answer, solution).then((result) => {
return res.jsonp({
code: result.code,
code: 200,
data: result.data,
message: result.message
message: 'success'
});
}).catch(next);
... ...