...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
'use strict';
|
|
|
const mRoot = '../models';
|
|
|
const share = require(`${mRoot}/share`);
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
exports.getShareContent = (req, res, next) => {
|
|
|
if (!req.query.shareId) {
|
...
|
...
|
@@ -14,6 +15,13 @@ exports.getShareContent = (req, res, next) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
if (!_.isNumber(+req.query.shareId)) {
|
|
|
return res.jsonp({
|
|
|
code: 400,
|
|
|
message: 'shareId is invalid'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
share.getShareContent({
|
|
|
shareId: req.query.shareId
|
|
|
}).then(result => {
|
...
|
...
|
|