...
|
...
|
@@ -107,6 +107,7 @@ const createConsult = (req, res, next) => { |
|
|
if (content && uid) {
|
|
|
service.createConsultAsync(uid, pid, content)
|
|
|
.then(result => {
|
|
|
console.log(result);
|
|
|
res.json(result);
|
|
|
})
|
|
|
.catch(next);
|
...
|
...
|
@@ -130,7 +131,6 @@ const createConsult = (req, res, next) => { |
|
|
res.json({
|
|
|
code: 400,
|
|
|
message: '请输入咨询内容',
|
|
|
data: ''
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|